menu: add ability to close menu with invocation
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
ff22b55857
commit
4242d5cdd5
2 changed files with 9 additions and 1 deletions
|
@ -107,6 +107,9 @@ in {
|
||||||
libnotify
|
libnotify
|
||||||
])
|
])
|
||||||
(bash "menu" [
|
(bash "menu" [
|
||||||
|
coreutils
|
||||||
|
hyprland
|
||||||
|
jq
|
||||||
networkmanager_dmenu
|
networkmanager_dmenu
|
||||||
rofi-rbw
|
rofi-rbw
|
||||||
walker
|
walker
|
||||||
|
|
|
@ -52,4 +52,9 @@ while (("$#" > 0)); do
|
||||||
shift
|
shift
|
||||||
done
|
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
|
||||||
|
|
Loading…
Reference in a new issue