19

Whenever I press Super+L (or Win+L) on my Ubuntu 14.04 Desktop, the screen gets locked. I would like to disable this behaviour. In System Settings->Keyboard->Shortcuts->System there is a shortcut configured for Lock screen: Ctrl+Alt+L. It works. But I couldn't find where the shortcut for Super+L is configured.

Background: I run Ubuntu in a virtual machine on Windows and use Super+L to lock the Windows desktop, making it superfluous to lock the Ubuntu Desktop. Once I unlock the screen I have to type my password twice: Once for Windows and again for Ubuntu.

Paolo
  • 20,112
  • 21
  • 72
  • 113
user1785730
  • 3,150
  • 4
  • 27
  • 50
  • Is this helpful : `http://askubuntu.com/questions/264669/how-to-change-lock-screen-shortcut-for-ubuntu-12-10` – Sourav 'Abhi' Mitra Jul 23 '14 at 10:58
  • Unfortunately, this isn't helpful: As I mentioned, I found the setting where Ctrl+Alt+L is configured to lock the screen. However, I wish to find where Super+L is configured to lock the screen. – user1785730 Jul 23 '14 at 11:18
  • Yes, the answer below. – user1785730 Oct 15 '14 at 11:34
  • 1
    I can't post answer as this is closed now....: On ubuntu 20.04 (not sure about other versions), you can remove 'supe+L' shortcut in settings in 'keyboard shortcuts' under system. removing shortcut also disabled the "lock screen" key on my laptop's keyboard – Drdilyor Apr 20 '21 at 18:11

3 Answers3

19

Unity also has a shortcut to lock the screen, so you need to disable that one too.

disable shortcut screenshot

  • Install and run CompizConfig Settings Manager
  • Click "Ubuntu Unity Plugin"
  • Click the button next to "Key to lock the screen."
  • Disable
Chris
  • 6,642
  • 7
  • 42
  • 55
8

While this is an old question, it still comes up as the top result for searches like "ubuntu disable win+L locking". For future reference, this answer covers a method without CompizConfig Settings Manager.

https://askubuntu.com/questions/531835/how-do-i-disable-lock-screen-keyboard-shortcut-under-unity

In short:

Run gsettings set org.gnome.desktop.lockdown disable-lock-screen true to disable the lock screen.

However, this will still turn your screen black for a few seconds. This is still especially useful if you are running Ubuntu in a VM, and don't want it to lock when you lock your outer system.

  • Thanks! For people who use ubuntu as a development VM (i.e. everyone in my workplace) and want to limit 'bloatware' this is a much nicer solution than the accepted one. – NickS Jun 27 '19 at 10:33
  • 1
    tested `gsettings set org.gnome.desktop.lockdown disable-lock-screen true` and not works here in Kubuntu v20.05 – SL5net Dec 26 '20 at 13:03
  • what worked for me (Ubuntu 20) was using `dconf editor`, and then changing the value in this path: `/org/gnome/settings-daemon/plugins/media-keys/logout` to empty (`[]`) – Bersan Oct 29 '22 at 15:48
0

I searched for search lock in the search bar (Ctrl+Space) and found screen locking window. That did the trick.

Alex Myers
  • 6,196
  • 7
  • 23
  • 39