LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Keyboard shortcut for run/show/cycle [or hide] in KDE 5 (https://www.linuxquestions.org/questions/slackware-14/keyboard-shortcut-for-run-show-cycle-%5Bor-hide%5D-in-kde-5-a-4175672384/)

drgibbon 04-01-2020 09:50 PM

Keyboard shortcut for run/show/cycle [or hide] in KDE 5
 
I'm testing out KDE 5 from ktown, really quite nice so far, I'm impressed. In awesomewm though I had keybindings for specific programs that would (a) run the program if it wasn't loaded, (b) switch to that window if it is already running but not focussed, or if it already has focus (c) cycle through other windows of the same application (if there are any). Actually for some programs I want (c) to be "hide the window if it has focus" instead of cycling.

Anyone have a nice solution for that kind of thing in KDE? I could probably do it with xbindkeys and some scripting stuff, but am wondering if there's an easier way.

shruggy 04-02-2020 02:41 AM

I'm not using KDE, but its documentation lists Custom Shortcuts among System Settings modules.

chrisretusn 04-02-2020 05:33 AM

I use Plasma 5 (ktown) I don't use shortcuts though.

DuckDuckGo was my friend.

Here are two links that may help.

How To Customize Keyboard Shortcuts On KDE Plasma 5

Custom Shortcuts

JZL240I-U 04-02-2020 06:48 AM

Two darn fine Links, thanks chrisretusn :).

drgibbon 04-02-2020 01:23 PM

Thanks for the links, although I do know about the custom keyboard shortcuts settings window. I was just wondering if anyone had a concrete solution to what I was asking for, if not that's no problem, I will work something out (probably with custom shortcuts and a shell script).

JZL240I-U 04-03-2020 07:41 AM

Okay, please post your solution in any case right here :).

drgibbon 04-03-2020 11:36 AM

Quote:

Originally Posted by JZL240I-U (Post 6107379)
Okay, please post your solution in any case right here :).

Will do :) I imagine custom keyboard shortcuts triggering a shell script with something like xdotool could do it.

JZL240I-U 04-03-2020 11:48 AM

Thanks in advance, I am always looking forward to learn something :).


All times are GMT -5. The time now is 09:39 PM.