Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In "Preferences" to have the possibility to define a shortcut which will lanch/hide the FSearch Window #506

Open
silviulaurentiu opened this issue Sep 26, 2023 · 3 comments

Comments

@silviulaurentiu
Copy link

No description provided.

@nekohayo
Copy link

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.

@cboxdoerfer
Copy link
Owner

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?

@al0cam
Copy link

al0cam commented Apr 6, 2024

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

#!/bin/bash
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants