Does anyone know how to assign a command to a mouse action (e.g. holding middle-mouse-button)?
Like this: hold down middle-mouse-button, command #1, release middle-mouse-button, command #2
At this point I'm using Mangler (Ventrilo-client) to chat, and I have my middle-mouse-button button assigned as "push to speak". But, here's the thing, I like to play music at the same time (Rhythmbox). So I'd like to mute Rhythmbox while I'm talking on Mangler.
I have already found the commands to mute/unmute Rhythmbox using rhythmbox-client --mute and rhythmbox-client --unmute, but I haven't found any way to attach a command to a mouse action.
If someone manages to use rhythmbox-client --set-volume to temporarily lower the volume when someone is talking on Mangler; that would be awesome!