红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

让ubuntu7.10支持多键鼠标

让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

#这一行把注释去掉
IMWHEEL_PARAMS='-b "0 0 8 9"'

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

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

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

TOP

发新话题