anyrun-org / anyrun

A wayland native, highly customizable runner.
GNU General Public License v3.0
687 stars 53 forks source link

[Feature request] A way to close the prompt with a command? #103

Open Ciel-MC opened 1 year ago

Ciel-MC commented 1 year ago

I'm using anyrun on Hyprland with it bound to Super + D, but I find it unintuitive that I can't hit the key again to close the search prompt, and instead have to hit escape, so I was wondering if you can add some sort of mechanism to make it toggled with the command as opposed to only launch.

solokha commented 1 year ago

Please add option --toggle

Ciel-MC commented 1 year ago

Please add option --toggle

Are you telling me to do this or asking the devs to add it? Cause I just tried and it doesn't work

solokha commented 1 year ago

I'm asking the devs to add it

Fymyte commented 1 year ago

In your Hyprland config you could put the line

bind = SUPER, d, exec, pgrep anyrun && pkill anyrun || anyrun

So instead of always starting anyrun, it first check if it is running, if so it kills it, otherwise it starts it