-
Notifications
You must be signed in to change notification settings - Fork 0
/
touchegg.conf
123 lines (109 loc) · 3.78 KB
/
touchegg.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<touchégg>
<settings>
<property name="animation_delay">150</property>
<property name="action_execute_threshold">10</property>
<property name="color">auto</property>
<property name="borderColor">auto</property>
</settings>
<application name="All">
<!-- 4-finger swipe up to show overview -->
<gesture type="SWIPE" fingers="4" direction="UP">
<action type="RUN_COMMAND">
<repeat>false</repeat>
<command>qdbus org.kde.kglobalaccel /component/kwin invokeShortcut 'Overview'</command>
<on>begin</on>
</action>
</gesture>
<!-- 4-finger swipe down to show desktop -->
<gesture type="SWIPE" fingers="4" direction="DOWN">
<action type="SHOW_DESKTOP">
<animate>true</animate>
</action>
</gesture>
<!-- 4-finger swipe left to switch to the previous tab -->
<gesture type="SWIPE" fingers="4" direction="RIGHT">
<action type="SEND_KEYS">
<repeat>false</repeat>
<modifiers>Control_L</modifiers>
<keys>Shift_L+Tab</keys>
<on>begin</on>
</action>
</gesture>
<!-- 4-finger swipe right to switch to the next tab -->
<gesture type="SWIPE" fingers="4" direction="LEFT">
<action type="SEND_KEYS">
<repeat>false</repeat>
<modifiers>Control_L</modifiers>
<keys>Tab</keys>
<on>begin</on>
</action>
</gesture>
<!-- 3-finger swipe left to switch windows -->
<gesture type="SWIPE" fingers="3" direction="LEFT">
<action type="SEND_KEYS">
<repeat>true</repeat>
<modifiers>Alt_L</modifiers>
<keys>Tab</keys>
<on>begin</on>
</action>
</gesture>
<!-- 3-finger swipe right to switch windows -->
<gesture type="SWIPE" fingers="3" direction="RIGHT">
<action type="SEND_KEYS">
<repeat>true</repeat>
<modifiers>Alt_L</modifiers>
<keys>Shift_L+Tab</keys>
<on>begin</on>
</action>
</gesture>
<!-- 3-finger swipe up to switch to the next desktop -->
<gesture type="SWIPE" fingers="3" direction="UP">
<action type="CHANGE_DESKTOP">
<direction>next</direction>
<animate>true</animate>
</action>
</gesture>
<!-- 3-finger swipe down to switch to the previous desktop -->
<gesture type="SWIPE" fingers="3" direction="DOWN">
<action type="CHANGE_DESKTOP">
<direction>previous</direction>
<animate>true</animate>
</action>
</gesture>
<!-- 3-finger pinch to increase volume -->
<gesture type="PINCH" fingers="3" direction="OUT">
<action type="RUN_COMMAND">
<repeat>true</repeat>
<command>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut 'increase_volume'</command>
<on>begin</on>
</action>
</gesture>
<!-- 3-finger pinch to decrease volume -->
<gesture type="PINCH" fingers="3" direction="IN">
<action type="RUN_COMMAND">
<repeat>true</repeat>
<command>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut 'decrease_volume'</command>
<on>begin</on>
</action>
</gesture>
</application>
<!-- Configuration for specific applications -->
<application name="Google-chrome,Chromium,Firefox,Brave-browser,gwenview">
<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>