dotfiles/bin/togglemute.sh
2015-08-26 10:55:03 +00:00

7 lines
153 B
Bash
Executable File

#!/bin/sh
if [ "$(amixer get Master | cut -d$'\n' -f 5 | cut -d ' ' -f 8)" == "[on]" ]; then
amixer set Master mute
else
amixer set Master unmute
fi