ubuntu 14.04配置多功能鼠标

ubuntu 14.04按“在Linux下自定义多按键鼠标的功能”安装配置btnx后,找不到~/.Xmodmap文件,无法屏蔽系统默认的鼠标按键功能。原因是,ubuntu新版已停用xmodmap。

配置方法:

$ xinput list | grep 'id='
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ RAPOO RAPOO 5G Wireless Device id=11 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=14 [slave pointer (2)]
⎜ ↳ TPPS/2 IBM TrackPoint id=15 [slave pointer (2)]
⎜ ↳ btnx mouse id=17 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
 ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
 ↳ Power Button id=6 [slave keyboard (3)]
 ↳ Video Bus id=7 [slave keyboard (3)]
 ↳ Video Bus id=8 [slave keyboard (3)]
 ↳ Sleep Button id=9 [slave keyboard (3)]
 ↳ RAPOO RAPOO 5G Wireless Device id=10 [slave keyboard (3)]
 ↳ Integrated Camera id=12 [slave keyboard (3)]
 ↳ AT Translated Set 2 keyboard id=13 [slave keyboard (3)]
 ↳ ThinkPad Extra Buttons id=16 [slave keyboard (3)]
 ↳ btnx keyboard 

$ xinput get-button-map 11
1 2 3 4 5 6 7 8 9 10 11 12 13

$ xinput set-button-map 11 1 2 3 4 5 6 7 0 0 10 11 12 13

搞定!

One thought on “ubuntu 14.04配置多功能鼠标”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.