Add libinput gestures
This commit is contained in:
parent
6fd35bc232
commit
044f3167cd
3 changed files with 12 additions and 4 deletions
|
@ -1,9 +1,12 @@
|
||||||
gesture swipe right 3 bspc desktop -f next
|
gesture swipe left 3 bspc desktop -f next
|
||||||
gesture swipe left 3 bspc desktop -f prev
|
gesture swipe right 3 bspc desktop -f prev
|
||||||
|
|
||||||
gesture swipe up 3 xdotool key XF86AudioRaiseVolume
|
gesture swipe up 3 xdotool key XF86AudioRaiseVolume
|
||||||
gesture swipe down 3 xdotool key XF86AudioLowerVolume
|
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)
|
# GNOME SHELL open/close overview (works for GNOME on Xorg only)
|
||||||
#gesture pinch in xdotool key super+s
|
#gesture pinch in xdotool key super+s
|
||||||
#gesture pinch out 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.
|
# are actioned using the swipe_threshold configuration command.
|
||||||
# Specify this value in dots. The default is 0.
|
# Specify this value in dots. The default is 0.
|
||||||
# E.g. set it to 100 dots with "swipe_threshold 100".
|
# 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
|
# You can set a timeout on gestures from start to end. The default is
|
||||||
|
|
|
@ -44,10 +44,14 @@ if command -v xcape >/dev/null 2>&1; then
|
||||||
xcape -e 'Control_L=Escape' &
|
xcape -e 'Control_L=Escape' &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v autocutsel >/dev/null 2>&1; then
|
if command -v autocutsel &> /dev/null; then
|
||||||
autocutsel -fork &
|
autocutsel -fork &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if command -v libinput-gestures-setup &> /dev/null; then
|
||||||
|
libinput-gestures-setup start
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f "$HOME/.env_xprofile" ]; then
|
if [ -f "$HOME/.env_xprofile" ]; then
|
||||||
source "$HOME/.env_xprofile"
|
source "$HOME/.env_xprofile"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -45,4 +45,5 @@ pacaur --needed -S \
|
||||||
ncdu `# Disk Usage Analyzer` \
|
ncdu `# Disk Usage Analyzer` \
|
||||||
zathura zathura-pdf-mupdf `# Document Viewer` \
|
zathura zathura-pdf-mupdf `# Document Viewer` \
|
||||||
scrot `# Screenshot Tool` \
|
scrot `# Screenshot Tool` \
|
||||||
|
libinput libinput-gestures `# Trackpad Control` \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
Reference in a new issue