Use my 'standard' dsl
Abstract the session lock command
Add xscreensaver lock after suspend/hibernate
Format