xautolock-systemd/xautolock@.service

14 lines
222 B
SYSTEMD
Raw Permalink Normal View History

2017-02-07 15:06:49 +00:00
[Unit]
Description=Lock screen before suspend
Before=sleep.target
[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
2017-02-07 15:06:49 +00:00
ExecStart=/usr/bin/xautolock -locknow
ExecStartPost=/usr/bin/sleep 1
2017-02-07 15:06:49 +00:00
[Install]
WantedBy=sleep.target