betterlockscreen-openrc/betterlockscreen.service
Bosmak 33b7763283 lockscreen after suspend using systemd service (#51) (#53)
* lockscreen after suspend using systemd service (#51)

* renaming .service to betterlockscreen.service

* adding TimeoutSec to betterlockscreen.service
2018-09-15 23:36:56 +05:30

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