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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
run as a background process yo
./turn-down.sh &