Scrollwheel trigger for the MX Revolution

Just finished my first bash-script!

It changes the behaviour of the scrollwheel on your Logitech MX Revolution.

  1. Save .revoco_trigger to your home-folder
  2. chmod +x ./.revoco_trigger
  3. Run “.revoco_trigger setup” as root or with sudo, or better (because the setup is rough & dirty):
    • Download revoco and copy it to /usr/bin/revoco
    • chmod u+s /usr/bin/revoco and chmod u+x /usr/bin/revoco as root
    • Add the line “keycode 255 = XF86Search” to your ~/.Xmodmap and reload it with “xmodmap .Xmodmap”
  4. Map your search-button on the mouse with “~/.revoco_trigger” (on Xfce do this via the application shortcuts in your keyboard settings)
  5. Done! Easy, wasn’t it? :D

As mentioned, this is my very first bash-script, I really don’t know if everything is made the best way (probably not), or if there are any security issues (hope not). If you want to add anything, let me know.