libinput_gestures_qt icon indicating copy to clipboard operation
libinput_gestures_qt copied to clipboard

Why not try writing some qt gui for libinput-gestures?

libinput-gestures-qt

Intro

This app is a setup tool for libinput-gestures, a utility that allows to map touchpad gestures to shell commands. The problem is that libinput-gestures does not provide a graphical interface and suggests interacting with libinput-gestures and libinput-gestures-setup binaries and libinput-gestures.conf configuration file. I find it too difficult and that is why I decided to make a qt-based app for libinput-gestures.

Dependencies

This package requires python version 3.5 or newer, PyQt5 and libinput-gestures.

Install from PyPI

You can install the latest release version from PyPI by running:
$ sudo pip3 install libinput-gestures-qt

This will install the app and make a desktop entry so that you could run it by clicking in your app menu.

This app was tested for Debian and OpenSUSE and seems to work stably. However, it's not final and one cannot yet be sure that it will work well. Nevertheless, I already use it myself.

Install from git checkout

You can also install this app by following these steps:

  1. $ git clone https://github.com/OneAdder/libinput_gestures_qt
  2. $ cd libinput_gestures_qt
  3. $ mkvirtualenv -p libinput-gestures-qt # virtualenvwrapper must be installed
  4. $ pip install -e .

This will install the app to a virtualenv that does not affect the rest of the system.

Install testing packages

To also install packages for testing, do:
$ pip install -e .[dev]

Features

  1. Handsome main window with current configuration displayed in human-readable form: Screenshot_20190506_162447
  2. Adding new gestures.
    It's possible to map a gesture to a kwin shortcut (via qdbus), keyboard shortcut or command: Screenshot_20190506_162626 Screenshot_20190506_162545 Screenshot_20190506_162529
  3. Set gestures to some defaults:
    Screenshot_20190506_162652
  4. Control libinput-gestures-setup.
    Screenshot_20190506_164259