mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-08 18:29:45 +00:00
f208ce1bb1
* update system service location * update binary location * Add hint for systemd-service and install-dir
16 lines
314 B
Desktop File
16 lines
314 B
Desktop File
[Unit]
|
|
Description = Lock screen when going to sleep/suspend
|
|
Before=sleep.target
|
|
Before=suspend.target
|
|
|
|
[Service]
|
|
User=%I
|
|
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
|