aboutsummaryrefslogtreecommitdiff
path: root/xlock
blob: 6dacdfcdb0c121830d8b2a443f4f3050e4f2009d (plain)
1
2
3
4
5
6
7
8
9
10
#!/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