20

I want to have a hot corner that will immediately (and reliably) load my lock screen. Any suggestions?

pomsky
  • 70,557
Shamoon
  • 303

3 Answers3

50

First you need to install a GNOME shell extension called CustomCorner to be able to activate hot-corners.

Then open the extension's preferences and choose a corner, and select 'Run Command'.
enter image description here

In the command box, use the following

dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

Alternatively, you can use

gnome-screensaver-command --lock

if you have the gnome-screensaver package installed.

pomsky
  • 70,557
27

For what it is worth:

Super+L (Super is the Windows key on PC, or the command key on Macs) locks your screen.

I always have the screen blanker off, but it still activates as I press these keys.


System Settings > Brightness & Lock:

Turn screen off when inactive for: Never.

Lock: ON
Lock screen after: 30 seconds.

[v] Require my password when waking from suspend.

Hannu
  • 6,605
  • 1
  • 28
  • 45
16

For what it's worth:

In Kubuntu 18.04 (Ubuntu with the KDE 5 desktop), this is built in:

System Settings > Workspace - Desktop Behaviour > Screen Edges - each of the screen edges and corners can be set to various actions one of which is Lock screen.

Joe P
  • 523