我有一个运行在蓝牙上的新鼠标,但我不得不使用xinput --set-button-map手动设置鼠标中间的按钮。这在重新启动后并不持久,所以我编写了一个小python脚本,以便在登录后自动运行它。不幸的是,它不能工作,因为在鼠标登录后自动重新连接之前有一些延迟。
我想在我的脚本中添加一些等待,但我确信一定有更好的方法来做到这一点。我可以从/usr/sbin/bluetoothd连接事件或类似的东西吗?
发布于 2014-01-19 19:04:29
我把一些等待时间和重新尝试在我的脚本和生活了几天,但这个周末我有一些空闲时间来找到“正确的”解决方案。
也就是说,将按钮映射添加到X的配置文件中。
#/usr/share/X11/xorg.conf.d/logitech-mx-revolution.conf
Section "InputClass"
Identifier "Logitech MX Revolution Mouse"
Option "ButtonMapping" "1 2 3 4 5 6 7 9 8 10 11 12 13 14 15 2 17 18 19 20 21 22 23 24"
EndSection希望有一天这能帮到别人。
发布于 2015-01-13 23:55:24
我有一个Logitech超薄Touch,我需要重新映射来处理:
/etc/x11/xorg.con.d/10-evdev.conf## logitech超薄鼠标定制
Section "InputDevice"
Identifier "Logitech bluetooth Touch Mouse"
Driver "evdev"
Option "Name" "Ultrathin Touch Mouse"
Option "ButtonMapping" "1 1 3 4 5 6 7 0 0 0 0 0 0"
EndSection
Section "InputClass"
Identifier "Ultrathin Touch Mouse"
Option "ButtonMapping" "1 1 3 4 5 6 7 0 0 0 0 0 0"
EndSection我不知道是否需要这些,但经过一天的挣扎,我感到欣慰的是,有些东西能成功.我现在发现水平滚动比我想的要慢一些。因此,我可能会看看是否有一些选项来配置它。
https://askubuntu.com/questions/405073
复制相似问题