Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@meznak
Created May 27, 2015 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save meznak/76537a7fc3f57a2ea1be to your computer and use it in GitHub Desktop.
Save meznak/76537a7fc3f57a2ea1be to your computer and use it in GitHub Desktop.
xscreensaver lock before suspend
[Unit]
Description=Lock X session using xscreensaver
Before=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/bin/xscreensaver-command -lock
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment