Update suspend.service

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-09-04 13:40:32 +02:00
parent dc8fd48456
commit 415e6f190f
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -1,7 +1,7 @@
[Unit] [Unit]
Description=Lock screen when going to sleep or suspend. Description=Lock screen when going to sleep or suspend.
Before=sleep.target Before=sleep.target
Before=suspend.target
[Service] [Service]
User=severin User=severin
@ -9,6 +9,7 @@ Type=simple
Environment=DISPLAY=:0 Environment=DISPLAY=:0
ExecStart=/home/severin/.local/bin/screenlock ExecStart=/home/severin/.local/bin/screenlock
TimeoutSec=infinity TimeoutSec=infinity
ExecStartPost=/sbin/sleep 1
[Install] [Install]
WantedBy=sleep.target WantedBy=sleep.target