update service file according to findings in #121

This commit is contained in:
Philipp Hemmelmayr 2019-09-02 21:38:03 +02:00 committed by GitHub
parent 11bb4e1c6d
commit a1916b2881
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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