タッチパッドのスクロール方向を逆にする

MacOSXがLionになってからというものあの逆スワイプが癖になってしまいました。Linuxノートでもつい逆に。ペンタブのスワイプも、ついつい。機械カウンタとか、ドラムマシンのスライダーとか、子供を撫でるときとか(違う
せめてLinuxくらいなんとかしたいなーと。

いや、あっという間

Xorgでこういうのいじるって言ったら・・・ とおもむろに man xmodmap してみたらもろにありました。

pointer = NUMBER ...
This sets the pointer map to contain the indicated button codes. The list always starts with the first
physical button. Setting a button code to 0 disables events from that button.

あとはxevでボタンコードを拾ってみると

ButtonPress event, serial 33, synthetic NO, window 0x5600001,
root 0xb1, subw 0x0, time 7352231, (39,130), root:(1005,183),
state 0x0, button 5, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x5600001,
root 0xb1, subw 0x0, time 7352231, (39,130), root:(1005,183),
state 0x1000, button 5, same_screen YES

ButtonPress event, serial 33, synthetic NO, window 0x5600001,
root 0xb1, subw 0x0, time 7353424, (39,130), root:(1005,183),
state 0x0, button 4, same_screen YES

ButtonRelease event, serial 33, synthetic NO, window 0x5600001,
root 0xb1, subw 0x0, time 7353424, (39,130), root:(1005,183),
state 0x800, button 4, same_screen YES

4 と 5をひっくり返せばいいのですね。
ということでやってみる。

pointer = 1 2 3 5 4 6 7 8 9 10 11 12

これをxmodmapに食わせてみると、、、あっけなく成功。
すばらつまらん。

結論

Linuxさいこー