anyrun-org / anyrun

A wayland native, highly customizable runner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Ciel-MC opened this issue · comments

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.

Please add option --toggle

commented

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

I'm asking the devs to add it

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