(Un)hide mako notifications during (un)fade

This commit is contained in:
John Mertz 2024-04-19 18:07:12 -06:00
parent 0cfe8d4079
commit c0cb1ed8a7
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,7 @@ elif [[ $1 == "fade" ]]; then
if [[ $IDLEMODE -gt 0 ]]; then
if [[ ! -e $HOME/.local/state/sway-hidden ]]; then
kill -USR2 $(cat $HOME/.local/state/sway-transparency)
makoctl mode -a hide
fi
fi
elif [[ $1 == "unfade" ]]; then
@ -104,6 +105,7 @@ elif [[ $1 == "unfade" ]]; then
kill -USR2 $(cat $HOME/.local/state/sway-transparency)
# TODO: This is a hack. There's no reason that waybar should be dead.
#$HOME/scripts/sway/displays.pl -w
makoctl mode -r hide
fi
elif [[ $1 == "dim" ]]; then
if [[ $IDLEMODE -gt 1 ]]; then