aboutsummaryrefslogtreecommitdiff
path: root/betterlockscreen@.service
blob: a479828ccf04cbed277fd91c04f3abc94157d41b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description = Lock screen when going to sleep/suspend

[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/bin/betterlockscreen --lock
TimeoutSec=infinity

[Install]
WantedBy=sleep.target
WantedBy=suspend.target