![]() Registered Member ![]()
|
Hi all - new here
I'm looking to make the migration to KDE and I'd really like to know if there's an option to define a keyboard shortcut that will choose a running app or launch it if it's not running. I know how to do the latter, but I wonder if it's even possible. For reference, I'm looking to emulate Unity's behaviour when pressing Super+Num to select an app on the Dash or launch it if it's not running. The intended KDE uses Plasma 5 if it's important. Thanks a bunch! |
![]() ![]()
|
"choose" *where*?
If you mean as a global shortcut, I'd suggest a bash script - either using wmctrl (likely available from your distro) or (the far superior ![]() https://github.com/luebking/KLItools/bl ... system.cpp (the entire KLItools tree as a build script, but it currently still links KDE4, but you'll have installed kdelibs for a while anyway)
resp.
|
![]() Registered Member ![]()
|
Thanks - exactly what I was looking for!!!
|
![]() Registered Member ![]()
|
If you wan't the exact Unity behavior, you might be interested in this post. The script always focuses on the last focused window of the required application, which you won't necessarily get with a simple `wmctrl -a xterm || xterm`. In addition to defining a bunch of key-bindings for frequenctly used applications, I've found it useful to have another key-binding for any app not part of the favourites. For example, the following script focuses the last focused window that was neither Firefox nor Emacs:
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]