19

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

2
  • xdotool can do this.. go through man xdotool
    – PRATAP
    Commented Jun 5, 2019 at 14:46
  • @PRATAP Could you please expand it to an answer?
    – pomsky
    Commented Jun 5, 2019 at 15:13

3 Answers 3

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.

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.

9
  • 27
    It says nothing about the hot corner part, the feature OP is looking for.
    – pomsky
    Commented Jun 5, 2019 at 14:55
  • 5
    Yes? And how come this would not be still a valid answer? Maybe OP didn't know about this.
    – Hannu
    Commented Jun 5, 2019 at 15:06
  • 4
    Thanks @Hannu - you are correct in that I did not know about this. Makes the hot corners no longer needed
    – Shamoon
    Commented Jun 5, 2019 at 15:30
  • 21
    +1 for addressing the XY problem, though in spirit of SE perhaps the other answer should be the accepted one.
    – BlueBuddy
    Commented Jun 5, 2019 at 22:52
  • 7
    -1 for not answering the question asked. Commented Jun 6, 2019 at 15:22
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.

2
  • 2
    This question is tagged as using Gnome, so I'm not sure why you answer this for KDE.
    – Mast
    Commented Jun 7, 2019 at 11:07
  • 6
    @Mast Why does it matter? Someone else might stumble upon this post because of its similarity and find it useful. Commented Jun 7, 2019 at 18:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .