I've bound $mainMod to hyprlauncher using bindl=$mainMod, SUPER_L, exec, hyprlauncher.
The thing is that if I regret to launch a program, I don't like to pressing Esc to exit the launcher but simply hitting $mainMod again.
If I use something like bindl=$mainMod, SUPER_L, exec, pkill hyprlauncher || hyprlauncher that would also kill the daemon, and even though it will work, it's not elegant.
Another approach is to use a script, but I've found that inconvenient.
#!/usr/bin/env bash
if hyprctl clients -j | jq -e '.[] | select(.class == "hyprlauncher")' > /dev/null 2>&1; then
hyprctl dispatch killactive
else
hyprlauncher
fi
So the feature request is to have a toggle flag to close the hyprlauncher window if it's opened.
Thanks!
I've bound
$mainModto hyprlauncher usingbindl=$mainMod, SUPER_L, exec, hyprlauncher.The thing is that if I regret to launch a program, I don't like to pressing
Escto exit the launcher but simply hitting$mainModagain.If I use something like
bindl=$mainMod, SUPER_L, exec, pkill hyprlauncher || hyprlauncherthat would also kill the daemon, and even though it will work, it's not elegant.Another approach is to use a script, but I've found that inconvenient.
So the feature request is to have a toggle flag to close the hyprlauncher window if it's opened.
Thanks!