mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-15 12:49:44 +00:00
16 lines
305 B
Desktop File
16 lines
305 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/bin/betterlockscreen --lock
|
|
TimeoutSec=infinity
|
|
ExecStartPost=/sbin/sleep 1
|
|
|
|
[Install]
|
|
WantedBy=sleep.target
|
|
WantedBy=suspend.target
|