Chapter 3. Advanced usage

Remote controlling and scripting via D-Bus

You can control KMix via D-Bus. This is for advanced users who want to achieve special tasks, like muting the PC every day at 10 pm, or for any other scripting task.

List all KMix related D-Bus methods and properties

qdbus org.kde.kmix

Getting volume level (0-100%):

qdbus org.kde.kmix /Mixers/0/Master_0 org.freedesktop.DBus.Properties.Get org.kde.KMix.Control volume

Setting volume level (0-100%):

qdbus org.kde.kmix /Mixers/0/Master_0 org.freedesktop.DBus.Properties.Set org.kde.KMix.Control volume 70