Disable global Ctrl-Alt-L hotkey in KDE

Viewed 32224

The IntelliJ IDEA short-cut to reformat source code is Ctrl+Alt+L. This happens to lock the screen in KDE (Gnome too?). How can I disable this so IntelliJ receives the key sequence?

13 Answers

Under the K menu, go to the Control Center.

Regional & Accessibility | Keyboard Shortcuts | Shortcut Schemes tab, Global Shortcuts tab.

In the search box, type "lock", which should narrow the visible shortcuts and show the Ctrl+Alt+L one ("Lock Session").

Underneath, click None.

Click the Apply button.


On KDE Plasma 5 go to System Settings | Desktop Behaviour | Screen Locking

Here you will find a "Keyboard Shortcut" option. Change it to something else or set to none

I eventually found how to disable the lock screen key binding (Ctrl-Alt-L) in the System Setting app.

System Settings->"Keyboard Mouse->Keyboard Shortcuts

I had to choose the KDE component: Run Command Interface.

I'm running KDE on Fedora Core 9.

Also you can change it with the configuration file.

The following files store the keyboard shortcuts of KDE Plasma 5 and of some of its associated applications such as Konsole and KWrite.

~/.config/kdeglobals
~/.config/kglobalshortcutsrc
~/.config/khotkeysrc
~/.config/kwinrc
~/.config/plasma-org.kde.plasma.desktop-appletsrc
~/.local/share/kxmlgui5/katepart/katepart5ui.rc
~/.local/share/kxmlgui5/konsole/konsoleui.rc
~/.local/share/kxmlgui5/konsole/sessionui.rc
~/.local/share/kxmlgui5/kwrite/kwriteui.rc

Let me add descriptions for the files.

Standard Shortcuts (System Settings > Shortcuts) ~/.config/kdeglobals

Global Shortcuts (System Settings > Shortcuts) ~/.config/kglobalshortcutsrc

"Custom Shortcuts" (System Settings > Shortcuts) ~/.config/khotkeysrc

Konsole ~/.local/share/kxmlgui5/konsole/konsoleui.rc ~/.local/share/kxmlgui5/konsole/sessionui.rc

KWrite > Settings > Configure Shortcuts... > KWrite ~/.local/share/kxmlgui5/kwrite/kwriteui.rc

KWrite > Settings > Configure Shortcuts... > Kate Part ~/.local/share/kxmlgui5/katepart/katepart5ui.rc

For those who prefer visual answers, here's where this settings can be found enter image description here

IMPORTANT Note that there are two values: Global and Global Alternative. I had to unbind the Global Alternative shortcut to resolve a problem with IntelliJ.

Ubuntu 20.04 + KDE plasma: Use Global Shorcuts -> System Setting Module menu -> Lock session. Set to "Custom -> None" enter image description here

Related