dotfiles/systemd/lock-on-suspend.service
2020-04-27 14:47:36 +08:00

11 lines
172 B
Desktop File

[Unit]
Description=Lock on suspend
Before=sleep.target
[Service]
ExecStart=/usr/bin/loginctl lock-sessions
ExecStartPost=/usr/bin/sleep 2
[Install]
WantedBy=sleep.target