Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can you quickly launch an app with an assigned shortcut in KDE?

systemsettings -> Shortcuts and Gestures -> Custom Shortcuts -> Edit -> New

share|improve this question

2 Answers 2

  1. Unlock Widgets.

  2. Right-click in launcher and click Edit Applications...

  3. Find the app you want to assign a shortcut

For example: Click on System, and click on Konsole. Click on Advanced Tab. At the bottom you can see Current shortcut key, click on the button and enter the shortcut.

Example

share|improve this answer
    
What/where is "Unlock Widgets" and "launcher"? –  jozxyqk Jul 17 at 1:33
    
Just right-click on the desktop and you will see a contextual menu with Unlock Widgets. –  Korcia Sep 30 at 16:30

Just to reiterate what @HeathMatlock suggested:

enter image description here

enter image description here

enter image description here

Then set a Shortcut under Trigger, and enter a Command under Action.

If you're not sure what the command is, maybe try:

xprop _NET_WM_PID | awk '{print $3}' | xargs ps -o comm= -p

and click on the application window. This attempts to grab the PID that created the window and passes it to ps to see what the command for the PID was. Not 100% reliable for example if your bashrc adds stuff to PATH you might find the same command won't work as a shortcut.


To run an application only if it isn't already running, I use this:

ps -e | grep mycommand || mycommand
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.