From 79148750ef80f9551be44ef1a5bbb3cafbf94a98 Mon Sep 17 00:00:00 2001 From: Dana Sherson Date: Thu, 25 Jan 2024 10:25:34 +1300 Subject: [PATCH] Remove empty branch --- scripts/dont_sit_in_silence.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/dont_sit_in_silence.sh b/scripts/dont_sit_in_silence.sh index 3e692cd..e52e7c0 100755 --- a/scripts/dont_sit_in_silence.sh +++ b/scripts/dont_sit_in_silence.sh @@ -12,9 +12,7 @@ fi function alert_if_no_audio { # from https://apple.stackexchange.com/questions/363416/how-to-check-if-any-audio-is-currently-playing-via-terminal - if [[ "$(pmset -g | grep -F ' sleep')" == *"coreaudiod"* ]]; then - # alerter -remove ALL -sender com.spotify.client - else + if ! [[ "$(pmset -g | grep -F ' sleep')" == *"coreaudiod"* ]]; then # from: https://github.com/vjeantet/alerter case "$(alerter -title "Silence Detector" \ -message "You are sitting in silence" \