Prevent mako notifications from appearing during idle

This commit is contained in:
John Mertz 2023-11-17 13:18:06 -07:00
parent d4e274c29a
commit 5e556193ca
1 changed files with 2 additions and 0 deletions

View File

@ -108,10 +108,12 @@ elif [[ $1 == "unfade" ]]; then
elif [[ $1 == "dim" ]]; then elif [[ $1 == "dim" ]]; then
if [[ $IDLEMODE -gt 1 ]]; then if [[ $IDLEMODE -gt 1 ]]; then
# I don't currently have any dimable monitors, so fade was created instead # I don't currently have any dimable monitors, so fade was created instead
makoctl set-mode away
echo $($HOME/scripts/thinkpad/blc.pl %) >$BLFILE echo $($HOME/scripts/thinkpad/blc.pl %) >$BLFILE
$HOME/scripts/thinkpad/blc.pl = 1 &>- $HOME/scripts/thinkpad/blc.pl = 1 &>-
fi fi
elif [[ $1 == "undim" ]]; then elif [[ $1 == "undim" ]]; then
makoctl set-mode default
$HOME/scripts/thinkpad/blc.pl = $(cat $BLFILE) &>- $HOME/scripts/thinkpad/blc.pl = $(cat $BLFILE) &>-
elif [[ $1 == "lock" ]]; then elif [[ $1 == "lock" ]]; then
if [[ $IDLEMODE -gt 2 ]]; then if [[ $IDLEMODE -gt 2 ]]; then