dotfiles/bin/togglemute.sh

7 lines
153 B
Bash
Raw Permalink Normal View History

2015-08-26 12:55:03 +02:00
#!/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