Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 409 Bytes

unix-locking-the-screen-hibernate-suspend.md

File metadata and controls

12 lines (7 loc) · 409 Bytes

Title: Unix: Locking the screen Tags: unix,unix-lock

If you're not using KDE or Gnome, you may want a command to lock the screen.

    xscreensaver-command -lock

does just that. If you mix that with pm-suspend, your screen will be locked when you come back from suspend or hibernate:

    xscreensaver-command -lock && pm-suspend

Putting that in a bash file may be a little easier on the fingers.