Hi,

On Fri, Aug 20, 2021 at 10:48:28PM -0700, David Rinehart wrote:
> I use usbhidaction, a little differently:
> 
> - OBSD media server in office, connected to speakers
> 
> - Custom microservice on media server, to control volume
> 
> - When I am docked at startup (detected in .xsession), configure:
> 
>       - Set AUDIODEVICE to office media server for sndio
> 
>       - Use usbhidaction to send volume and mute commands to media
>         center microservice
> 
> This setup works incredibly well - and I would never have considered it
> with other OSs.  I would have tried to rig a headphone jack and
> splitter or something.  Current config just uses the network.
> 
> Since I have other OBSD media servers around the house, I can easily
> change the address and send audio & control to other rooms.
> 
> Wondering if my custom config will still be possible with ucc...

I'm afraid it won't work with your setup. As I understand things, you're
reacting to certain buttons and relaying the associated action to your
media server using usbhidaction? I see two alternatives:

1. Disable ucc completely keeping your old setup intact.

2. Wondering if one could write a small X11 utility that listens for
   keyboard input and reacts to certian keys like XF86AudioMute. This
   requires some trivial tweak to ucc as it currently does not emit any
   scan codes for the volume related usages in raw mode.

Reply via email to