mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-09 10:39:45 +00:00
33b7763283
* lockscreen after suspend using systemd service (#51) * renaming .service to betterlockscreen.service * adding TimeoutSec to betterlockscreen.service
13 lines
238 B
Desktop File
13 lines
238 B
Desktop File
[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
|