updated regreet.nix
This commit is contained in:
parent
335a15d542
commit
aa712f0d19
1 changed files with 4 additions and 3 deletions
|
|
@ -4,12 +4,10 @@ let
|
||||||
|
|
||||||
swayConfig = pkgs.writeText "greetd-sway-config" ''
|
swayConfig = pkgs.writeText "greetd-sway-config" ''
|
||||||
# `-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.regreet}/bin/regreet -l; swaymsg exit"
|
exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit"
|
||||||
bindsym Mod4+shift+e exec swaynag \
|
bindsym Mod4+shift+e exec swaynag \
|
||||||
-t warning \
|
-t warning \
|
||||||
-m 'What do you want to do?' \
|
-m 'What do you want to do?' \
|
||||||
-p 'Poweroff' 'systemctl poweroff' \
|
|
||||||
-b 'Reboot' 'systemctl reboot'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in {
|
in {
|
||||||
|
|
@ -25,6 +23,7 @@ in {
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${pkgs.sway}/bin/sway --config ${swayConfig}";
|
command = "${pkgs.sway}/bin/sway --config ${swayConfig}";
|
||||||
|
user = "greeter";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -103,6 +102,8 @@ in {
|
||||||
reboot = [ "systemctl" "reboot" ];
|
reboot = [ "systemctl" "reboot" ];
|
||||||
poweroff = [ "systemctl" "poweroff" ];
|
poweroff = [ "systemctl" "poweroff" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
env = { GTK_USE_PORTAL = "0"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
cageArgs =
|
cageArgs =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue