dotfiles/modules/config/files/libinput-gestures.conf

51 lines
1.6 KiB
Text

# Configuration file for libinput-gestures.
#
# The default configuration file exists at /etc/libinput-gestures.conf
# but a user can create a personal custom configuration file at
# ~/.config/libinput-gestures.conf.
#
# Lines starting with '#' and blank lines are ignored.
# At present only gesture lines are configured in this file.
#
# Each gesture: line has 3 [or 4] arguments:
#
# action motion [finger_count] command
#
# where action and motion is either:
# swipe up
# swipe down
# swipe left
# swipe right
# pinch in
# pinch out
#
# command is the remainder of the line and is any valid shell command +
# arguments.
#
# finger_count is optional (and is typically 3 or 4). If specified then
# the command is executed when exactly that number of fingers is used in
# the gesture. If not specified then the command is executed when that
# gesture is executed with any number of fingers. Gesture lines
# specified with finger_count have priority over the same gesture
# specified without any finger_count.
#
# Typically command will be xdotool, or wmctrl. See "man xdotool" for
# the many things you can action with that tool.
# GNOME SHELL move to next workspace
gesture: swipe up 3 xdotool key super+Page_Up
# GNOME SHELL move to prev workspace
gesture: swipe down 3 xdotool key super+Page_Down
# GNOME/Browser go back
gesture: swipe right 3 xdotool key alt+Right
# GNOME/Browser go forward
gesture: swipe left 3 xdotool key alt+Left
# GNOME SHELL open/close overview
gesture: swipe up 4 xdotool key super+s
gesture: pinch in xdotool key Control_L+minus
gesture: pinch out xdotool key Control_L+plus