Things described below are done on my Gentoo Linux on 2015-08-15. However they should apply any X11 Systems such as Debian, Ubuntu, or Arch Linux as well, because none of them are depending on Gentoo specific tools.
This should be easy. Both xfce4 and gnome have config to reverse scroll direction. However, they don’t always reverse only on some GUI apps (such as
evince pdf viewer)
xmodmap seems to solve this issue, but it does not.
xmodmap has another issue that if you unplug/plug USB mouse you have to apply
Let’s find a solution which doesn’t depend on
xmodmap, and which also works for any apps including
Also I want to swap left click and right click.
Section "InputClass" Identifier "natural scrolling for mouse" MatchDriver "evdev" Option "ButtonMapping" "3 2 1 5 4" EndSection Section "InputClass" Identifier "natural scrolling for touchpad" MatchDriver "synaptics" Option "VertScrollDelta" "-111" Option "HorizScrollDelta" "-111" EndSection
After spending couple days I figured out that the above config works.
- Tried to modify files under
/usr/share/X11/xorg.conf.d/which at-home-modifier (i.e.
x11-drivers/xf86-input-evdev) also uses
- Specifying wrong value (e.g.
Driver "mouse") is very dangerous. It can disable any user inputs, and you may have to shutdown computer by holding the power button.
- If you give wrong value the config can be silently ignored.
/var/log/Xorg.0.logcan be helpful for debugging
man synaptics, and
man evdevare helpful
- You may have seen
ZAxisMappingfor inverting scroll. Forget about it. It won’t work
- I use a mouse on my left hand, and I’m a right handed person.
- I like how Mac OSX uses both Ctrl and Command keys.
- I use
autokeya lot. http://ujihisa.blogspot.ca/2012/01/autokey-rocks.html