diff --git a/system/etc/systemd/system/suspend.service b/system/etc/systemd/system/suspend.service index cf25fe5..61c438b 100644 --- a/system/etc/systemd/system/suspend.service +++ b/system/etc/systemd/system/suspend.service @@ -1,7 +1,7 @@ - [Unit] Description=Lock screen when going to sleep or suspend. Before=sleep.target +Before=suspend.target [Service] User=severin @@ -9,6 +9,7 @@ Type=simple Environment=DISPLAY=:0 ExecStart=/home/severin/.local/bin/screenlock TimeoutSec=infinity +ExecStartPost=/sbin/sleep 1 [Install] WantedBy=sleep.target