Don't sleep while in hidernate inhibitor mode
This commit is contained in:
parent
da807b773f
commit
2ef6def85f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue