blob: 806de0dde6d8e15a14e271d57ec858e243787df1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Enable with autolock@<username>
[Unit]
Description=Lock X session using slock for user %i
Before=sleep.target
[Service]
User=%i
Environment="DISPLAY=:0" "XAUTHORITY=/home/%i/.config/x/authority"
ExecStartPre=/usr/bin/xset dpms force suspend
ExecStart=/usr/local/bin/slock
[Install]
WantedBy=sleep.target
|