A big part of my workflow is based on using shortcuts. Currently I use xbindkeys and wmctrl to run-or-raise an application. E.g: Super+F brings up firefox or run it if not running.
Autokey works fine with KDE and I could also use KDE native custom shortcut manager to replace
xbindkeys but I can't find (and I googled a lot) a way to determine if a window/application is running and if not, raise it.
I can probably use
ps or a similar command to find if an application is running and if not, launch it, but it goes to the final problem: how to raise (or focus) an existing running window/application programmatically?
There seems to be some kind of
gdbus solution for GNOME but of course this won't work in KDE.
Does anyone have an idea or clue of what can I do?