diff --git a/options/custom/scripts/default.nix b/options/custom/scripts/default.nix index a7db8db..243fc68 100644 --- a/options/custom/scripts/default.nix +++ b/options/custom/scripts/default.nix @@ -107,6 +107,9 @@ in { libnotify ]) (bash "menu" [ + coreutils + hyprland + jq networkmanager_dmenu rofi-rbw walker diff --git a/options/custom/scripts/menu.sh b/options/custom/scripts/menu.sh index ddfb9fe..1f3c226 100644 --- a/options/custom/scripts/menu.sh +++ b/options/custom/scripts/menu.sh @@ -52,4 +52,9 @@ while (("$#" > 0)); do shift done -$command +# HACK: Restart service to close existing menu +if hyprctl -j layers | jq -e '.[][][][] | select(.namespace == "walker")'; then + systemctl --user restart walker.service +else + $command +fi