mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
hyprland: fix hyprctl crash
`/tmp/hypr` must be present so `hyprctl` doesn't crash.
This commit is contained in:
parent
1ca210648a
commit
230836bb7c
1 changed files with 7 additions and 5 deletions
|
@ -246,11 +246,13 @@ 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
|
||||||
# This var must be set for hyprctl to function, but the value doesn't matter.
|
if [[ -d "/tmp/hypr" ]]; then
|
||||||
export HYPRLAND_INSTANCE_SIGNATURE="bogus"
|
# This var must be set for hyprctl to function, but the value doesn't matter.
|
||||||
for i in $(${cfg.finalPackage}/bin/hyprctl instances -j | jq ".[].instance" -r); do
|
export HYPRLAND_INSTANCE_SIGNATURE="bogus"
|
||||||
HYPRLAND_INSTANCE_SIGNATURE=$i ${cfg.finalPackage}/bin/hyprctl reload config-only
|
for i in $(${cfg.finalPackage}/bin/hyprctl instances -j | jq ".[].instance" -r); do
|
||||||
done
|
HYPRLAND_INSTANCE_SIGNATURE=$i ${cfg.finalPackage}/bin/hyprctl reload config-only
|
||||||
|
done
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue