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.

How can I map the keyboard shortcut to locking a session in KDE 4?

share|improve this question
2  
did you notice it defaults to ctrl+alt+l ? –  barraponto Jan 18 '10 at 14:08
add comment

3 Answers

up vote 22 down vote accepted

Here's what you could do to remap session locking from default Ctrl+Alt+L (tested with KDE4.3) :

  1. Go to "System Settings" (KDE menu).
  2. Choose "Keyboard & mouse" (on "General" tab).
  3. Choose "Global Keyboard Shortcuts" on the left.
  4. Choose "Run Command Interface" from "KDE component" dropdown list.
  5. Choose "Lock session".
  6. Select "Custom".
  7. Click on "None" (button changes to "Input...").
  8. Compose your desired sequence by pressing appropriate buttons on your keyboard.
  9. Click "Apply".
share|improve this answer
1  
Keep in mind that this implies that SUPER is registered as a modifier key and not a key of it's own. –  MiffTheFox Nov 17 '09 at 16:29
3  
As of KDE 4.10.2 (Kubuntu 13.04): System Settings -> Shortcuts and Gestures -> Global Keyboard Shortcuts -> The KDE Session Manager -> Lock Session. –  preds May 3 '13 at 0:25
    
You can also get to the Global Keyboard Shortcuts window by opening up the application launcher (kickoff) and typing "global keyboard shortcuts" into the search box. –  rmiesen Jun 20 '13 at 19:08
add comment

I imagine that man xmodmap will help with the keybinding part of it.

I don't know enough of KDE to help with what keysequence already locks the screen.

share|improve this answer
add comment

default Ctrl+Alt+l did not work for me, maybe overshadowed by some other app - I had to explicitly set the shortcut as mentioned in the selected answer.

Also beware not to select "kscreenlocker", but the KDE session manager. Win/Meta+L worked fine here.

share|improve this answer
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.