Skip to content

Instantly share code, notes, and snippets.

@aconz2
Last active February 20, 2019 15:10
Show Gist options
  • Save aconz2/bea9d20777f29ccf95ed84ed8bea4f4a to your computer and use it in GitHub Desktop.
Save aconz2/bea9d20777f29ccf95ed84ed8bea4f4a to your computer and use it in GitHub Desktop.
[Unit]
Description=Starts i3lock at suspend time
Before=sleep.target
[Service]
User=%I
Type=forking
Environment=DISPLAY=:0
ExecStart=/usr/bin/i3lock -c 3f3f3f
[Install]
WantedBy=suspend.target
@aconz2
Copy link
Author

aconz2 commented Aug 13, 2017

goes in /etc/systemd/system/[email protected]
644 owned by root and in root group
enable with systemctl enable i3lock@$(whoami).service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment