greetd: Switch to ReGreet
This commit is contained in:
parent
ae72f29d04
commit
68b35c2536
1 changed files with 35 additions and 7 deletions
|
@ -27,18 +27,46 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.systemPackages = with pkgs; [ greetd.gtkgreet quintom-cursor-theme papirus-icon-theme arc-theme ];
|
|
||||||
|
programs.regreet = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
background = {
|
||||||
|
path = ../../home-manager/modules/sway/wallpapers/river-2560.png;
|
||||||
|
fit = "Cover";
|
||||||
|
};
|
||||||
|
|
||||||
|
GTK = {
|
||||||
|
application_prefer_dark_theme = true;
|
||||||
|
theme_name = "elementary";
|
||||||
|
cursor_theme = "elementary";
|
||||||
|
icon_theme_name = "elementary";
|
||||||
|
font_name = "Iosevka Aile 16";
|
||||||
|
};
|
||||||
|
|
||||||
|
commands = {
|
||||||
|
reboot = [ "systemctl" "reboot" ];
|
||||||
|
poweroff = [ "systemctl" "poweroff" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
security.pam.services.greetd.u2fAuth = false;
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [ pantheon.elementary-gtk-theme pantheon.elementary-icon-theme ];
|
||||||
|
|
||||||
|
# exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css; swaymsg exit"
|
||||||
|
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
"greetd/sway-config" = {
|
"greetd/sway-config" = {
|
||||||
text = ''
|
text = ''
|
||||||
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
|
# `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet.
|
||||||
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css; swaymsg exit"
|
exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit"
|
||||||
bindsym Mod4+shift+f exec swaynag \
|
# bindsym Mod4+shift+f exec swaynag \
|
||||||
-t warning \
|
# -t warning \
|
||||||
-m 'What do you want to do?' \
|
# -m 'What do you want to do?' \
|
||||||
-b 'Poweroff' 'systemctl poweroff' \
|
# -b 'Poweroff' 'systemctl poweroff' \
|
||||||
-b 'Reboot' 'systemctl reboot'
|
# -b 'Reboot' 'systemctl reboot'
|
||||||
include /etc/sway/config.d/*
|
include /etc/sway/config.d/*
|
||||||
'';
|
'';
|
||||||
user = "greeter";
|
user = "greeter";
|
||||||
|
|
Loading…
Reference in a new issue