This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Configuration] Configure libinput-gestures in kcm-touchpad

3

Votes
3
0
Tags: None
(comma "," separated)
joffreytisseron
Registered Member
Posts
1
Karma
0
Hello everybody,

I have tested libinput-gestures. It supports gestures for touchpad with 3 and 4 fingers (swipe and pinch), and it works fine.

I use it to open many effects like desktop-grid and windows-presentation. I can navigate through windows and virtual desktop too, with a simple gesture like swipe left or right with 3 fingers. I think that already exists on Macos, and it is very useful.

I think it is very interesting to can configure it in the kcm-touchpad, maybe with an interface like the screen-corners configuration, or like the touchegg configuration tool.

Image

libinput-gestures has xdotool wmctrl as dependencies, and it send a keyboard shortcut when an event is detected, so it's easy to configure. For example, this is my libinput-gestures.conf
Code: Select all
# 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.

gesture swipe up 3      xdotool key ctrl+F10
gesture swipe up 4      xdotool key ctrl+F8
gesture swipe down 4    xdotool key ctrl+F12
gesture swipe down 3    xdotool key alt+Tab
gesture swipe right     xdotool key ctrl+super+Right
gesture swipe left      xdotool key ctrl+Super+Left


What do you think about this ?

I'm sorry for my bad english, but I'm french ;-)
haerber
Registered Member
Posts
6
Karma
0
Hello, I daily use libinput-gestures too and I think it's very useful, often faster than keyboard shortcuts. It would be great if KDE implement it natively. Elementary OS do it now. Then KDE team is working hard now at Wayland development so xdotools won't work anymore... I'm going to make a post in the brainstorm group. Maybe we will be heard.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]