Locking a session after suspending to disk in Ion3

Ok, so I wanted to lock my session after suspending to disk while using Ion3 WM. There are a few solutions to this but what I’ve found works best for me is using vlock. What you should do to make this work is the following (after you have installed vlock):

Edit your .xinitrc and add the following line before the exec part:

vlock -n &

Also, uncomment the following line in /etc/hibernate/common.conf


After you suspend to disk, vlock will lock all virtual terminals and sessions and again later after unsuspending will it prompt you for your username and password.