我想重新映射 Logitech Zone Touch Mouse T400 型号中键单击前部和中键单击后部的功能。
根据这问题是,我尝试了命令,但我不明白到底要交换什么。
以下是该命令的输出xinput list-props id#
(10 是设备 ID)
nirmik@nirmik:~$ xinput list-props 10
Device 'Logitech Unifying Device. Wireless PID:4026':
Device Enabled (134): 1
Coordinate Transformation Matrix (136): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (256): 0
Device Accel Constant Deceleration (257): 1.000000
Device Accel Adaptive Deceleration (258): 1.000000
Device Accel Velocity Scaling (259): 10.000000
Device Product ID (251): 1133, 50475
Device Node (252): "/dev/input/event6"
Evdev Axis Inversion (653): 0, 0
Evdev Axes Swap (655): 0
Axis Labels (656): "Rel X" (144), "Rel Y" (145), "Rel Horiz Wheel" (650), "Rel Dial" (651), "Rel Vert Wheel" (652)
Button Labels (657): "Button Left" (137), "Button Middle" (138), "Button Right" (139), "Button Wheel Up" (140), "Button Wheel Down" (141), "Button Horiz Wheel Left" (142), "Button Horiz Wheel Right" (143), "Button Side" (645), "Button Extra" (646), "Button Forward" (647), "Button Back" (648), "Button Task" (649), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643), "Button Unknown" (643)
Evdev Middle Button Emulation (658): 0
Evdev Middle Button Timeout (659): 50
Evdev Third Button Emulation (660): 0
Evdev Third Button Emulation Timeout (661): 1000
Evdev Third Button Emulation Button (662): 3
Evdev Third Button Emulation Threshold (663): 20
Evdev Wheel Emulation (664): 0
Evdev Wheel Emulation Axes (665): 0, 0, 4, 5
Evdev Wheel Emulation Inertia (666): 10
Evdev Wheel Emulation Timeout (667): 200
Evdev Wheel Emulation Button (668): 4
Evdev Drag Lock Buttons (669): 0
下一个命令的输出xinput get-button-map 10
是
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
现在我到底要交换什么才能将中键单击更改为中键单击的前部 = 中键单击操作。从/代替中键单击的前部 = 超级按钮
答案1
尝试一下 imwheel。
sudo apt-get install imwheel
您可以使用 imwheel 配置您的按钮,这是 Ubuntu wiki 推荐的。
答案2
我使用过这样的方式:
安装
xbindkeys
和xdotool
sudo apt-get install xbindkeys xdotool
通过配置将按键重新绑定Super到鼠标中键
xbindkeys
$ cat ~/.xbindkeysrc "xdotool click 2" c:133
添加
xbindkeys
至开头X
$ echo xbindkeys > ~/.xinitrc
Super禁用通过按键打开 Dash
$ sudo apt-get install compizconfig-settings-manager
然后按Alt+F2并输入
about:config
在“启动器”选项卡上,您可以禁用或更改“显示仪表板的键...”
开始
xbindkeys
此会话或重新启动。
答案3
我不知道这是否真的有用,因为我无法尝试。如果有效,请告诉我。
如果你运行的是 12.04,你可以使用雙方。它会要求您提供 btnx-config,您可以获取这里
您还可以使用 xmodmap 更改按钮映射。例如,将鼠标左键与鼠标右键交换:
xmodmap -e 'pointer = 3 2 1'
要恢复它,只需设置 1 2 3 或使用“默认”手册页。
你也可以看看如何在 Ubuntu 13.10 中配置额外的鼠标按钮了解更多信息。