#!/bin/bash
while [ true ]
do
	info=`amixer -c 0 sget DAC,0 | egrep -o "[0-9]+%"`
	exec amixer -c 0 sset DAC,1 $info &
	sleep 1
done
exit 0
ert

#Requires: 
#	amixer (from alsa-utils)

#Usage:
#	After running the script, it will keep running in a loop continuously checking the volume
#	of the left channel, and changing the volume of the right channel to match it.
#	For best usage, have this script auto-run at login.

while [ true ]
do
	info=`amixer -c 0 sget DAC,0 | egrep -o "[0-9]+%"`
	exec amixer -c 0 sset DAC,1 $info &
	sleep 1
done
exit 0
