让ubuntu7.10支持多键鼠标

我的双飞燕鼠标的边键在firefox下无法前进后退,很不方便。查一下xorg.conf multibuttons 大概步骤如下:


1. sudo apt-get install imwheel

2. 修改一下xorg.conf的配置。sudo gedit /etc/X11/xorg.conf


Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "Buttons" "7"
Option "ZAxisMapping" "4 5"
Option "ButtonMapping" "1 2 3 6 7"
EndSection

protocol 改为"ExplorerPS/2"
buttons 改为7,原来为5

3. 修改imwheel自动在图形的时候启动

sudo vi /etc/X11/imwheel/startup.conf

# Set this to "1" to make imwheel start along with your X session.
IMWHEEL_START=1

4. sudo vi /etc/X11/imwheel/imwheelrc

增加下面两行,为了定制在firefox里向前向后的功能。
"^firefox$"
None, Left, Alt_L|Left
None, Right, Alt_L|Right

退出登录,再ctrl+alt+退格键重启gnome. 再进来,打开firefox,边上的向前向后键就启作用了。


注:
几个常用的命令能帮助检测按键的编号

#xev

#imwheel -c
点grab wheel action,然后滚动鼠标,会显示buttion的编号以及在imwheel里的可以使用的名字,如Left,Right


Reference:


Configure Multibutton Mice [url]http://book.opensourceproject.org.cn/distrib/ubuntu/hacks/opensource/0596527209/i-0596527209-chp-5-sect-1.html[/url]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值