On Thu, 7 May 2015 14:40:59 +0200
ludovic coues <cou...@gmail.com> wrote:

> I wanted to know if anyone get either usbhidctl(1) or usbhidaction(1)
> working and if so for which usage.

I use it for volume control and for locking the screen.

got this in my .xinitrc
usbhidaction -d -c ~/.usbhid.conf -f /dev/uhid1 >/dev/console 2>&1

and here is my ~/.usbhid.conf
Consumer:Volume_Increment 1
  mixerctl outputs.master=+15
Consumer:Volume_Decrement 1
  mixerctl outputs.master=-15
Consumer:Mute 1
  mixerctl outputs.master.mute=toggle
Consumer:AL_Calculator 1
  zzzlock
Consumer:AC_Back 1
  xlock
Consumer:AC_Forward 1
 true

Reply via email to