Just finished my first bash-script!
It changes the behaviour of the scrollwheel on your Logitech MX Revolution.
- Save .revoco_trigger to your home-folder
- chmod +x ./.revoco_trigger
- 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”
- Map your search-button on the mouse with “~/.revoco_trigger” (on Xfce do this via the application shortcuts in your keyboard settings)
- 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.