dotfiles/autologin/systemd/lock-on-suspend.service

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