update hypr stuff

This commit is contained in:
Reid 2024-04-25 00:52:19 -07:00
parent ca5c52e679
commit 973c3d8bac
3 changed files with 48 additions and 36 deletions

View file

@ -18,11 +18,7 @@ in {
enable = true;
package = cfg.package;
# the `date` command doesn't work if we just call hyprlock. Huh
# workaround is telling hyprctl to dispatch to execute it
# hacky, but i couldn't care less at the moment
# TODO: change this when/if it gets patched
lockCmd = "${config.modules.desktop.hyprland.package}/bin/hyprctl dispatch exec ${lib.getExe config.modules.desktop.hyprlock.package}";
lockCmd = "pidof hyprlock || ${lib.getExe config.modules.desktop.hyprlock.package}";
unlockCmd = "pkill -USR1 hyprlock";
listeners = let
@ -38,7 +34,7 @@ in {
onTimeout = "loginctl lock-session"; # lock computer
}
{
timeout = 60 * 30; # 15 min
timeout = 60 * 30; # 30 min
onTimeout = "systemctl suspend"; # sleep/suspend
}
];