Create a gist now

Instantly share code, notes, and snippets.

TURN DOWN FOR WHAT MAC ONLY SORRY
#!/bin/bash
VOL=$(osascript -e "output volume of (get volume settings)")
NEWVOL=0
while true
do
if (($VOL == $NEWVOL)); then
$(osascript -e "set volume output volume 100")
echo $(osascript -e "output volume of (get volume settings)")
$(afplay /Users/skullum/Desktop/just_what.mp3)
fi
VOL=$(osascript -e "output volume of (get volume settings)")
done
@miketoth
Owner

run as a background process yo
./turn-down.sh &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment