Page 1 of 1

Keyboard volume control

Posted: Fri Aug 01, 2025 10:20 am
by alex124.rh
Hi there,

I noticed there’s no key mapped to volume, and i wanted to use this to build a link to a canbus command for steering wheel controls. And is there a way to press and hold the volume button to quickly go up and down with volume.

Really loving this software and excited to see it grow.

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 10:41 am
by hudiy
No, there is no mapping for volume but you can use actions to trigger
  • Volume down (output_volume_down)
  • Volume up (output_volume_up)
  • Mute (toggle_output_muted)
  • Mic volume up (input_volume_up)
  • Mic volume down (input_volume_down)
  • Mic mute (toggle_input_muted)
These actions control the volume of the sink and source defined in your configuration: volumeSinkName and sourceName in https://github.com/wiboma/hudiy/blob/ma ... n.md#sound.

You can trigger these actions via the API.

Example usage in Python: https://github.com/wiboma/hudiy/blob/ma ... hAction.py
Api reference: https://github.com/wiboma/hudiy/blob/ma ... proto#L723

In short, you can write your own script or application (e.g. in Python) that listens for CAN bus events and sends a MESSAGE_DISPATCH_ACTION with the appropriate action when a matching CAN signal is received.

There are many predefined actions available that can be triggered this way. You can also dispatch your own actions.

List of predefined actions is available at: https://github.com/wiboma/hudiy?tab=rea ... ed-actions

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 11:03 am
by alex124.rh
Thanks very much for the info, I’ll give this a try. I reckon I could attempt the same with a rotary encoder too.

What was your thought about the press and hold volume in the shortcuts area?

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 11:21 am
by hudiy
In the shortcuts panel, all buttons only support the press event. If you'd like to implement a press and hold feature, you can easily do it using HTML/JavaScript. In your custom control, you can add the required buttons (e. g. as divs) and detect press/hold in JavaScript using addEventListener on the specific button. You can then add this control as a widget on the Dashboard or as an overlay, and position the overlay over (hover) the shortcuts panel or any other suitable position (using x, y https://github.com/wiboma/hudiy?tab=rea ... figuration).

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 11:28 am
by alex124.rh
thanks for this, will add to my to do list, how do i see all the icons in the font that contains them? i tried to open the file but it didn’t work. thanks.

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 11:29 am
by alex124.rh
thanks for this, will add to my to do list, how do i see all the icons in the font that contains them? i tried to open the file but it didn’t work. thanks. :D

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 11:32 am
by hudiy
List of glyphs in e. g. Material Symbols is available at https://fonts.google.com/icons

In your HTML/JavaScript you have to deliver the font by yourself (like e. g. for Roboto in https://github.com/wiboma/hudiy/blob/ma ... idget.html) or you can simply use images for icons.

Re: Keyboard volume control

Posted: Fri Aug 01, 2025 11:53 am
by alex124.rh
I see thank you,

I just wondered how to use the same ones as they appear more rounded as they appear stock.