Open silviulaurentiu opened 1 year ago
Yeah, launching an app with a custom shortcut is already possible with pretty much any desktop environment. The same applies to minimizing a window.
@silviulaurentiu or do you mean having one shortcut which toggles the visibility of FSearch?
I would like to have the option to toggle the visibility of FSearch with one shortcut. Otherwise I'd have to write a script which kills the process if it exists or something similar. Maybe I am not aware of some toggle feature, however as far as I can see from the man page and help screen a toggle isn't present. Would be greatly appreciated. I can help write it, just point me in the right direction.
Temporary fix for the toggling issue I made is the following bash script
if pgrep fsearch > /dev/null; then pkill fsearch else fsearch & fi
which can be summarized into a one-liner if you wish so
pgrep fsearch > /dev/null && (pkill fsearch) || (fsearch &)
Anyway, bound that to the keyboard shortcuts. One thing that's important to note is that the Ubuntu keyboard shortcuts doesn't recognize the ~ as home instead it required a full path to the script and it has to be run with bash. The usual "./" doesn't work.
In my view, this is the desktop environment's job, particularly if the app is not running. But even if it is already running… if it's not handled by the DE, then it would be impossible for the app to do this under Wayland, because there are no such things as the ability for apps to set global keyboard shortcuts (at least currently).
I'd suggest closing this as out-of-scope/not-fixable.