|
| 1 | +# Configuration file for libinput-gestures. |
| 2 | +# |
| 3 | +# The default configuration file exists at /etc/libinput-gestures.conf |
| 4 | +# but a user can create a personal custom configuration file at |
| 5 | +# ~/.config/libinput-gestures.conf. |
| 6 | +# |
| 7 | +# Lines starting with '#' and blank lines are ignored. Currently |
| 8 | +# "gesture" and "device" configuration keywords are supported as |
| 9 | +# described below. The keyword can optionally be appended with a ":" (to |
| 10 | +# maintain compatibility with original format configuration files). |
| 11 | +# |
| 12 | +# Each gesture line has 3 [or 4] arguments: |
| 13 | +# |
| 14 | +# action motion [finger_count] command |
| 15 | +# |
| 16 | +# where action and motion is either: |
| 17 | +# swipe up |
| 18 | +# swipe down |
| 19 | +# swipe left |
| 20 | +# swipe right |
| 21 | +# pinch in |
| 22 | +# pinch out |
| 23 | +# |
| 24 | +# command is the remainder of the line and is any valid shell command + |
| 25 | +# arguments. |
| 26 | +# |
| 27 | +# finger_count is a single numeric digit and is optional (and is |
| 28 | +# typically 3 or 4). If specified then the command is executed when |
| 29 | +# exactly that number of fingers is used in the gesture. If not |
| 30 | +# specified then the command is executed when that gesture is executed |
| 31 | +# with any number of fingers. Gesture lines specified with finger_count |
| 32 | +# have priority over the same gesture specified without any |
| 33 | +# finger_count. |
| 34 | +# |
| 35 | +# Typically command will be xdotool, or wmctrl. See "man xdotool" for |
| 36 | +# the many things you can action with that tool. Note that unfortunately |
| 37 | +# xdotool does not work with native Wayland clients. |
| 38 | +# |
| 39 | +# Note the default is an "internal" command that uses wmctrl to switch |
| 40 | +# workspaces and, unlike xdotool, works on both Xorg and Wayland (via |
| 41 | +# XWayland). It also can be configured for vertical and horizontal |
| 42 | +# switching over tabular workspaces, as per the example below. You can |
| 43 | +# also add "-w" to the internal command to allow wrapping workspaces. |
| 44 | +# |
| 45 | +# I've edited these four following rows 2017-11-18 //Erix |
| 46 | + |
| 47 | +# Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg) |
| 48 | +#gesture swipe up internal ws_up |
| 49 | +gesture swipe left 4 xdotool key ctrl+alt+Left |
| 50 | + |
| 51 | +# Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg) |
| 52 | +#gesture swipe down _internal ws_down |
| 53 | +gesture swipe right 4 xdotool key ctrl+alt+Right |
| 54 | + |
| 55 | +# Browser go forward (works only for Xorg, and Xwayland clients) |
| 56 | +gesture swipe left 3 xdotool key alt+Left |
| 57 | + |
| 58 | +# Browser go back (works only for Xorg, and Xwayland clients) |
| 59 | +gesture swipe right 3 xdotool key alt+Right |
| 60 | + |
| 61 | +# Example of 8 static workspaces, e.g. using KDE virtual-desktops, |
| 62 | +# arranged in 2 rows of 4 across using swipe up/down/left/right to |
| 63 | +# navigate in fixed planes. Must match how you have configured your |
| 64 | +# virtual desktops. |
| 65 | +#gesture swipe up _internal --col=2 ws_up |
| 66 | +#gesture swipe down _internal --col=2 ws_down |
| 67 | +#gesture swipe left _internal --row=4 ws_up |
| 68 | +#gesture swipe right _internal --row=4 ws_down |
| 69 | + |
| 70 | +# GNOME SHELL open/close overview (works for GNOME on Wayland and Xorg) |
| 71 | +gesture pinch in dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();' |
| 72 | + |
| 73 | +gesture pinch out dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();' |
| 74 | + |
| 75 | +# This application normally determines your touchpad device |
| 76 | +# automatically. Some users may have multiple touchpads but by default |
| 77 | +# we use only the first one found. However, you can choose to specify |
| 78 | +# the explicit device name to use. Run libinput-list-devices to work out |
| 79 | +# the name of your device (from the "Device:" field). Then add a device |
| 80 | +# line specifying that name, e.g: |
| 81 | +# |
| 82 | +#device DLL0665:01 06CB:76AD Touchpad |
| 83 | +# |
| 84 | +# Or you can choose to use ALL touchpad devices by setting the device |
| 85 | +# name to "all". This reduces performance slightly so only set this if |
| 86 | +# you need to. |
| 87 | +# |
| 88 | +#device all |
0 commit comments