Last active
February 2, 2019 17:53
-
-
Save davewongillies/94f3acbfa0e5fd0f2cca36e249a31e4a to your computer and use it in GitHub Desktop.
Lock screen after suspend with i3lock and systemd
This file contains 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
# /etc/systemd/system/wakelock.service | |
[Unit] | |
Description=Lock the screen on resume from suspend | |
Before=sleep.target suspend.target | |
[Service] | |
User=daveg | |
Type=forking | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/bin/i3lock -i /home/daveg/Pictures/thinkpad-black.png -c 000000 | |
[Install] | |
WantedBy=sleep.target suspend.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment