Roon mouse volume control for raspberry pi

I wanted to control the volume of my raspberry pi with IQ audio DAC with a wireless mouse.
So I created a python script to do that:

  • the mouse wheel controls the volume
  • the middle button control pause/play
  • if the middle button is pressed and the mouse wheel is used then the previous or next songs is played.

You can easily use other mouse events to control roon.
You might even control several players using other buttons (current player is now hardcoded).

I uses the roon api; https://github.com/st0g1e/roon-extension-http-api to control roon which I installed on the same server my roon server.

See https://github.com/keesma/roon-mouse for the python script to control roon with your mouse connected to a raspberry.

My idea was to convert a wireless mouse to a wireless remote volume control but I have not done that yet.

1 Like