From a1916b288111cac000409a7f48ca715a1b12ace6 Mon Sep 17 00:00:00 2001 From: Philipp Hemmelmayr Date: Mon, 2 Sep 2019 21:38:03 +0200 Subject: [PATCH] update service file according to findings in #121 --- system/betterlockscreen@.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/betterlockscreen@.service b/system/betterlockscreen@.service index a479828..4ef7460 100644 --- a/system/betterlockscreen@.service +++ b/system/betterlockscreen@.service @@ -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