Skip to content

Instantly share code, notes, and snippets.

@WolfangAukang
Created May 10, 2017 02:06
Show Gist options
  • Save WolfangAukang/ffc3f481696c239c5583b5b3a0499e06 to your computer and use it in GitHub Desktop.
Save WolfangAukang/ffc3f481696c239c5583b5b3a0499e06 to your computer and use it in GitHub Desktop.
[Unit]
Description=Swaylock after suspension
After=suspend.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/lock-screen.sh
[Install]
WantedBy=multi.user.target sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment