<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>

    <!-- keyboards -->
    <match key="info.capabilities" contains="input.keys">
      <merge key="input.x11_driver" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
        <merge key="input.xkb.rules" type="string">xorg</merge>
        <merge key="input.xkb.layout" type="string">#-os_install_locale_xkbname-#</merge>
        <merge key="input.xkb.model" type="string">pc104</merge>
#?os_locale_xkb!=us#
        <merge key="input.xkb.options" type="string">grp:caps_toggle</merge>
        <append key="input.xkb.options" type="string">,grp:switch</append>
        <append key="input.xkb.options" type="string">,grp_led:caps</append>
#os_locale_xkb#
      </match>
    </match>


    <!-- mouses -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
	<merge key="input.x11_options.Buttons" type="string">5</merge> 
	<merge key="input.x11_options.Protocol" type="string">auto</merge> 
	<merge key="input.x11_options.Emulate3Buttons" type="string"></merge>
	<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge> 
      </match>
    </match>

  </device>
</deviceinfo>
