Disable global Ctrl-Alt-L hotkey in KDE
Intellij IdeaIntellij Idea Problem Overview
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?
Intellij Idea Solutions
Solution 1 - Intellij Idea
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
Solution 2 - Intellij Idea
On Kubuntu 11.10 it's well hidden:
- Start System Settings
- Under Common Appearance and Behavior, select Shortcuts and Gestures.
- Select Global Keyboard Shortcuts in the left-hand panel.
- Select the KDE Component: Run Command Interface (important, otherwise you won't see the ctrl-alt-L mapping!)
- Select Lock Session
- Edit the setting, either choose a different mapping or 'none'.
Solution 3 - Intellij Idea
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.
Solution 4 - Intellij Idea
For Linux Mint: System Settings -> Keyboard -> Keyboard Shortcuts -> System -> Lock screen
Solution 5 - Intellij Idea
It's easy to disable all global keyboard shortcuts in KDE for specific applications. I've done it in KDE 4 and now I've done it in KDE 5 again. So in KDE 5 right click on your application's window title -> More actions -> Special Window Settings (or Special Application Settings) -> Appearance & Fixes -> Ignore Global Shortcuts -> Force, Yes. It's much easier than to look for each shortcut one by one.
You can check such configurations in System Settings -> Window Management -> Window Rules.
Solution 6 - Intellij Idea
Instead of disabling anything, you can also use ctrl+meta+alt+l in most applications where this problem exists. KDE knows the meta key (aka the 'windows key'), but the applications seem to ignore it and consider it to be just ctrl+alt+l.
Solution 7 - Intellij Idea
I know, old question, but I didn't easily find a decent answer. If anybody is wondering how to disable it on Ubuntu (while the Windows_key + L shortcut will still work):
Go to Settings -> Keyboard -> Shortcuts tab -> System -> select Lock screen and press backspace
to clear it.
Solution 8 - Intellij Idea
For KDE Plasma 5
1 - click on K menu, type keyboard, choose Global Keyboard shortcuts
2 - Choose the KDE Session Manager
in KDE component , at Lock Session
, do what you want, disable the shortcut or choose another!
Solution 9 - Intellij Idea
For Ubuntu 16.04 System settings -> Keyboard -> Shortcut -> System -> LockScreen -> click-it and make changes
I changed my to ctrl+alt+H from ctrl+atl+L
Here is the Screen shot which tells where the above instructions will lead you to. Keyboard -> shortcuts
Solution 10 - Intellij Idea
Another option is to change the Idea keymap to use Default for KDE. You can go to File -> settings -> keymap and then select the Default for KDE option from the drop down
Solution 11 - Intellij Idea
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