Hi,<br>I'm taking care of a simple applet for the lxpanel named keyboard layout handler (<a href="http://www.giuspen.com/customs/">http://www.giuspen.com/customs/</a>)<br>which works with setxkbmap.<br><br>The applet works pretty good but I realized that if I connect an usb keyboard, the new keyboard won't take the settings<br>
from setxkbmap but rather the single layout defined at installation time.<br>For this reason I need to call setxkbmap again if an usb keyboard is connected.<br><br>Can anybody help me, maybe with a C code snippet, to understand how to get the event<br>
that a new keyboard is connected (if this event exists).<br>Thanks, cheers,<br>Giuseppe.<br><br>