From c1d572578e04a748c5fcb075d44aac0653386a12 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 28 Dec 2024 18:58:39 +0800 Subject: fix: swaync might just take forever so... --- hypridle.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hypridle.sh b/hypridle.sh index 57391d8..f6832f9 100755 --- a/hypridle.sh +++ b/hypridle.sh @@ -53,10 +53,6 @@ function stopidle() { #elif [ $mutev ] && [ ! $soundlevel ]; then # notify-send "ERROR: \$soundlevel is not set, unknown sound level..." #fi - # Re-enable mouse - if [[ "$(swaync-client --get-dnd)" == "true" ]]; then - notify-send -e 'Do not Disturb' 'Do not Disturb is still enabled' - fi if [ $mutev ] && [[ $(pactl get-sink-mute @DEFAULT_SINK@) == "Mute: yes" ]]; then amixer set Master unmute & # elif [ $mutev ] && [[ $(pactl get-sink-mute @DEFAULT_SINK@) == "Mute: no" ]]; then @@ -72,6 +68,9 @@ function stopidle() { # killall -CONT swww.sh || $HOME/scripts/swww.sh & rm -f $XDG_CACHE_HOME/playing-music brillo -I + if [[ "$(swaync-client --get-dnd)" == "true" ]]; then + notify-send -e 'Do not Disturb' 'Do not Disturb is still enabled' + fi } if [ "$1" ]; then -- cgit v1.2.3