]> git.phdru.name Git - audio-cdr-video.git/blobdiff - audio/amixer-toggle-mute
Move misc/alsa-card -> .config/alsa-card
[audio-cdr-video.git] / audio / amixer-toggle-mute
index feb59f8a70023bfb6442a55b9bfe7949c63fd558..56dab077b1fc953aa294f32ae6eaa2c120daaae6 100755 (executable)
@@ -1,15 +1,15 @@
 #! /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