betterlockscreen-openrc/betterlockscreen.service

14 lines
238 B
SYSTEMD
Raw Normal View History

[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