From d7669f03b9d2d6acb27ccb93e0b814e7b02b4567 Mon Sep 17 00:00:00 2001 From: Denys Kondratenko Date: Mon, 1 Nov 2021 21:02:17 +0100 Subject: [PATCH 1/2] GDM messes up tty1 in case GDM is installed it creates `/usr/lib/systemd/logind.conf.d/reserveVT.conf` with `ReserveVT=1` which makes it unavailable for greeter. fixes #52 --- greetd/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/greetd/config.toml b/greetd/config.toml index b45b695..88b0022 100644 --- a/greetd/config.toml +++ b/greetd/config.toml @@ -1,7 +1,7 @@ [terminal] # The VT to run the greeter on. Can be "next", "current" or a number # designating the VT. -vt = 1 +vt = next # The default session, also known as the greeter. [default_session] From df769c15274403e02bc5c6fcfe90f04286350bfb Mon Sep 17 00:00:00 2001 From: Denys Kondratenko Date: Tue, 2 Nov 2021 20:41:57 +0100 Subject: [PATCH 2/2] run polkit for proper shutdown and reboot --- greetd/sway-config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/greetd/sway-config b/greetd/sway-config index 8886a76..626704b 100644 --- a/greetd/sway-config +++ b/greetd/sway-config @@ -6,4 +6,6 @@ bindsym Mod4+shift+e exec swaynag \ -b 'Poweroff' 'systemctl poweroff' \ -b 'Reboot' 'systemctl reboot' +exec /usr/libexec/polkit-gnome-authentication-agent-1 + #include /etc/sway/config.d/