SHARE
TWEET

Untitled

a guest Jun 19th, 2017 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. # Move to next workspace (works for GNOME/KDE/etc on Wayland and Xorg)
  46. gesture swipe up    dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
  47. # gesture swipe up  xdotool key super+Page_Down
  48.  
  49. # Move to prev workspace (works for GNOME/KDE/etc on Wayland and Xorg)
  50. gesture swipe down  dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.toggle();'
  51. # gesture swipe down    xdotool key super+Page_Up
  52.  
  53. # Browser go forward (works only for Xorg, and Xwayland clients)
  54. gesture swipe left  _internal ws_up
  55.  
  56. # Browser go back (works only for Xorg, and Xwayland clients)
  57. gesture swipe right _internal ws_down
  58.  
  59. # Optional extended swipe gestures, e.g. for browser tab navigation:
  60. #
  61. # Jump to next open browser tab
  62. # gesture swipe right_up xdotool key control+Tab
  63. #
  64. # Jump to previous open browser tab
  65. # gesture swipe left_up xdotool key control+shift+Tab
  66. #
  67. # Close current browser tab
  68. # gesture swipe left_down xdotool key control+w
  69. #
  70. # Reopen and jump to last closed browser tab
  71. # gesture swipe right_down xdotool key control+shift+t
  72.  
  73. # Example of 8 static workspaces, e.g. using KDE virtual-desktops,
  74. # arranged in 2 rows of 4 across using swipe up/down/left/right to
  75. # navigate in fixed planes. Must match how you have configured your
  76. # virtual desktops.
  77. # gesture swipe up  _internal --col=2 ws_up
  78. # gesture swipe down    _internal --col=2 ws_down
  79. # gesture swipe left    _internal --row=4 ws_up
  80. # gesture swipe right   _internal --row=4 ws_down
  81.  
  82. # Example virtual desktop switching for Ubuntu Unity/Compiz. The
  83. # _internal command does not work for Compiz but you can explicitly
  84. # configure the swipe commands to work for a Compiz virtual 2
  85. # dimensional desktop as follows:
  86. # gesture swipe up  xdotool key ctrl+alt+Up
  87. # gesture swipe down    xdotool key ctrl+alt+Down
  88. # gesture swipe left    xdotool key ctrl+alt+Left
  89. # gesture swipe right   xdotool key ctrl+alt+Right
  90.  
  91. # GNOME SHELL open/close overview (works for GNOME on Wayland and Xorg)
  92. # gesture pinch in
  93.  
  94. # gesture pinch out
  95.  
  96. # Optional extended pinch gestures:
  97. # gesture pinch clockwise <whatever command>
  98. # gesture pinch anticlockwise <whatever command>
  99.  
  100. # This application normally determines your touchpad device
  101. # automatically. Some users may have multiple touchpads but by default
  102. # we use only the first one found. However, you can choose to specify
  103. # the explicit device name to use. Run libinput-list-devices to work out
  104. # the name of your device (from the "Device:" field). Then add a device
  105. # line specifying that name, e.g:
  106. #
  107. # device DLL0665:01 06CB:76AD Touchpad
  108. #
  109. # Or you can choose to use ALL touchpad devices by setting the device
  110. # name to "all". This reduces performance slightly so only set this if
  111. # you need to.
  112. #
  113. # device all
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top