Welcome 微信登录

首页 / 操作系统 / Linux / Eclipse 中五键鼠标无法使用的解决方法

五键鼠标还是挺爽的,用惯了前进/后退 键就摆脱不了了。可惜在 Eclipse 下这两个按键竟然不听使唤。还好有办法解决它。如果是 Windows 下,装一个 Logitech 或 Microsoft 的鼠标驱动,在鼠标设置中把两个侧键分别映射为 Alt+左方向键 和 Alt+右方向键 即可。如果是 Linux 下,需要做几件事:1. /etc/X11/xorg.conf 中 InputDevice 一节改为
  1. Section "InputDevice"  
  2.     Identifier "Mouse0"  
  3.     Driver "mouse"  
  4.     Option "CorePointer"  
  5.     Option "Device" "/dev/psaux"  
  6.     Option "Protocol" "auto"  
  7.     Option "Buttons" "7"  
  8.     Option "ZAxisMapping" "4 5"  
  9.     Option "ButtonMapping" "1 2 3 6 7"  
  10. EndSection  
2. 安装 imwheel3. /etc/X11/imwheel/imwheelrc 改为
  1. #Thanks to Veiz   
  2. ".*"  
  3. None,   Thumb1, Alt_L|Left   
  4. None,   Thumb2, Alt_L|Right  
4. /etc/X11/imwheel/startup.conf 改为
  1. IMWHEEL_START=1   
  2. IMWHEEL_PARAMS="-b "0 0 0 0 8 9""  
5. 重启X