mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-15 04:39:45 +00:00
14 lines
238 B
SYSTEMD
14 lines
238 B
SYSTEMD
|
[Unit]
|
||
|
Description = Lock screen when going to sleep/suspend
|
||
|
|
||
|
[Service]
|
||
|
User=user
|
||
|
Type=forking
|
||
|
Environment=DISPLAY=:0
|
||
|
ExecStart=/usr/bin/betterlockscreen --lock
|
||
|
TimeoutSec=infinity
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=sleep.target
|
||
|
WantedBy=suspend.target
|