2008年5月26日 星期一

你小黑的滾輪中鍵不理你嗎?

##CONTINUE##
請你跟我這樣作

到你/etc/X11 下面的 xorg.conf,ok!到終端機去輸入:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf-backup
sudo gedit /etc/X11/xorg.conf

(先做個備份,再開啟它!)

gedit中,找到InputDevice部分中Configured Mouse,在EndScetion前增加:

Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"

果想使用水平scroll增加:

Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
要在firefox裡也有這樣的動作還要打開about:config

mousewheel.horizscroll.withcontrolkey.action = 3;
mousewheel.horizscroll.withcontrolkey.numlines = 1;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;

mousewheel.horizscroll.withnokey.action = 0;
mousewheel.horizscroll.withnokey.numlines = 1;
mousewheel.horizscroll.withnokey.sysnumlines = true;

mousewheel.horizscroll.withshiftkey.action = 1;
mousewheel.horizscroll.withshiftkey.numlines = 1;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;


完成!有人說馬上就可以用!但我覺得X-Window重開會比較好!

沒有留言: