dotfiles/systemd/lock-on-suspend.service

11 lines
172 B
SYSTEMD
Raw Normal View History

2020-04-27 06:47:36 +00:00
[Unit]
Description=Lock on suspend
Before=sleep.target
[Service]
ExecStart=/usr/bin/loginctl lock-sessions
ExecStartPost=/usr/bin/sleep 2
[Install]
WantedBy=sleep.target