我希望Apple手势在基本语言上起作用。
我可以通过上下滑动来更改工作区。但这仅此而已。
对于那些对此一无所知的人,请参阅
https://github.com/bulletmark/libinput-gestures
和此链接
https://web.apeconsulting.co.uk/wordpress/adrian/touch-me-touch-me-say-that-you-love-me/
有一些gnome命令。.
这是下面的文件:
# Configuration file for libinput-gestures.
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored. Currently
# "gesture" and "device" configuration keywords are supported as
# described below. The keyword can optionally be appended with a ":" (to
# maintain compatibility with original format configuration files).
#
# Each gesture line has 3 [or 4] arguments:
#
# action motion [finger_count] command
#
# where action and motion is either:
# swipe up
# swipe down
# swipe left
# swipe right
# pinch in
# pinch out
#
# command is the remainder of the line and is any valid shell command +
# arguments.
#
# finger_count is a single numeric digit and is optional (and is
# typically 3 or 4). If specified then the command is executed when
# exactly that number of fingers is used in the gesture. If not
# specified then the command is executed when that gesture is executed
# with any number of fingers. Gesture lines specified with finger_count
# have priority over the same gesture specified without any
# finger_count.
#
# Typically command will be xdotool, or wmctrl. See "man xdotool" for
# the many things you can action with that tool. Note that unfortunately
# xdotool does not work with native Wayland clients.
#
# Note the default is an "internal" command that uses wmctrl to switch
# workspaces and, unlike xdotool, works on both Xorg and Wayland (via
# XWayland). It also can be configured for vertical and horizontal
# switching over tabular workspaces, as per the example below. You can
# also add "-w" to the internal command to allow wrapping workspaces.
# Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg)
gesture swipe up _internal ws_up
#gesture swipe up xdotool key super+Page_Down
# Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg)
gesture swipe down _internal ws_down
#gesture swipe down xdotool key super+Page_Up
# Browser go forward (works only for Xorg, and Xwayland clients)
gesture swipe left xdotool key alt+Right
# Browser go back (works only for Xorg, and Xwayland clients)
gesture swipe right xdotool key alt+Left
# Example of 8 static workspaces, e.g. using KDE virtual-desktops,
# arranged in 2 rows of 4 across using swipe up/down/left/right to
# navigate in fixed planes. Must match how you have configured your
# virtual desktops.
#gesture swipe up _internal --col=2 ws_up
#gesture swipe down _internal --col=2 ws_down
#gesture swipe left _internal --row=4 ws_up
#gesture swipe right _internal --row=4 ws_down
# GNOME SHELL open/close overview (works for GNOME on Wayland and Xorg)
gesture pinch in dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
gesture pinch out dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
# This application normally determines your touchpad device
# automatically. Some users may have multiple touchpads but by default
# we use only the first one found. However, you can choose to specify
# the explicit device name to use. Run libinput-list-devices to work out
# the name of your device (from the "Device:" field). Then add a device
# line specifying that name, e.g:
#
#device DLL0665:01 06CB:76AD Touchpad
#
# Or you can choose to use ALL touchpad devices by setting the device
# name to "all". This reduces performance slightly so only set this if
# you need to.
#
#device all
#1 楼
我设法使其与:git clone http://github.com/bulletmark/libinput-gestures
cd libinput-gestures
sudo make install
sudo apt install libinput-tools xdotool
sudo gpasswd -a $USER input
libinput-gestures-setup autostart
一起使用以下内容创建文件“〜/ .config / libinput-gestures.conf”:
gesture swipe up xdotool key super+Left
gesture swipe down xdotool key super+Right
然后注销并再次登录。
因此,您将用三根手指“向上”和“向下”滑动来更改桌面。
它也可以与“向左滑动”和“向右滑动”一起使用,但是在我的Macbook上非常笨拙,因此我更喜欢“向上/向下”运动。
它是不像OSX那样快速和舒适,但是类似。
评论
谢谢..我也能够使它工作。上下更改桌面,无需任何mod。问题是如何获得更多手势。
–比丘(Bhikkhu Subhuti)
17年2月12日在2:04
评论
您认为有什么方法可以使缩放手势与浏览器配合使用吗?我只能切换工作区。那不是发布这个问题的全部重点。我也想要有用的手势