Created
July 28, 2017 19:14
-
-
Save badouralix/1edf84cf060d08c709795901f8a65a12 to your computer and use it in GitHub Desktop.
Awesome libinput-gestures config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration file for libinput-gestures | |
# 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 right 3 xdotool set_desktop --relative 1 | |
gesture: pinch in 3 xdotool set_desktop --relative 1 | |
#gesture: pinch in 3 xdotool key ctrl+alt+Right | |
# GNOME SHELL move to prev workspace | |
gesture: swipe left 3 xdotool set_desktop --relative 3 | |
#gesture: swipe left 3 xdotool set_desktop --relative $((`xdotool get_num_desktops` - 1)) | |
#gesture: pinch out 3 xdotool key ctrl+alt+Left | |
# GNOME/Browser go back | |
gesture: swipe left 4 xdotool key alt+Left | |
# GNOME/Browser go forward | |
gesture: swipe right 4 xdotool key alt+Right | |
# GNOME SHELL show all workspaces | |
gesture: swipe up 3 xdotool key ctrl+alt+Up | |
gesture: swipe down 3 xdotool key ctrl+alt+Up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment