From dc8f7f908b66a55db7694fc382c57004b5436d46 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 25 Dec 2013 22:36:31 +0400 Subject: [PATCH] Move misc/alsa-card -> .config/alsa-card --- audio/amixer-max | 2 +- audio/amixer-normal | 2 +- audio/amixer-toggle-mute | 6 +++--- audio/amixer-toggle-mute2 | 6 +++--- audio/amixer-volume | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/audio/amixer-max b/audio/amixer-max index 65568cc..870352a 100755 --- a/audio/amixer-max +++ b/audio/amixer-max @@ -1,6 +1,6 @@ #! /bin/sh -CARD="`cat $HOME/misc/alsa-card`" +CARD="`cat \"$HOME\"/.config/alsa-card`" echo " set Master,0 mute diff --git a/audio/amixer-normal b/audio/amixer-normal index 9d20517..e1e8267 100755 --- a/audio/amixer-normal +++ b/audio/amixer-normal @@ -1,6 +1,6 @@ #! /bin/sh -CARD="`cat $HOME/misc/alsa-card`" +CARD="`cat \"$HOME\"/.config/alsa-card`" echo " set Master,0 mute diff --git a/audio/amixer-toggle-mute b/audio/amixer-toggle-mute index feb59f8..56dab07 100755 --- a/audio/amixer-toggle-mute +++ b/audio/amixer-toggle-mute @@ -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 diff --git a/audio/amixer-toggle-mute2 b/audio/amixer-toggle-mute2 index b461b09..20dce93 100755 --- a/audio/amixer-toggle-mute2 +++ b/audio/amixer-toggle-mute2 @@ -3,12 +3,12 @@ cd "$HOME" || exit 1 if [ -f .alsa.save ]; then - alsactl restore -f .alsa.save "`cat $HOME/misc/alsa-card`" && + alsactl restore -f .alsa.save "`cat \"$HOME\"/.config/alsa-card`" && exec rm .alsa.save else - alsactl store -f .alsa.save "`cat $HOME/misc/alsa-card`" && + alsactl store -f .alsa.save "`cat \"$HOME\"/.config/alsa-card`" && echo " set Master,0 0 set Headphone,0 0 - set PCM,0 0" | exec amixer -c"`cat $HOME/misc/alsa-card`" -s + set PCM,0 0" | exec amixer -c"`cat \"$HOME\"/.config/alsa-card`" -s fi diff --git a/audio/amixer-volume b/audio/amixer-volume index 8a69c0b..4ca620c 100755 --- a/audio/amixer-volume +++ b/audio/amixer-volume @@ -13,4 +13,4 @@ else exit 1 fi -exec amixer -c`cat $HOME/misc/alsa-card` set PCM,0 "$vol" +exec amixer -c"`cat \"$HOME\"/.config/alsa-card`" set PCM,0 "$vol" -- 2.39.5