Lock your screen using `xscreensaver`

Lock your screen using xscreensaver

xscreensaver-command -lock