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