`
brucejiang
  • 浏览: 32043 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

thinkpad 中键滚动 for Ubuntu 10.04

阅读更多

让Ubuntu下的中键滚动像windows一样~

简单几步:
编辑:

xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5

保存为\home\Mouse_Wheel.sh

在终端中输入

chmod +x Mouse_Wheel.sh

在system > Preferences > Startup Applications 点击“添加” name:输入“Mouse Whell”,Command Box输入“/home/Mouse_Wheel.sh”

创建新文件:/etc/hal/fdi/policy/mouse-wheel.fdi

sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi

代码如下:

<?xml version="1.0" encoding="UTF-8"?>
 <match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
 <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

重启 done

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics