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]
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue