Touchegg
Touchegg 是一个多点触控手势程序,它在后台以用户身份运行,识别手势,将其转换为更传统的事件类型和/或执行自定义操作以响应它们。
Touchegg 与 Wayland 不兼容。
安装
安装 touchegg 软件包。或者,它也可以在 touchegg-gitAUR 中找到。如果您想要一个桌面应用程序来配置 touchegg,请安装 toucheAUR。
对于 X11 GNOME,除了 touchegg 之外,还可以安装扩展 X11 Gestures。
配置
默认配置可以在 /usr/share/touchegg/touchegg.conf
中找到。
要自定义它,请将默认配置复制到 ~/.config/touchegg/touchegg.conf
并进行更改。
这是一个基本的 XML 文件,用于定义各种手势。请注意,目前 TAP_AND_HOLD
、PINCH
和 ROTATE
似乎无法工作。
由于用户体验不佳,双指滚动模拟已在最近 touchegg 2.0 的重写中被删除。要恢复它,请安装 xdotool 并将以下内容添加到配置文件中
<gesture type="SWIPE" fingers="2" direction="DOWN"> <action type="RUN_COMMAND"> <repeat>true</repeat> <command>xdotool click 4</command> <decreaseCommand>xdotool click 5</decreaseCommand> </action> </gesture> <gesture type="SWIPE" fingers="2" direction="UP"> <action type="RUN_COMMAND"> <repeat>true</repeat> <command>xdotool click 5</command> <decreaseCommand>xdotool click 4</decreaseCommand> </action> </gesture>
请注意,在 KDE 上,滚动时文本会被选中(参见上游 问题 401)。