How can I set a global shortcut in KDE (4.4) to run a bash script?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
First make sure that your script is executable, e.g. like this
Then create the shortcut using the tool which can be accessed by System Settings > Input Actions. Do a right click in the left pane where existing shortcuts are listed and say New Global Shortcut > Command/URL. Set the name to something sensible, choose your desired shortcut, set the command to your script, e.g. ~/scripts/myscript.sh and tick the Enabled box. If you put your script in a folder in path, (following common conventions one would use /usr/local/bin) you can skip the path in the command and just write myscript.sh. |
|||
|
|
