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
Likewise Cross-Platform Integration Software Hits 100,000 Users
Cloud.com Releases New Version of CloudStack
CeBIT 2011: Zarafa Sets New European Open Source Groupware Standard
Open-Xchange Partners to Bring Cloud-Based E-mail Integration with Salesforce.com
Dell Customers Use Ubuntu to Deploy Cloud
London's Design Museum Recognizes Ubuntu Fonts
Canonical announces Ubuntu Developer Day
Capgemini Enters into an Alliance with Six Open Source Vendors
Liferay Releases LESA to Enterprise Customers
Zarafa Announces SiMKo 2 Support and a New S/MIME WebAccess Plugin

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 Computin | Sections Index ]

 
Scroll Up

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

OSForge News RSS Feed