summaryrefslogtreecommitdiff
path: root/hypridle.sh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-12-28 18:58:39 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-12-28 18:58:39 +0800
commitc1d572578e04a748c5fcb075d44aac0653386a12 (patch)
tree111ecc544ec8567b47caa285cf7a01579ef6801b /hypridle.sh
parentb70965b71c7a393030b1f6c006c874b7fa2b05ed (diff)
fix: swaync might just take forever so...
Diffstat (limited to 'hypridle.sh')
-rwxr-xr-xhypridle.sh7
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