dotfiles/.local/bin/scripts/black

14 lines
239 B
Plaintext
Raw Normal View History

2024-06-28 19:34:35 +00:00
#!/bin/sh -e
2023-02-07 12:19:34 +00:00
# Suspend screen until enter is pressed
test "$1" && sleep $1
2024-06-28 19:34:35 +00:00
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