Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-02-2015, 06:50 AM   #1
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
KDE global shortcut / keybinding with own command / action (executable file). How?

I want to rotate my screen contents while physically changing orientation of the screen from landscape to portrait and vice versa. So I created four files and made them executable with contents like

xrandr --output DVI-0 --rotate left
They work when invoked from the keyboard. I want to assign those to KDE global shortcuts using e.g. <Alt><Crtl><left arrow> etc.

How do I tell the KDE settings menu to use the command-(files) I created?

Last edited by JZL240I-U; 04-02-2015 at 12:52 PM.
Old 04-02-2015, 12:49 PM   #2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Found it. It's sort of confusing, how KDE solves this.

So, open "keyboard shortcuts" (or whatever it is called in the english GUI ), then select "own shortcuts", there in the second panel from the left on click on "modify". This will produce a popup, select "new" (nothing to modify, but ...), next popup select "global shortcut", next popup select "command / adress". The panel coming up then has three tabs, I ignored comments, middle one is "trigger" (or some such) with default none. Click on it and press the combination of keys you want to use. The right tab "action" has a little folder symbol. Click on it and use the standard file selection menu to select your desired script. Click on "apply".

Phew. Solved. Works like a charm.

Thanks to all readers for their patience and moral support .

<edit> P.S.: Forgot to post the source of all this wisdom , here it is: command </edit>

Last edited by JZL240I-U; 04-03-2015 at 11:06 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut command to install kde or gnome on Fedora? cola Fedora 5 04-20-2010 02:26 AM
Multiple global shortcuts for the same action in KDE 4.x? Zerimas Linux - Desktop 1 08-05-2009 09:05 PM
launch ssh or other command line app from desktop shortcut kde pauledwards03 Linux - Newbie 5 09-04-2008 03:01 PM
Changing the default open action for an executable file nitrambass Member Intro 1 06-22-2004 03:09 PM
KDE key shortcut file atheist Linux - Software 1 05-23-2004 12:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration