tb-dotfiles/home/bin/i3lock

18 lines
222 B
Text
Raw Normal View History

#!/bin/bash
set -euo pipefail
revert() {
# disable DPMS
xset dpms 0 0 0
}
# revert DPMS on script exit
trap revert EXIT
# turn off screen after 5 seconds
xset +dpms dpms 5 5 5
i3lock --nofork -c 000000
revert