1
1
Fork 0

menu: add ability to close menu with invocation

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-10-27 14:40:37 -05:00
parent ff22b55857
commit 4242d5cdd5
Signed by: myned
GPG key ID: C7224454F7881A34
2 changed files with 9 additions and 1 deletions

View file

@ -107,6 +107,9 @@ in {
libnotify
])
(bash "menu" [
coreutils
hyprland
jq
networkmanager_dmenu
rofi-rbw
walker

View file

@ -52,4 +52,9 @@ while (("$#" > 0)); do
shift
done
# 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