From fb0e358feccc45c7cd642e346d07f4f7f21b484b Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Wed, 3 Nov 2021 01:22:20 +0000 Subject: Don't use Pango by default. Initialising Pango makes up a large portion of the startup time, and we can achieve neater rendering with pure Cairo if we're just drawing circles anyway. Therefore, this commit avoids loading Pango if no options which require it are specified (such as --font-name or --password-character). This reduces startup time with no background image to ~40ms on my machine (2015 MacBook Pro). --- doc/greetd-mini-wl-greeter.1.scd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'doc/greetd-mini-wl-greeter.1.scd') diff --git a/doc/greetd-mini-wl-greeter.1.scd b/doc/greetd-mini-wl-greeter.1.scd index 7beab36..988c2db 100644 --- a/doc/greetd-mini-wl-greeter.1.scd +++ b/doc/greetd-mini-wl-greeter.1.scd @@ -6,7 +6,7 @@ greetd-mini-wl-greeter - An extremely simple raw Wayland greeter for greetd # SYNOPSIS -*greetd-mini-wl-greeter* -u user -c command [options] +*greetd-mini-wl-greeter* -u user -c command [-bBCeEfFhHnoOrRw] # DESCRIPTION @@ -73,6 +73,11 @@ All options which take a color expect a 3- or 6-digit hex code, e.g. F9A733. # EXAMPLES +greetd-mini-wl-greeter aims to be as fast and simple as possible by default. If +none of the *-f*, *-C* or *-w* options are given, a simple circle will be used +for the password character, avoiding the need to use Pango, thus lowering +startup time. This is only likely noticeable on very slow machines however. + When using sway as the compositor for greetd-mini-greeter, something like the following sway config lines produce a nice look: -- cgit v1.2.3