Skip to content

Instantly share code, notes, and snippets.

@StenHigh
Last active May 29, 2019 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StenHigh/681ebde33f50e9e00ec9fa88069b7d92 to your computer and use it in GitHub Desktop.
Save StenHigh/681ebde33f50e9e00ec9fa88069b7d92 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment