[kde-linux] kmix 2.6.1 any dcop command to select channel

christophe christophe.dr at free.fr
Tue Sep 12 19:49:02 UTC 2006


Le Mardi 12 Septembre 2006 20:43, Thomas McGuire a écrit :
> [...]

Now i have this part in my acpi shell script :

case $1 in
...
	soundup)
		volume=$(dcop kmix Mixer0 absoluteVolume 2)
		if [ $volume -lt 255 ]; then
			volume=$[$volume + 16];
			if [ $volume -gt 255 ]; then
				volume=255
			fi
		fi
		dcop kded kmilod displayProgress "Volume Up" $[ $volume * 100 / 255 ]
		dcop kmix Mixer0 setAbsoluteVolume 2 $volume;
	;;
...
esac

-- 
christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20060912/ee25a92d/attachment.sig>


More information about the kde-linux mailing list