Freedom The Open Source Way Contribute Articles or News to OSForgeOSForge HomeLogout from Forums
Contacting OSForgeOSForge HomeAbout OSForge
  

Root
Contribute News
Learning Corner
Linux Distributions
Linux Common FAQ's
Discussion Forums
Community Gallery
Links Directory
Search OSForge
Networking
Industry Updates
Linux & Open Source
Opinions
Press Release
Programming
Security
Web Development

White Paper
The Linux Foundation Reveals Speaker Line-up for 2nd Annual Collaboration Summit
Zenoss Core Named 2008 CODiE Awards Finalist for Best Open Source Solution
Cluster Resources Releases TORQUE 2.3 and GOLD Allocation Manager 2.1.5
Open-Xchange Announces New CEO, Board Positions
xTuple Debuts Managed Server Network
World’s Largest P2P Media Distribution Provider Selects Zenoss
Linux Kernel Developer Ted Ts’o Joins Linux Foundation as Chief Platform Strategist
Zenoss Launches Network Management Products for Education
xTuple Applications Certified for Mac OS X “Leopard”
New Funambol Release Expands User Base for Open Source Push Email and PIM Sync

View More

How to use all 4 buttons on my mouse in Linux ?
  [Printable Version]



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.
  

[ Back to Linux Computing | Sections Index ]

 
Scroll Up

   About | Term of Use | Privacy | Adras | Tell a Friend | Advertise  

OSForge News RSS Feed