dotfiles/.local/bin/scripts/black

14 lines
239 B
Bash
Executable File

#!/bin/sh -e
# Suspend screen until enter is pressed
test "$1" && sleep $1
dpms() {
if test $XDG_SESSION_TYPE = wayland
then swaymsg "output * dpms $*"
else xset dpms force "$@"
fi
}
dpms off
trap 'dpms on' INT
sleep 99999
dpms on