在 Ubuntu 14.04 中三指滑动更改工作区

use*_*109 5 touchpad multi-touch 14.04

我刚买了一台戴尔 XPS 13,我有一台 Macbook 用于我的工作。

我想使用触摸板来更改工作区。我发现了一些问题,但提供的所有答案都不适用于 Ubuntu 14.04。

有没有人通过 3 指滑动来切换工作区?

小智 0

我正在运行 15.04,我可以使用xSwipe进行三指滑动。我按照本教程做到了:

Ubuntu 13.10、Mint 16 及更高版本

首先下载以下依赖项。

sudo apt-get install build-essential libevdev-dev autoconf automake libmtdev-dev xorg-dev xutils-dev libtool
Run Code Online (Sandbox Code Playgroud)

现在,我们需要删除旧的驱动程序,以便新的驱动程序覆盖它。

sudo apt-get remove xserver-xorg-input-synaptics
Run Code Online (Sandbox Code Playgroud)

然后,克隆源代码并构建新的驱动程序!

git clone https://github.com/felipejfc/xserver-xorg-input-synaptics.git
cd xserver-xorg-input-synaptics
./autogen.sh
./configure --exec_prefix=/usr
make
sudo make install
Run Code Online (Sandbox Code Playgroud)

完成后,重新启动并确保指针正常工作。

设置 xSwipe

首先安装依赖项。

sudo apt-get install libx11-guitest-perl
Run Code Online (Sandbox Code Playgroud)

然后启用 SHMConfig 以允许处理手势。

mkdir /etc/X11/xorg.conf.d/
sudo nano /etc/X11/xorg.conf.d/50-synaptics.conf
Run Code Online (Sandbox Code Playgroud)

用以下内容填充文件,然后保存!

Section "InputClass"
Identifier "evdev touchpad catchall" 
Driver "synaptics" 
MatchDevicePath "/dev/input/event*" 
MatchIsTouchpad "on" 
Option "Protocol" "event"
Option "SHMConfig" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)

现在将 xSwipe 克隆到您选择的位置。

git clone https://github.com/iberianpig/xSwipe.git
Run Code Online (Sandbox Code Playgroud)

并根据您的喜好更改 eventkey.cfg 文件。编辑:似乎在 13.10 和 14.04 版本的 Ubuntu(以及任何版本的 Cinnamon)中,“其他”类别中设置的键是在按键滑动时发出信号的键。忽略 unity 和 cinnnamon 的 ubuntu 和 gnome 部分。

cd xSwipe/
nano eventkey.cfg
Run Code Online (Sandbox Code Playgroud)

现在通过运行进行测试:

perl xSwipe.pl
Run Code Online (Sandbox Code Playgroud)

尝试用不同的手势滑动并检查终端以查看它们是否正常工作。如果是,您现在可以根据您的环境将该脚本添加到启动程序中。添加后,重新启动,您应该可以使用多点触控手势!

更新:这似乎花费了我的电池寿命大约一个小时。为了解决这个问题,我使用参数 -m 30 更改灵敏度。

perl xSwipe.pl -m 30
Run Code Online (Sandbox Code Playgroud)

所有学分均归 Matthew Iannucci 所有,在此处找到本教程和评论:整个教程

如果这对您不起作用,您可以尝试制作 xSwipe 的 iberianpig 的教程。->教程

如果您想配置手势,请查看此处:-> https://github.com/iberianpig/xSwipe/wiki/Customize-eventKey.cfg

这是我已经为 3 指工作区滑动配置的 eventKey.cfg:http://pastebin.com/f1E1L26V