I need to lock the screen when my computer is waken up from memory suspend,
So I tried to put the following script to
/etc/pm/sleep.d, but it never got executed,
#!/bin/sh case "$1" in hibernate|suspend) ;; thaw|resume) vlock -ans ;; *) exit $NA ;; esac
Tried systemd service as well, no luck:
# /etc/systemd/system/resume@.service [Unit] Description=User resume actions After=suspend.target [Service] User=root Type=simple ExecStart=vlock -ans [Install] WantedBy=suspend.target
And I called
systemctl enable resume@.service too, vlock wasn't called still.