How can I map the keyboard shortcut to locking a session in KDE 4?
Asked
Active
Viewed 4.0k times
30
-
3did you notice it defaults to ctrl+alt+l ? – Capi Etheriel Jan 18 '10 at 14:08
-
@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. Mar 20 '19 at 13:58
8 Answers
39
Here's what you could do to remap session locking from default Ctrl+Alt+L (tested with KDE4.3) :
- Go to "System Settings" (KDE menu).
- Choose "Keyboard & mouse" (on "General" tab).
- Choose "Global Keyboard Shortcuts" on the left.
- Choose "Run Command Interface" from "KDE component" dropdown list.
- Choose "Lock session".
- Select "Custom".
- Click on "None" (button changes to "Input...").
- Compose your desired sequence by pressing appropriate buttons on your keyboard.
- Click "Apply".
dindras
- 591
- 3
- 4
-
2Keep 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
-
8As of KDE 4.10.2 (Kubuntu 13.04): System Settings -> Shortcuts and Gestures -> Global Keyboard Shortcuts -> The KDE Session Manager -> Lock Session. – preds May 03 '13 at 00: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
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
Robin Hood
- 3,411
- 2
- 19
- 37
Terry Brown
- 211
- 2
- 3
6
Kubuntu 18.10:
- System settings
- Search for "shortcuts"
- Global shortcuts
- ksmserver
- Lock session
Charming Robot
- 161
- 1
- 4
1
- Go to "System Settings" (KDE menu).
- Workspace>Workspace Behavior>Screen Locking>Activation>Keyboard shortcut or search "lock"
w1100n
- 129
- 4
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
- 129
- 3
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
- 15,376
- 15
- 55
- 83
0
In Debian 10 KDE Plasma it's:
- System Settings (from menu)
- Shortcuts
- Global Keyboard Shortcuts
- ksmserver
- Lock Session
M.J
- 125
- 4