mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 18:49:45 +00:00
update service file according to findings in #121
This commit is contained in:
parent
11bb4e1c6d
commit
a1916b2881
1 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description = Lock screen when going to sleep/suspend
|
Description = Lock screen when going to sleep/suspend
|
||||||
|
Before=sleep.target
|
||||||
|
Before=suspend.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=%I
|
User=%I
|
||||||
|
@ -7,6 +9,7 @@ Type=simple
|
||||||
Environment=DISPLAY=:0
|
Environment=DISPLAY=:0
|
||||||
ExecStart=/usr/bin/betterlockscreen --lock
|
ExecStart=/usr/bin/betterlockscreen --lock
|
||||||
TimeoutSec=infinity
|
TimeoutSec=infinity
|
||||||
|
ExecStartPost=/sbin/sleep 1
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sleep.target
|
WantedBy=sleep.target
|
||||||
|
|
Loading…
Reference in a new issue