StenHigh
5/17/2019 - 4:15 PM

libinput-gestures for kde touch pad

libinput-gestures for kde touch pad

#!/usr/bin/env bash
sudo gpasswd -a $USER input &&
sudo apt install xdotool wmctrl -y &&
sudo apt install libinput-tools -y &&
git clone https://github.com/bulletmark/libinput-gestures.git &&
cd libinput-gestures &&
sudo make install &&
libinput-gestures-setup autostart

cat > ~/.config/libinput-gestures.conf <<EOL
gesture swipe up    _internal ws_up
gesture swipe up    xdotool key super+Page_Up
gesture swipe down  xdotool key ctrl+F9
gesture swipe left  xdotool key ctrl+alt+Tab
gesture swipe right xdotool key alt+Tab
gesture pinch in   xdotool key super+Page_Up
EOL

cat > ~/.config/autostart/libinput-gestures.desktop <<EOL
[Desktop Entry]
Type=Application
Terminal=false
Name=Libinput Gestures
Exec=/usr/bin/libinput-gestures
Icon=libinput-gestures
Comment=Background application to intercept and action libinput gestures from touchpad.
Categories=GNOME;GTK;System;
EOL