Last active
February 20, 2019 15:10
-
-
Save aconz2/bea9d20777f29ccf95ed84ed8bea4f4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goes in
/etc/systemd/system/[email protected]
644 owned by root and in root group
enable with
systemctl enable i3lock@$(whoami).service