<?xml version="1.0"?>
<root>
  <item>
    <name>Logitech M510 mouse</name>
    <appendix>Support for extra buttons</appendix>
    <item>
      <name>Forward Button to Browser Go Forward</name>
      <appendix>Button on the left side of M510</appendix>
      <identifier>device.logitech.m510.browser.goforward</identifier>
      <device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_USB_RECEIVER</device_only>
      <autogen>
        __KeyToKey__
        PointingButton::BUTTON5,
        KeyCode::CURSOR_RIGHT, ModifierFlag::COMMAND_L
      </autogen>
    </item>

    <item>
      <name>Back Button to Browser Go Back</name>
      <appendix>Button on the left side of M510</appendix>
      <identifier>device.logitech.m510.browser.goback</identifier>
      <device_only>DeviceVendor::LOGITECH, DeviceProduct::LOGITECH_USB_RECEIVER</device_only>
      <autogen>
        __KeyToKey__
        PointingButton::BUTTON4,
        KeyCode::CURSOR_LEFT, ModifierFlag::COMMAND_L
      </autogen>
    </item>
  </item>
</root>

Add support for the logitech M510 side buttons
Add support for the logitech M510 side buttons