@@ -16,7 +16,7 @@ PA_LADSPA_INPUTS="50,100,156,220,311,440,622,880,1250,1750,2500,3500,5000,10000,
1616PA_CONTROL_MIN=" -30"
1717PA_CONTROL_MAX=" 30"
1818PA_PREAMP=" 1.0"
19- PA_CURRENT_PRESET=" Headphones.preset "
19+ PA_CURRENT_PRESET=" "
2020
2121PRESET_DIR1=$HOME /.config/pulse/presets
2222PRESET_DIR2=/usr/share/pulseaudio-equalizer/presets
@@ -122,12 +122,14 @@ if [ "$PA_CURRENT_SINK" = "$PA_LADSPA_SINK" ]; then
122122else
123123 PA_EQUALIZER_STATUS=0
124124 PA_MASTER_SINK=$( pacmd stat | grep ' Default sink name' | sed ' s/Default sink name: //g' )
125- fi
125+ fi
126126
127127# Check if equalizer is set as persistent
128128if [ -f $HOME /.config/pulse/default.pa ]; then
129- if [ " $( cat $HOME /.config/pulse/default.pa | grep -m1 " ### BEGIN: Equalized audio configuration" ) " = " ### BEGIN: Equalized audio configuration" ]; then
129+ if [ " $( cat $HOME /.config/pulse/default.pa | grep -m1 " ### BEGIN: Equalized audio configuration" ) " = " ### BEGIN: Equalized audio configuration" ]; then
130130 PA_EQUALIZER_PERSISTENCE=1
131+ else
132+ PA_EQUALIZER_PERSISTENCE=0
131133 fi
132134else
133135 PA_EQUALIZER_PERSISTENCE=0
@@ -288,7 +290,7 @@ if [ "$1" = "enable-config" ]; then
288290
289291 # Set LADSPA sink as default sink & set appropriate master sink (preamp) volume
290292 echo " set-default-sink $PA_LADSPA_SINK " >> $HOME /.config/pulse/default.pa
291- echo " set-sink-volume $PA_MASTER_SINK $PA_REAL_PREAMP " >> $HOME /.config/pulse/default.pa
293+ # echo "set-sink-volume $PA_MASTER_SINK $PA_REAL_PREAMP" >>$HOME/.config/pulse/default.pa
292294 echo " set-sink-mute $PA_MASTER_SINK 0" >> $HOME /.config/pulse/default.pa
293295 echo " ### END: Equalized audio configuration" >> $HOME /.config/pulse/default.pa
294296
@@ -378,7 +380,7 @@ if [ "$1" = "enable" ]; then
378380
379381 # Unmute & set preamp level on ALSA sink (as LADSPA sink will act as primary volume control)
380382 echo " Setting ALSA sink ($PA_MASTER_SINK ) preamp (" $PA_PREAMP " x)..."
381- echo >> /tmp/eqcommands.sh " set-sink-volume $PA_MASTER_SINK $PA_REAL_PREAMP "
383+ # echo >>/tmp/eqcommands.sh "set-sink-volume $PA_MASTER_SINK $PA_REAL_PREAMP"
382384 echo >> /tmp/eqcommands.sh " set-sink-mute $PA_MASTER_SINK 0"
383385
384386 # Set the LADSPA sink as the default
0 commit comments