Dont you hate it when you see something wasted? same as your 4th buttons on your mouse, so let's make use of it in Linux!
We all wanted to use our mouse to spell out the 'Return' and
'Space' keys. I thought it handy for the following chores I do in xterm
quite frequently:
cut->paste->enter, or
cut->paste->space->cut->paste->....->enter
without moving my right hand between the keyboard and the mouse. So I bought
Logitech 4-button Mouseman and started reading manpages. I ended up adding
new translations into my .Xdefaults file (last 2 entries):
xterm*VT100.Translations: #override
Prior : scroll-back(1,page)
Next : scroll-forw(1,page)
Shift : string(0x0020)
: string(0xff0d)
Now, when I paste a command into the paste buffer, I can execute it by just
hitting middle button followed by Button4, or add a space behind it by
Shift+Button4 and paste some more stuff behind it.
BTW, don't forget to add 4 button mouse to /etc/X11/XF86Config:
Section "Pointer"
Protocol "MouseManPlusPS/2"
Device "/dev/mouse"
Resolution 100
Buttons 4
EndSection
I believe this will also work with them trackballs, other 4 button creatures
and possibly with them scrolling rodents, too.