Update suspend.service
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
dc8fd48456
commit
415e6f190f
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue