mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 10:39: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]
|
||||
Description = Lock screen when going to sleep/suspend
|
||||
Before=sleep.target
|
||||
Before=suspend.target
|
||||
|
||||
[Service]
|
||||
User=%I
|
||||
|
@ -7,6 +9,7 @@ Type=simple
|
|||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/betterlockscreen --lock
|
||||
TimeoutSec=infinity
|
||||
ExecStartPost=/sbin/sleep 1
|
||||
|
||||
[Install]
|
||||
WantedBy=sleep.target
|
||||
|
|
Loading…
Reference in a new issue