触摸板手势可以更改工作区
我正在和一位拥有Mac的朋友谈话。 他有自己的设置,当他用三根手指划过触摸板时,它会向那个方向移动到工作区。 是否可以在ubuntu中设置它?
谢谢。
您的触摸板(硬件)需要支持此function,然后您可能需要配置触摸板(Ubuntu会自动识别并启用某些硬件)。
一种常见的干燥剂是突触。 您可以从控制面板中的鼠标和触摸板部分启用两个手指滚动。
如果您需要其他选项,则需要手动编辑一些配置文件,这些选项取决于硬件。
这里有一个调试页面:
https://wiki.ubuntu.com/DebuggingTouchpadDetection
看看那个页面,如果你能识别你的硬件,我们可能会给你更具体的帮助。
硬件特定指南的示例: https : //wiki.ubuntu.com/Multitouch/AppleMagicTrackpad
考虑一下easystroke
你也可以看看“easystroke”
http://sourceforge.net/apps/trac/easystroke/wiki
以下是easyystroke的演示: http : //www.youtube.com/watch?v = CadaegXAAzA
如何在ubuntu中使用触摸板手势更改工作区
使用touchegg完成教程,easystroke最好与鼠标而不是触摸板一起使用。
如果你使用统一,你可能会遇到与内置手势的一些冲突。 本教程我从这个问题的处理中获得了信息(请参阅下面的链接)。 我没有任何手势构建,所以这个方法只提供了如何设置的东西。
1)下载touchegg:
sudo apt-get install touchegg
2)运行它,但在此之后杀死,它将创建一个文件
~/.config/touchegg/touchegg.conf
3)在你想要的编辑器中打开它,并将以下三行添加到name =“All”部分
Control+Alt+Left Control+Alt+Right
4)运行touchegg尝试一下
touchegg &
5)根据需要编辑配置文件,然后将touchegg添加到启动应用程序列表中
我提到的教程可以在这里找到 – 有些东西已经过时了(你不必编译它)。 无论如何,对创作者来说!
舒适的刷卡
尝试舒服刷卡 。 提供用于切换工作空间的3指和4指手势,以及更像麦克风中的窗口。
这也使用xdotool,但如果你问我,比滞后的libinput-gestures更舒服。
以下在Ubuntu 16.04和2017年戴尔XPS 13(9360)上为我工作:
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
完成上述步骤后重新启动计算机。 我的~/.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
这是我的解决方案:4个手指和自然方向。
Control+Alt+Right Control+Alt+Left
我使用xdotool的synaptics驱动程序来做到这一点……
为了我的macbook触摸板的速度:
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"
对于3个手指手势更改工作区:
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
并编辑创建的libinput-gestures.conf:
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
请记住:您必须将Ubuntu设置中的组合键设置为上面显示的组合 – 这些组合应该是默认值。