mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 15:51:54 -05:00
hyprland,sway: pass "lock 'swaylock'" to swayidle so loginctl lock-session works
This commit is contained in:
parent
0e4083e61c
commit
d175507331
|
@ -46,7 +46,7 @@ in {
|
|||
];
|
||||
in
|
||||
pkgs.writeShellScript "hyprland-idled"
|
||||
"${lib.getExe pkgs.swayidle} -w ${lib.strings.concatStringsSep " " (timeouts ++ beforeSleeps)}";
|
||||
"${lib.getExe pkgs.swayidle} -w lock '${lib.getExe pkgs.swaylock}' ${lib.strings.concatStringsSep " " (timeouts ++ beforeSleeps)}";
|
||||
|
||||
tablet = pkgs.writeShellScript "hyprland-tablet" ''
|
||||
STATE=`${lib.getExe pkgs.dconf} read /org/gnome/desktop/a11y/applications/screen-keyboard-enabled`
|
||||
|
|
|
@ -27,5 +27,5 @@ in {
|
|||
];
|
||||
in
|
||||
pkgs.writeShellScript "sway-idled"
|
||||
"${lib.getExe pkgs.swayidle} -w ${lib.strings.concatStringsSep " " (timeouts ++ beforeSleeps)}";
|
||||
"${lib.getExe pkgs.swayidle} -w lock '${lib.getExe pkgs.swaylock}' ${lib.strings.concatStringsSep " " (timeouts ++ beforeSleeps)}";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue