diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-12-28 18:58:39 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-12-28 18:58:39 +0800 |
| commit | c1d572578e04a748c5fcb075d44aac0653386a12 (patch) | |
| tree | 111ecc544ec8567b47caa285cf7a01579ef6801b | |
| parent | b70965b71c7a393030b1f6c006c874b7fa2b05ed (diff) | |
fix: swaync might just take forever so...
| -rwxr-xr-x | hypridle.sh | 7 |
1 files 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 |
