fix hyprlock. Huh

This commit is contained in:
Reid 2024-04-02 21:49:23 -07:00
parent 02116e64f5
commit 42db03dd4e
2 changed files with 6 additions and 2 deletions

View file

@ -18,7 +18,11 @@ in {
enable = true; enable = true;
package = cfg.package; package = cfg.package;
lockCmd = "${lib.getExe config.modules.desktop.hyprlock.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}";
unlockCmd = "pkill -USR1 hyprlock"; unlockCmd = "pkill -USR1 hyprlock";
listeners = let listeners = let