dotfiles/system/slock@.service

13 lines
226 B
SYSTEMD
Raw Permalink Normal View History

2020-12-01 02:27:42 +01:00
[Unit]
Description=Lock X11 session using slock for user %i
Before=sleep.target
[Service]
User=%i
Environment=DISPLAY=:0
ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/bin/slock
[Install]
WantedBy=sleep.target