#!/bin/bash # mutescript (this may not work on any other hardware...) amixer get 'Master',0 | grep '^ Front' | cut -d[ -f2 | cut -d] -f1 > ${HOME}/.tempfile if [ -e "${HOME}/.savedvolumes" ] then echo "already muted" 1>&2 exit 1 fi mv ${HOME}/.tempfile ${HOME}/.savedvolumes amixer set 'Master',0 0%