我正在和一个拥有Mac的朋友交谈。他已经设置好了当他在触摸板上用三根手指划过时,它会沿着那个方向移动到工作区。在Ubuntu上能否设置这个功能呢?
我正在和一个拥有Mac的朋友交谈。他已经设置好了当他在触摸板上用三根手指划过时,它会沿着那个方向移动到工作区。在Ubuntu上能否设置这个功能呢?
下载Touchegg:
sudo apt install touchegg
运行它,但之后立即终止,它会创建一个文件
~/.config/touchegg/touchegg.conf
在所需的编辑器中打开它,并将以下三行添加到 name="All" 部分中
<gesture type="DRAG" fingers="3" direction="RIGHT">
<action type="SEND_KEYS">Control+Alt+Left</action>
</gesture>
<gesture type="DRAG" fingers="3" direction="LEFT">
<action type="SEND_KEYS">Control+Alt+Right</action>
</gesture>
运行 touchegg 进行尝试
touchegg &
按需编辑配置文件,然后将 touchegg 添加到启动应用程序列表中
https://wiki.ubuntu.com/DebuggingTouchpadDetection
看一下那个页面,如果你能识别出你的硬件,我们或许可以给你更具体的帮助。http://sourceforge.net/apps/trac/easystroke/wiki
这是一个easystroke的演示:http://www.youtube.com/watch?v=CagAEgXAAzAsudo gpasswd -a $USER input
sudo apt-get install xdotool wmctrl libinput-tools
git clone http://github.com/bulletmark/libinput-gestures
cd libinput-gestures
sudo ./libinput-gestures-setup install
~/.config/libinput-gestures.conf
文件如下:gesture swipe down xdotool key ctrl+alt+Up
gesture swipe up xdotool key ctrl+alt+Down
gesture swipe right xdotool key ctrl+alt+Left
gesture swipe left xdotool key ctrl+alt+Right
<gesture type="DRAG" fingers="4" direction="RIGHT">
<action type="SEND_KEYS">Control+Alt+Right</action>
</gesture>
<gesture type="DRAG" fingers="4" direction="LEFT">
<action type="SEND_KEYS">Control+Alt+Left</action>
</gesture>
sudo nano /usr/share/X11/xorg.conf.d/70-synaptics.conf
# Touchpad Speedup
Option "AccelFactor" "0.025"
Option "MinSpeed" "0.80"
Option "MaxSpeed" "0.95"
Option "FingerHigh" "55"
Option "FingerLow" "45"
sudo nano ~/.config/libinput-gestures.conf
gesture swipe up 3 xdotool key ctrl+alt+Up
gesture swipe down 3 xdotool key ctrl+alt+Down
gesture swipe left 3 xdotool key ctrl+alt+Left
gesture swipe right 3 xdotool key ctrl+alt+Right
sudo gpasswd -a $USER input
sudo apt-get install xdotool wmctrl libinput-tools
git clone http://github.com/bulletmark/libinput-gestures
cd libinput-gestures
sudo ./libinput-gestures-setup install
cd ~/libinput-gestures
gedit libinput-gestures.conf
gesture swipe down xdotool key ctrl+alt+Up
gesture swipe up xdotool key ctrl+alt+Down
gesture swipe right xdotool key ctrl+alt+Left
gesture swipe left xdotool key ctrl+alt+Right
EasyStroke
的程序可能能够满足你的需求。请点击这里查看设置说明。 - JamesG