#!/bin/bash # # Lock the screen using xscreensaver # # See https://www.kirsle.net/turn-off-monitor-from-linux-cli # https://askubuntu.com/questions/62858/turn-off-monitor-using-command-line#62861 xscreensaver-command --lock sleep 1 xset dpms force off