Wróciłem z Bieszczadów

August 28, 2007

Wróciłem w niedzielę z tygodniowego wyjazdu, góry to jest to. Najmilsi jednak w tym wszystkim byli ludzie jakich spotkałem podczas mojego powrotu, obfitującego w wydarzenia. Gdy zszedłed z Tarnicy, trafiłem na rodzinkę z Nowego Sącza, która mnie podwiozła do Cisnej (Przy okazji miło pogadaliśmy), gdy w Cisnej okazało się, że nie mam pieniędzy, a bankomat nie działa, wspólnymi siłami poratowali mnie ludzie z informacji turystycznej i stacji benzynowej. Na końcu, gdy wylądowałem w Sanoku, a ciuchy zostawiłem w autobusie, wystarczyło zadzwonić do zajezdni, żeby je znaleźli, a przypadkowo spotkani kierowcy autobusów mi w tym pomogli i zawieźli gdzie trzeba. Takie sytuacje podnoszą na duchu, uwierzcie mi.

I’ve got this shiny little Might Mouse by Apple that has a load of really neat features I don’t use (namely side buttons) and some I really like (Very sweet vertical and horizontal scroll). Unfortunately horizontal scroll doesn’t work out of the box and when enabled Firefox needs some tweaking. So here are the needed steps. They should work for any distro that has evdev support working (a not-so-ancient udev and X.org required) and any mouse that has horizontal scroll. Or at least I hope so.

First, one needs to tell X.org server to actually treat horizontal wheel events as horizontal wheel. To do this replace in xorg.conf the InputDevice section referring your mouse with this:

Section “InputDevice”
Identifier “Configured Mouse”
Option “CorePointer”
Driver “evdev”
Option “Name” “Mitsumi Electric Apple Optical USB Mouse”
Option “HWHEELRelativeAxisButtons” “7 6″
Option “Buttons” “8″
EndSection

Tweak it to your needs if you have other mouse. Right now all Gnome apps should interpret horizontal scroll properly. Firefox however by default assigns horizontal scroll events to forward/back options. You might want it, but probably you’ll just want to have scroll scroll windows contents, won’t you? So fire up Firefox, go to about:config and change following name/value pairs:

mousewheel.horizscroll.withnokey.action from 2 to 1

mousewheel.horizscroll.withnokey.numlines from -1 to 1

This applies to some other Gecko based apps, I’ve stumbled upon Liferea nedeing same fixes. Right now all should work, hope it helps.