mirror of
https://github.com/nix-community/home-manager
synced 2024-11-16 16:19:44 +01:00
hyprland: fix reloading
Fix hyprctl erroring out due to HIS.
This commit is contained in:
parent
4e6d25a51b
commit
ae7a3b5137
1 changed files with 1 additions and 3 deletions
|
@ -247,10 +247,8 @@ in {
|
||||||
onChange = lib.mkIf (cfg.package != null) ''
|
onChange = lib.mkIf (cfg.package != null) ''
|
||||||
( # Execute in subshell so we don't poision environment with vars
|
( # Execute in subshell so we don't poision environment with vars
|
||||||
if [[ -d "/tmp/hypr" ]]; then
|
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
|
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
|
done
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue