Custom shortcuts
You can set any key or combination of keys to trigger an action on your computer. For example, you might want the Pause key to lock your screen when you pause your work. Here's how.
-
Open the Shortcuts module in System Settings.
-
Click Add New and choose Command or Script….
-
Enter this command:
qdbus6 org.kde.screensaver /ScreenSaver org.freedesktop.ScreenSaver.Lock -
Select the new entry and click Add New next to its shortcuts.
-
Press the Pause key.
-
Click Apply.
-
Test it by pressing the Pause key.
This older screenshot shows the same idea in the Custom Shortcuts module, which no longer exists.
