Skip to content

Instantly share code, notes, and snippets.

@medvid
Created January 26, 2014 10:12
Show Gist options
  • Save medvid/8630863 to your computer and use it in GitHub Desktop.
Save medvid/8630863 to your computer and use it in GitHub Desktop.
[Unit]
Description=User suspend actions
Before=sleep.target
[Service]
User=%i
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/i3lock -c "#222222"
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment