mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-21 22:52:52 +00:00
* lockscreen after suspend using systemd service (#51) * renaming .service to betterlockscreen.service * adding TimeoutSec to betterlockscreen.service
This commit is contained in:
parent
441d091da6
commit
33b7763283
2 changed files with 15 additions and 0 deletions
|
@ -361,3 +361,5 @@ case "$1" in
|
|||
echo "invalid argument"
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
13
betterlockscreen.service
Normal file
13
betterlockscreen.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description = Lock screen when going to sleep/suspend
|
||||
|
||||
[Service]
|
||||
User=user
|
||||
Type=forking
|
||||
Environment=DISPLAY=:0
|
||||
ExecStart=/usr/bin/betterlockscreen --lock
|
||||
TimeoutSec=infinity
|
||||
|
||||
[Install]
|
||||
WantedBy=sleep.target
|
||||
WantedBy=suspend.target
|
Loading…
Reference in a new issue