From 42db03dd4eb9c0caa56064a570380a2cf1208f2c Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Tue, 2 Apr 2024 21:49:23 -0700 Subject: [PATCH] fix hyprlock. Huh --- modules/desktop/hypridle.nix | 6 +++++- modules/desktop/hyprlock.nix | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/desktop/hypridle.nix b/modules/desktop/hypridle.nix index bd4b0f4..84c7d76 100644 --- a/modules/desktop/hypridle.nix +++ b/modules/desktop/hypridle.nix @@ -18,7 +18,11 @@ in { enable = true; 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"; listeners = let diff --git a/modules/desktop/hyprlock.nix b/modules/desktop/hyprlock.nix index 7762e17..6120357 100644 --- a/modules/desktop/hyprlock.nix +++ b/modules/desktop/hyprlock.nix @@ -42,7 +42,7 @@ in { position = { x = 0; y = 30; }; } { - text = "cmd[update:1000] echo \"$(date + '%A %B %e')\""; + text = "cmd[update:1000] echo \"$(date +'%A %B %e')\""; font_size = 14; color = "rgb(${base05})"; font_family = config.modules.desktop.fonts.fonts.sansSerif.family;