#! /bin/sh
-if amixer -c"`cat $HOME/misc/alsa-card`" cget name="Headphone Playback Switch" |
+if amixer -c"`cat \"$HOME\"/.config/alsa-card`" cget name="Headphone Playback Switch" |
grep -Fq ": values=on"
then
echo "
set Master,0 mute
set Headphone,0 mute
- set PCM,0 mute" | exec amixer -c"`cat $HOME/misc/alsa-card`" -s
+ set PCM,0 mute" | exec amixer -c"`cat \"$HOME\"/.config/alsa-card`" -s
else
echo "
set Master,0 unmute
set Headphone,0 unmute
- set PCM,0 unmute" | exec amixer -c"`cat $HOME/misc/alsa-card`" -s
+ set PCM,0 unmute" | exec amixer -c"`cat \"$HOME\"/.config/alsa-card`" -s
fi