From 044f3167cd5b69e3a090c35b29ecada9097f3050 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 14 Nov 2019 14:11:36 -0600 Subject: [PATCH] Add libinput gestures --- de/libinput/gestures.conf | 9 ++++++--- de/x/profile | 6 +++++- scripts/arch-linux/provisioning/3-extras.bash | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/de/libinput/gestures.conf b/de/libinput/gestures.conf index 5aa6560..ad3e1ca 100644 --- a/de/libinput/gestures.conf +++ b/de/libinput/gestures.conf @@ -1,9 +1,12 @@ -gesture swipe right 3 bspc desktop -f next -gesture swipe left 3 bspc desktop -f prev +gesture swipe left 3 bspc desktop -f next +gesture swipe right 3 bspc desktop -f prev gesture swipe up 3 xdotool key XF86AudioRaiseVolume gesture swipe down 3 xdotool key XF86AudioLowerVolume +gesture swipe left 4 xdotool key alt+Right +gesture swipe right 4 xdotool key alt+Left + # GNOME SHELL open/close overview (works for GNOME on Xorg only) #gesture pinch in xdotool key super+s #gesture pinch out xdotool key super+s @@ -21,7 +24,7 @@ gesture swipe down 3 xdotool key XF86AudioLowerVolume # are actioned using the swipe_threshold configuration command. # Specify this value in dots. The default is 0. # E.g. set it to 100 dots with "swipe_threshold 100". -swipe_threshold 50 +swipe_threshold 25 ############################################################################### # You can set a timeout on gestures from start to end. The default is diff --git a/de/x/profile b/de/x/profile index f9efd92..e439d42 100644 --- a/de/x/profile +++ b/de/x/profile @@ -44,10 +44,14 @@ if command -v xcape >/dev/null 2>&1; then xcape -e 'Control_L=Escape' & fi -if command -v autocutsel >/dev/null 2>&1; then +if command -v autocutsel &> /dev/null; then autocutsel -fork & fi +if command -v libinput-gestures-setup &> /dev/null; then + libinput-gestures-setup start +fi + if [ -f "$HOME/.env_xprofile" ]; then source "$HOME/.env_xprofile" fi diff --git a/scripts/arch-linux/provisioning/3-extras.bash b/scripts/arch-linux/provisioning/3-extras.bash index fd90db4..ac16b2a 100755 --- a/scripts/arch-linux/provisioning/3-extras.bash +++ b/scripts/arch-linux/provisioning/3-extras.bash @@ -45,4 +45,5 @@ pacaur --needed -S \ ncdu `# Disk Usage Analyzer` \ zathura zathura-pdf-mupdf `# Document Viewer` \ scrot `# Screenshot Tool` \ + libinput libinput-gestures `# Trackpad Control` \ --noconfirm --noedit