Skip to content

Instantly share code, notes, and snippets.

@mweinelt
Created December 27, 2015 12:55
Show Gist options
  • Select an option

  • Save mweinelt/b497462b773322da0773 to your computer and use it in GitHub Desktop.

Select an option

Save mweinelt/b497462b773322da0773 to your computer and use it in GitHub Desktop.
/etc/systemd/system/i3lock@.service :(
[Unit]
Description=Starts i3lock at suspend time
Before=sleep.target suspend.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStartPre=
ExecStart=/home/user/bin/lock &
[Install]
WantedBy=sleep.target suspend.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment