tb-dotfiles/chezmoi/bin/executable_i3lock
2022-04-22 10:06:53 -04:00

17 lines
222 B
Bash

#!/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