13 lines
226 B
SYSTEMD
13 lines
226 B
SYSTEMD
|
[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
|