[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Xfce: Apply keyboard settings on USB plug



Le primidi 11 vendémiaire, an CCXXV, Florian Weimer a écrit :
> I'm using the Xfce desktop environment on Debian jessie.  The keyboard
> is plugged into a KVM switch which issues a USB disconnect if I switch
> to another machine.  Once I switch back, the USB connection comes back
> again, but the keyboard settings are gone.  This affects both the
> changes in keyboard repeat/delay I configured within Xfce, and the
> modmap I set with Xmodmap on session start.
> 
> Is there are simple solution to restore the keyboard settings, one
> which is less hackish than watching for USB-related messages in dmesg?

I had the same problem with the keyboard on the sleeve of a hybrid
laptop/tablet, and I wrote the following program:

http://nsup.org/~george/comp/misc/xi2watch.c

It watches for XInput 2 events and executes a given command with the events
details in the environment.

Regards,

-- 
  Nicolas George


Reply to: