dotfiles/.local/bin/scripts/black

15 lines
257 B
Text
Raw Normal View History

2024-06-28 22:34:35 +03:00
#!/bin/sh -e
2025-02-04 11:52:56 +01:00
# Suspend screen until enter is pressed or interrupted
test "$1" && sleep $1
2024-06-28 22:34:35 +03:00
dpms() {
if test $XDG_SESSION_TYPE = wayland
then swaymsg "output * dpms $*"
else xset dpms force "$@"
fi
}
dpms off
trap 'dpms on' INT
2025-02-04 11:52:56 +01:00
sleep 3
read _
2024-06-28 22:34:35 +03:00
dpms on