Skip to content

Instantly share code, notes, and snippets.

@EkoAdiWijayanto
Created May 4, 2018 09:40
Show Gist options
  • Save EkoAdiWijayanto/aaef715fd9f3b287b09e995f0acd4639 to your computer and use it in GitHub Desktop.
Save EkoAdiWijayanto/aaef715fd9f3b287b09e995f0acd4639 to your computer and use it in GitHub Desktop.
file: /etc/systemd/system/suspend-lock.service
[Unit]
Description=i3lock on suspend
Before=sleep.target
[Service]
User=work
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/betterlockscreen -l
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment