Skip to content

Instantly share code, notes, and snippets.

@sk22
Last active April 30, 2021 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sk22/0a05c9a36e5ae9ea1f53736d80cad3b1 to your computer and use it in GitHub Desktop.
Save sk22/0a05c9a36e5ae9ea1f53736d80cad3b1 to your computer and use it in GitHub Desktop.
~/.config/touchegg/touchegg.conf (https://github.com/JoseExposito/touchegg)
<!--
TOUCHÉGG CONFIG BY @SK22
* 3 finger swipe gestures are managed by GNOME 40
* 4 finger swipe up/down maximizes/restores the window (using Super+Up/Down)
* 4 finger swipe left/right navigates backward/forward (using Alt+Left/Right)
* 3 finger pinch inwards closes the window (using the Touchégg action)
* 3 finger pinch outwards cycles through windows (using Super+Tab)
https://github.com/JoseExposito/touchegg
https://gist.github.com/sk22/0a05c9a36e5ae9ea1f53736d80cad3b1
-->
<touchégg>
<settings>
<property name="animation_delay">150</property>
<property name="action_execute_threshold">20</property>
<property name="color">auto</property>
<property name="borderColor">auto</property>
</settings>
<application name="All">
<gesture type="SWIPE" fingers="4" direction="DOWN">
<action type="SEND_KEYS">
<repeat>false</repeat>
<modifiers>Super_L</modifiers>
<keys>Down</keys>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="4" direction="RIGHT">
<action type="SEND_KEYS">
<repeat>false</repeat>
<modifiers>Alt_L</modifiers>
<keys>Left</keys>
</action>
</gesture>
<gesture type="SWIPE" fingers="4" direction="LEFT">
<action type="SEND_KEYS">
<repeat>false</repeat>
<modifiers>Alt_L</modifiers>
<keys>Right</keys>
</action>
</gesture>
<gesture type="PINCH" fingers="3" direction="IN">
<action type="CLOSE_WINDOW">
<animate>true</animate>
<color>F84A53</color>
<borderColor>F84A53</borderColor>
</action>
</gesture>
<gesture type="SWIPE" fingers="4" direction="UP">
<action type="SEND_KEYS">
<modifiers>Super_L</modifiers>
<keys>Up</keys>
<repeat>false</repeat>
<on>begin</on>
</action>
</gesture>
<gesture type="SWIPE" fingers="3" direction="UP">
<action type="GNOME_SHELL"></action>
</gesture>
<gesture type="SWIPE" fingers="3" direction="DOWN">
<action type="GNOME_SHELL"></action>
</gesture>
<gesture type="SWIPE" fingers="3" direction="LEFT">
<action type="GNOME_SHELL"></action>
</gesture>
<gesture type="SWIPE" fingers="3" direction="RIGHT">
<action type="GNOME_SHELL"></action>
</gesture>
<gesture type="PINCH" fingers="3" direction="OUT">
<action type="SEND_KEYS">
<modifiers>Super_L</modifiers>
<keys>Tab</keys>
<repeat>true</repeat>
<decreaseKeys>Shift_L+Tab</decreaseKeys>
</action>
</gesture>
</application>
<application name="firefox">
<gesture type="PINCH" fingers="2" direction="IN">
<action type="SEND_KEYS">
<repeat>true</repeat>
<modifiers>Control_L</modifiers>
<keys>KP_Subtract</keys>
<decreaseKeys>KP_Add</decreaseKeys>
</action>
</gesture>
<gesture type="PINCH" fingers="2" direction="OUT">
<action type="SEND_KEYS">
<repeat>true</repeat>
<modifiers>Control_L</modifiers>
<keys>KP_Add</keys>
<decreaseKeys>KP_Subtract</decreaseKeys>
</action>
</gesture>
</application>
</touchégg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment