From ae7a3b5137ca3522f2802b3183de8fe5287b13d2 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sat, 24 Feb 2024 22:04:47 +0200 Subject: [PATCH] hyprland: fix reloading Fix hyprctl erroring out due to HIS. --- modules/services/window-managers/hyprland.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/services/window-managers/hyprland.nix b/modules/services/window-managers/hyprland.nix index 168bab659..ec0cf557f 100644 --- a/modules/services/window-managers/hyprland.nix +++ b/modules/services/window-managers/hyprland.nix @@ -247,10 +247,8 @@ in { onChange = lib.mkIf (cfg.package != null) '' ( # Execute in subshell so we don't poision environment with vars if [[ -d "/tmp/hypr" ]]; then - # This var must be set for hyprctl to function, but the value doesn't matter. - export HYPRLAND_INSTANCE_SIGNATURE="bogus" for i in $(${cfg.finalPackage}/bin/hyprctl instances -j | jq ".[].instance" -r); do - HYPRLAND_INSTANCE_SIGNATURE=$i ${cfg.finalPackage}/bin/hyprctl reload config-only + ${cfg.finalPackage}/bin/hyprctl -i "$i" reload config-only done fi )