You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

222 lines
8.7KB

  1. # Configuration file for libinput-gestures.
  2. # Mark Blakeney, Sep 2015
  3. #
  4. # The default configuration file exists at /etc/libinput-gestures.conf
  5. # but a user can create a personal custom configuration file at
  6. # ~/.config/libinput-gestures.conf.
  7. #
  8. # Lines starting with '#' and blank lines are ignored. Currently
  9. # "gesture" and "device" configuration keywords are supported as
  10. # described below. The keyword can optionally be appended with a ":" (to
  11. # maintain compatibility with original format configuration files).
  12. #
  13. # Each gesture line has 3 [or 4] arguments separated by whitespace:
  14. #
  15. # action motion [finger_count] command
  16. #
  17. # where action and motion is either:
  18. # swipe up
  19. # swipe down
  20. # swipe left
  21. # swipe right
  22. # swipe left_up
  23. # swipe left_down
  24. # swipe right_up
  25. # swipe right_down
  26. # pinch in
  27. # pinch out
  28. # pinch clockwise
  29. # pinch anticlockwise
  30. #
  31. # command is the remainder of the line and is any valid shell command +
  32. # arguments.
  33. #
  34. # finger_count is a single numeric digit and is optional (and is
  35. # typically 3 or 4). If specified then the command is executed when
  36. # exactly that number of fingers is used in the gesture. If not
  37. # specified then the command is executed when that gesture is executed
  38. # with any number of fingers. Gesture lines specified with finger_count
  39. # have priority over the same gesture specified without any
  40. # finger_count.
  41. #
  42. # Typically command will be xdotool, or wmctrl. See "man xdotool" for
  43. # the many things you can action with that tool. Note that unfortunately
  44. # xdotool does not work with native Wayland clients.
  45. ###############################################################################
  46. # SWIPE GESTURES:
  47. ###############################################################################
  48. # Change desktop
  49. gesture swipe left 3 wm goto next
  50. gesture swipe right 3 wm goto prev
  51. # Fullscreen
  52. gesture pinch out 3 bspc node focused -t \~fullscreen
  53. # Close node
  54. gesture pinch anticlockwise 4 bspc node -c
  55. # Logoff
  56. gesture pinch anticlockwise 5 slimlock
  57. # Show conky and calendar
  58. gesture swipe left 4 wm peek right
  59. gesture swipe right 4 wm peek left
  60. # Open gnome-pie
  61. gesture pinch out 4 gnome-pie -o 474
  62. # Open Ranger
  63. # gesture swipe down 4 wm popup Ranger ranger
  64. # Open virtual keyboard
  65. # gesture swipe down 4 onboard
  66. # Note the default is an "internal" command that uses wmctrl to switch
  67. # workspaces and, unlike xdotool, works on both Xorg and Wayland (via
  68. # XWayland). It also can be configured for vertical and horizontal
  69. # switching over tabular workspaces, as per the example below. You can
  70. # also add "-w" to the internal command to allow wrapping workspaces.
  71. # Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg)
  72. # gesture swipe up _internal ws_up
  73. # NOTE ABOUT FINGER COUNT:
  74. # The above command will configure this command for all fingers (i.e. 3
  75. # for 4) but to configure it for 3 fingers only, change it to:
  76. # gesture swipe up 3 _internal ws_up
  77. # Then you can configure something else for 4 fingers or leave 4 fingers
  78. # unconfigured. You can configure an explicit finger count like this for
  79. # all example commands in this configuration file.
  80. #
  81. # gesture swipe up xdotool key super+Page_Down
  82. # Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg)
  83. # gesture swipe down _internal ws_down
  84. # gesture swipe down xdotool key super+Page_Up
  85. # Browser go forward (works only for Xorg, and Xwayland clients)
  86. # gesture swipe left xdotool key alt+Right
  87. # Browser go back (works only for Xorg, and Xwayland clients)
  88. # gesture swipe right xdotool key alt+Left
  89. # NOTE: If you don't use "natural" scrolling direction for your touchpad
  90. # then you may want to swap the above default left/right and up/down
  91. # configurations.
  92. # Optional extended swipe gestures, e.g. for browser tab navigation:
  93. #
  94. # Jump to next open browser tab
  95. # gesture swipe right_up xdotool key control+Tab
  96. #
  97. # Jump to previous open browser tab
  98. # gesture swipe left_up xdotool key control+shift+Tab
  99. #
  100. # Close current browser tab
  101. # gesture swipe left_down xdotool key control+w
  102. #
  103. # Reopen and jump to last closed browser tab
  104. # gesture swipe right_down xdotool key control+shift+t
  105. # Example of 8 static workspaces, e.g. using KDE virtual-desktops,
  106. # arranged in 2 rows of 4 columns across using swipe up/down/left/right
  107. # to navigate in fixed planes. You can also add the "-w/--wrap" option
  108. # to allow wrapping in any direction. You must configure your virtual
  109. # desktops with the same column dimension.
  110. # gesture swipe up _internal --cols 4 ws_up
  111. # gesture swipe down _internal --cols 4 ws_down
  112. # gesture swipe left _internal --cols 4 ws_left
  113. # gesture swipe right _internal --cols 4 ws_right
  114. #
  115. # Example of 16 static workspaces, e.g. using KDE virtual-desktops,
  116. # arranged in 4 rows of 4 columns across using swipe up/down/left/right
  117. # to navigate in fixed planes, and also using swipe
  118. # left_up/left_down/right_up/right_down to navigate diagonally. You can
  119. # also add the "-w/--wrap" option to allow wrapping in any direction
  120. # and/or diagonally. You must configure your virtual desktops with the
  121. # same column dimension.
  122. # gesture swipe up _internal --cols 4 ws_up
  123. # gesture swipe down _internal --cols 4 ws_down
  124. # gesture swipe left _internal --cols 4 ws_left
  125. # gesture swipe right _internal --cols 4 ws_right
  126. # gesture swipe left_up _internal --cols 4 ws_left_up
  127. # gesture swipe left_down _internal --cols 4 ws_left_down
  128. # gesture swipe right_up _internal --cols 4 ws_right_up
  129. # gesture swipe right_down _internal --cols 4 ws_right_down
  130. # Example virtual desktop switching for Ubuntu Unity/Compiz. The
  131. # _internal command does not work for Compiz but you can explicitly
  132. # configure the swipe commands to work for a Compiz virtual 2
  133. # dimensional desktop as follows:
  134. # gesture swipe up xdotool key ctrl+alt+Up
  135. # gesture swipe down xdotool key ctrl+alt+Down
  136. # gesture swipe left xdotool key ctrl+alt+Left
  137. # gesture swipe right xdotool key ctrl+alt+Right
  138. # Example to change audio volume:
  139. # Note this only works on an Xorg desktop (not Wayland).
  140. # gesture swipe up xdotool key XF86AudioRaiseVolume
  141. # gesture swipe down xdotool key XF86AudioLowerVolume
  142. ###############################################################################
  143. # PINCH GESTURES:
  144. ###############################################################################
  145. # GNOME SHELL open/close overview (works for GNOME on Xorg only)
  146. # gesture pinch in xdotool key super+s
  147. # gesture pinch out xdotool key super+s
  148. # KDE Plasma open/close overview
  149. # gesture pinch in xdotool key ctrl+F9
  150. # gesture pinch out xdotool key ctrl+F9
  151. # GNOME SHELL open/close overview (works for GNOME on Wayland and Xorg)
  152. # Note since GNOME 3.24 on Wayland this is implemented natively so no
  153. # real point configuring for Wayland.
  154. # gesture pinch in dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
  155. # gesture pinch out dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
  156. # Optional extended pinch gestures:
  157. # gesture pinch clockwise <whatever command>
  158. # gesture pinch anticlockwise <whatever command>
  159. ###############################################################################
  160. # This application normally determines your touchpad device
  161. # automatically. Some users may have multiple touchpads but by default
  162. # we use only the first one found. However, you can choose to specify
  163. # the explicit device name to use. Run "libinput list-devices" to work
  164. # out the name of your device (from the "Device:" field). Then add a
  165. # device line specifying that name, e.g:
  166. #
  167. # device DLL0665:01 06CB:76AD Touchpad
  168. device all
  169. # device /dev/input/event21
  170. #
  171. # If the device name starts with a '/' then it is instead considered as
  172. # the explicit device path although since device paths can change
  173. # through reboots this is best to be a symlink. E.g. instead of specifying
  174. # /dev/input/event12, use the corresponding full path link under
  175. # /dev/input/by-path/ or /dev/input/by-id/.
  176. #
  177. # You can choose to use ALL touchpad devices by setting the device name
  178. # to "all". E.g. Do this if you have multiple touchpads which you want
  179. # to use in parallel. This reduces performance slightly so only set this
  180. # if you have to.
  181. #
  182. # device all
  183. ###############################################################################
  184. # You can set a minimum travel distance threshold before swipe gestures
  185. # are actioned using the swipe_threshold configuration command.
  186. # Specify this value in dots. The default is 0.
  187. # E.g. set it to 100 dots with "swipe_threshold 100".
  188. # swipe_threshold 0
  189. ###############################################################################
  190. # You can set a timeout on gestures from start to end. The default is
  191. # the value commented below. It can be any value in float secs >= 0.
  192. # 0 = no timeout. E.g. set it to 2 secs with "timeout 2".
  193. # timeout 1.5