How can I map Win + L to lock screen in KDE4?

28

5

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

Grzenio

Posted 2009-11-17T13:59:39.017

Reputation: 2 599

@CapiEtheriel -- Some of us work on more than one OS and would like to unify the keyboard shortcuts so we can be more productive. – Josh M. – 2019-03-20T13:58:21.383

3did you notice it defaults to ctrl+alt+l ? – Capi Etheriel – 2010-01-18T14:08:27.443

Answers

37

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".

dindras

Posted 2009-11-17T13:59:39.017

Reputation: 551

7As of KDE 4.10.2 (Kubuntu 13.04): System Settings -> Shortcuts and Gestures -> Global Keyboard Shortcuts -> The KDE Session Manager -> Lock Session. – preds – 2013-05-03T00:25:47.540

2Keep in mind that this implies that SUPER is registered as a modifier key and not a key of it's own. – MiffTheFox – 2009-11-17T16:29:05.277

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 – 2013-06-20T19:08:52.700

11

In Kubuntu 14.04 it's

  • System Settings (from the Kickoff "Start" menu)
  • Shortcuts and Gestures
  • Global Keyboard Shortcuts
  • KDE Component: The KDE Session Manager (at the bottom of the list, scroll down)
  • Lock Session

Terry Brown

Posted 2009-11-17T13:59:39.017

Reputation: 211

4

Kubuntu 18.10:

  1. System settings
  2. Search for "shortcuts"
  3. Global shortcuts
  4. ksmserver
  5. Lock session

Charming Robot

Posted 2009-11-17T13:59:39.017

Reputation: 141

1This is it right here -- thanks! – Josh M. – 2019-03-20T14:03:38.693

1

  1. System Settings
  2. Shortcuts and Gestures
  3. Global Keyboard Shortcuts
  4. KDE Component: ksmserver
  5. Lock Session

qutorial

Posted 2009-11-17T13:59:39.017

Reputation: 11

1

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.

Gregor

Posted 2009-11-17T13:59:39.017

Reputation: 119

Users coming from Windows expect Winkey+L to work. – Rich – 2018-09-19T19:25:09.763

1

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.

eleven81

Posted 2009-11-17T13:59:39.017

Reputation: 12 423