volume control with shortcuts

Bernhard Walle Bernhard.Walle at gmx.de
Sat Sep 27 19:33:06 CEST 2003


Hello,

On Sat, 27 Sep 2003 at 16:39 (+0200), cedric dewulf wrote:
> i've installed xfce4 yesterday and so far i'm very pleased with it.
> the only thing that makes me feel a bit nostalgic is that i haven't found a 
> way
> to create shortcuts to increase/decrease the sound volume.

use xbindkeys and bind the shortcuts to some commands of aumix.
Or use my attached script.



Regards,
Bernhard

-- 
-------------- next part --------------
#!/bin/sh

case $1 in 
	
	-increase)		aumix -v +10
					;;
	-decrease)		aumix -v -10
					;;
	-mute)			if [ -r $HOME/.mute ] ; then
						aumix -L
						rm $HOME/.mute
					else
						aumix -S
						aumix -v 0
						touch $HOME/.mute
					fi
					;;
	*)				echo "Usage: volumectrl -increase | -decrease | -help | -mute"
					;;
esac



More information about the Xfce mailing list