clean up icon/cursor issues, improve greeter

This commit is contained in:
notgne2 2022-12-26 22:53:27 -07:00
parent 6c6556b8d6
commit 905764eb88
No known key found for this signature in database
2 changed files with 21 additions and 22 deletions

View file

@ -44,7 +44,17 @@ in {
vt = 1;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd sway";
# command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd sway";
command = let
swayGreeterConfig = pkgs.writeText "sway-greeter-config" ''
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c sway; swaymsg exit"
bindsym Mod4+shift+e exec swaynag \
-t warning \
-m 'What do you want to do?' \
-b 'Poweroff' 'systemctl poweroff' \
-b 'Reboot' 'systemctl reboot'
'';
in "${pkgs.sway}/bin/sway --config ${swayGreeterConfig}";
};
};
};