hyprland,sway: pass "lock 'swaylock'" to swayidle so loginctl lock-session works

This commit is contained in:
Aly Raffauf 2024-07-30 15:46:08 -04:00
parent 0e4083e61c
commit d175507331
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ in {
]; ];
in in
pkgs.writeShellScript "hyprland-idled" 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" '' tablet = pkgs.writeShellScript "hyprland-tablet" ''
STATE=`${lib.getExe pkgs.dconf} read /org/gnome/desktop/a11y/applications/screen-keyboard-enabled` STATE=`${lib.getExe pkgs.dconf} read /org/gnome/desktop/a11y/applications/screen-keyboard-enabled`

View file

@ -27,5 +27,5 @@ in {
]; ];
in in
pkgs.writeShellScript "sway-idled" 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)}";
} }