Don't sleep while in hidernate inhibitor mode

This commit is contained in:
John Mertz 2023-04-09 13:17:02 -04:00
parent da807b773f
commit 2ef6def85f
Signed by: jpm
GPG Key ID: E9C5EA2D867501AB
1 changed files with 5 additions and 1 deletions

View File

@ -71,7 +71,11 @@ elif [ $1 == "unlock" ]; then
#'screen -S irssi -X stuff "/nick jpm^M"'
:
elif [ $1 == "sleep" ]; then
for i in `cat $OPFILE`; do swaymsg "output $i dpms off"; done
if [ -e $NOHIBERNATE ]; then
::
else
for i in `cat $OPFILE`; do swaymsg "output $i dpms off"; done
fi
elif [ $1 == "wake" ]; then
/home/jpm/scripts/sway/displays.pl
elif [ $1 == "hibernate" ]; then