Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 0 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>".

Notes:

  • Tested with KDE 4.11.5.
  • 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 at 8:46
add comment

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.