A lot of places recommend to use the following tmux config to disable the (outer) terminal emulator's alternate screen:
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
But this will override the default value of the `terminal-overrides` setting, and therefore the following should be used instead:
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
Without using the "append" (-a) option with "set", the defaults would be overwritten, which are currently:
*256col*:colors=256,xterm*:XT:Ms=\E]52;%p1%s;%p2%s\007:Cs=\E]12;%p1%s\007:Cr=\E]112\007:Ss=\E[%p1%d q:Se=\E[2 q,screen*:XT
Another method to remove the "smcup" and "rmcup" capabilities globally is the following (via ~/.zshrc, ~/.bashrc etc):
To configure my Kingsis Peripherals Evoluent VerticalMouse 3, I've added the following fdi (HAL configuration info) to
The most important part (for me) here is ButtonMapping: by default only the wheelbutton triggers middle click, but since it's rather hard to press (and I use it often for pasting), I've mapped it to the middle button on the right side, too.
Also, the thumb button becomes "Back" (in browsers) and the lowest button on the right triggers the context menu.
Update: This was meant to included in Ubuntu Karmic (see bug 451729), but then got removed again (not everybody liked it).
Update^2: for udev (which is used solely since Ubuntu Lucid), I've transformed it into the following file (which you can store as
(see also https://wiki.kubuntu.org/X/InputConfiguration for more information)
Update^3: This is bugged in Ubuntu Lucid.