Loading hdmi_sound_toggle.sh +2 −2 Original line number Original line Diff line number Diff line Loading @@ -32,7 +32,7 @@ INPUTS=$(pulsecmd pacmd list-sink-inputs | grep index | awk '{print $2}') # Compute output name # Compute output name echo $INPUTS echo $INPUTS if [ ! -z $HDMI_STATUS ] && [ -z "$HEADPHONE_STATUS" ] if [ ! -z "$HDMI_STATUS" ] && [ -z "$HEADPHONE_STATUS" ] then then name="hdmi" name="hdmi" plusname=".monitor" plusname=".monitor" Loading @@ -59,7 +59,7 @@ then fi fi echo "io $io" echo "io $io" # Iterate over all cardes # Iterate over all cards for i in $(seq 0 $(($(pulsecmd pacmd list-cards | grep index |wc -l)-1))) for i in $(seq 0 $(($(pulsecmd pacmd list-cards | grep index |wc -l)-1))) do do # Set profile or turn card off # Set profile or turn card off Loading Loading
hdmi_sound_toggle.sh +2 −2 Original line number Original line Diff line number Diff line Loading @@ -32,7 +32,7 @@ INPUTS=$(pulsecmd pacmd list-sink-inputs | grep index | awk '{print $2}') # Compute output name # Compute output name echo $INPUTS echo $INPUTS if [ ! -z $HDMI_STATUS ] && [ -z "$HEADPHONE_STATUS" ] if [ ! -z "$HDMI_STATUS" ] && [ -z "$HEADPHONE_STATUS" ] then then name="hdmi" name="hdmi" plusname=".monitor" plusname=".monitor" Loading @@ -59,7 +59,7 @@ then fi fi echo "io $io" echo "io $io" # Iterate over all cardes # Iterate over all cards for i in $(seq 0 $(($(pulsecmd pacmd list-cards | grep index |wc -l)-1))) for i in $(seq 0 $(($(pulsecmd pacmd list-cards | grep index |wc -l)-1))) do do # Set profile or turn card off # Set profile or turn card off Loading