重新映射Logitech T400无线鼠标的中按动作


8

我想在Logitech Zone Touch Mouse T400型号上重新映射中单击的前部和中单击的后部。

根据这个问题的答案,我尝试了这些命令,但是我不知道确切交换什么内容。

这是命令的输出xinput list-props id#(10是设备标识)

 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 

现在,我该如何确切地交换内容,以将中间点击更改为中间点击=中间点击操作。从/代替中键的前部=超级按钮


在评论这个回答似乎表明你不能改变它...否则我建议你换2和10
Nattgew

1
xev | grep -i "button"在终端中运行。移至窗口,单击要交换的按钮。请将终端的输出添加到您的问题中。
Anders FUKiær2014年

xev | grep i "button"T400中前部按钮不起作用。不幸。
efkan

Answers:


1

尝试车轮。

sudo apt-get install imwheel

您可以使用imwheel来配置按钮,这是Ubuntu Wiki推荐的。


1

我用这种方式:

  1. 安装xbindkeysxdotool

    sudo apt-get install xbindkeys xdotool
    
  2. Super通过xbindkeys配置将键重新绑定到鼠标中键

    $ cat ~/.xbindkeysrc
    "xdotool click 2"
      c:133
    
  3. 添加xbindkeys开始X

    $ echo xbindkeys > ~/.xinitrc
    
  4. 禁用Super键上的破折号

    $ sudo apt-get install compizconfig-settings-manager
    

    然后按Alt+ F2并输入about:config

    在“启动器”标签上,您可以禁用或更改“显示短划线的键...”

  5. 开始xbindkeys此会话或重新启动。


0

我不知道这是否真的有帮助,因为我无法尝试。如果有效,请告诉我。

如果您正在运行12.04,则可以使用btnx。它将要求btnx-config,您可以在此处获取

您也可以使用xmodmap更改按钮映射。例如,要用鼠标右键交换左边的内容:

xmodmap -e 'pointer = 3 2 1'

要还原它,只需根据手册设置1 2 3或使用“默认”即可。

您还可以查看如何在Ubuntu 13.10中配置额外的鼠标按钮以获取更多信息。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.