Skip to content

Commit

Permalink
Remove empty branch
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdana committed Jan 24, 2024
1 parent 35169e2 commit 7914875
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/dont_sit_in_silence.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 7914875

Please sign in to comment.