Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This answer Find and raise a window in KDE4 with shortcut tells how to set a keyboard shortcut which activates a particular windows. It works wonderfully. But if I close the application and restart it, the shortcut resets. Is there a way to make it persistent?

share|improve this question
You said you needed this for Konsole. Maybe try Yakuake instead? – Oleh Prypin Jul 22 '12 at 11:09
I didn't mention konsole. My motivation example was gkrellm which always hides behind other windows. – Dmitry Vyal Jul 24 '12 at 9:44
up vote 1 down vote accepted

Go to the following KDE menu

  • System Settings
  • Shortcuts and Gestures
  • Custom Shortcuts

Now select

  • Edit
  • New
  • Global Shortcut
  • Command/URL

Which allows you to set a trigger and the action wmctrl -a "<application>".

In KDE 5, you need to enable the new action by clicking the checkbox next to it in the tree (or its group, if its group is not enabled).


  • Tested with KDE 4.11.5 and KDE Frameworks 5.18.0.
  • Verify that wmctrl is installed.
  • The global shortcut will not appear in the title bar of the window.
  • If you select the Examples group, there is an entry Activate KSIRC Window but I could not find a way to recreate similar entries using the user interface. It is possible to export the example group to a *.khotkeys file, manually create such entries and import them but using wmcrtl seems more comfortable.
share|improve this answer
wmctrl -a works wonderfully, thanks! – Dmitry Vyal Apr 28 '14 at 8:46

Your Answer


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.