mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
hyprland: onChange: remove subshell comment
(cherry picked from commit 7e769959e8
)
This commit is contained in:
parent
c05d7204a9
commit
e1391fb22e
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ in {
|
||||||
}) + lib.optionalString (cfg.extraConfig != "") cfg.extraConfig;
|
}) + lib.optionalString (cfg.extraConfig != "") cfg.extraConfig;
|
||||||
|
|
||||||
onChange = lib.mkIf (cfg.package != null) ''
|
onChange = lib.mkIf (cfg.package != null) ''
|
||||||
( # Execute in subshell so we don't poision environment with vars
|
(
|
||||||
XDG_RUNTIME_DIR=''${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
|
XDG_RUNTIME_DIR=''${XDG_RUNTIME_DIR:-/run/user/$(id -u)}
|
||||||
if [[ -d "/tmp/hypr" || -d "$XDG_RUNTIME_DIR/hypr" ]]; then
|
if [[ -d "/tmp/hypr" || -d "$XDG_RUNTIME_DIR/hypr" ]]; then
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue