betterlockscreen-openrc/system/betterlockscreen@.service

17 lines
314 B
SYSTEMD
Raw Normal View History

[Unit]
Description = Lock screen when going to sleep/suspend
Before=sleep.target
Before=suspend.target
[Service]
User=%I
2021-08-21 00:11:54 +00:00
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/betterlockscreen --lock
TimeoutSec=infinity
ExecStartPost=/usr/bin/sleep 1
[Install]
WantedBy=sleep.target
WantedBy=suspend.target