ホイールん
基本は、
<>
Section "InputDevice"
Identifier "MouseX"
Driver "mouse"
Option "Protocol" "ImPS/2"
Option "Device" "/dev/mouse" *1
Option "ZAxisMapping" "4 5"
-
- emacsの場合
<<.emacs>>
(defun up-slightly () (interactive) (scroll-up 5))
(defun down-slightly () (interactive) (scroll-down 5))
(global-set-key [mouse-4] 'down-slightly)
(global-set-key [mouse-5] 'up-slightly)
http://search.luky.org/linux-users.9/msg05258.html
-
- ktermの場合
<<.Xdefaults か .Xresources>>
!#KTerm*VT100.Translations: #override\n\
KTerm.vt100.translations: #override\n\
: scroll-back(1,halfpage)\n\
: scroll-forw(1,halfpage)\n\ KTerm.vt100.Scrollbar.translations: #override\n\
: StartScroll(Forward) \n\
: StartScroll(Backward)\n\
アスタリスクとピリオド、どっちを使っても上手くいきそうなのだが。
http://ppc.linux.or.jp/~ipenguin/usb/wheel.html
http://www.a-yu.com/system/usb02_1.html
*1:/dev/psaux でも可 (SymLink)