#!/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