forked from iberianpig/xSwipe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheventKey.cfgr
137 lines (114 loc) · 2.85 KB
/
eventKey.cfgr
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
:inputDevice => 14, #Synaptics device ID (/dev/input/eventXX)
:debug => false, #Sets the debug option
:timeTolerance => 0.10, #Minimum time of swiping for triggering a swipe action
:repTime => 0.20, #Time needed to repeat a swiping action
:magnitudeTolerance => 10, #Minimum speed of swiping in order to trigger a swipe action
:pollingInterval => 10, #Polling interval of synclient
:angleTolerance => 20, #How much can the movement angle differ from the target angle (in degrees)
#Normal swipe actions
:swipe => {
#Two fingers swiping
2 => {
},
#Three fingers swiping
3 => {
:right => {
:action => "%({LEF})", #Action: history back on browsers
},
:left => {
:action => "%({RIG})", #Action: history forward on browsers
},
:down => {
:action => "^(%({UP}))", #Action: Switch to upper desktop
},
:up => {
:action => "^(%({DOWN})", #Action: Switch to lower desktop
},
},
#Four fingers swiping
4 => {
:right => {
:action => "{XF86AudioPrev}", #Action: previous song
},
:left => {
:action => "{XF86AudioNext}", #Action: next song
},
:down => {
:action => "%({F1})", #Action: Show all windows in the system
:onetime => true, #Won't be executed multiple times
},
:up => {
:action => "^({F9})", #Action: Show all windows in the current desktop
:onetime => true, #Won't be executed multiple times
},
},
#Five fingers swiping
5 => {
},
},
#Swipe actions from the edges
:edgeSwipe => {
#One finger edge swipe
1 => {
},
#Two fingers edge swipe
2 => {
:right => {
:action => "{XF86AudioRaiseVolume}", #Action: Raise volume
},
:left => {
:action => "{XF86AudioLowerVolume}", #Action: Lower volume
},
},
#Three fingers edge swipe
3 => {
:down => {
:action => "{F12}", #Action: show guake terminal
:onetime => true, #Won't be executed multiple times
},
},
#Four fingers edge swipe
4 => {
:up => {
:action => "{F11}", #Action: Fullscreen (where available)
:onetime => true, #Won't be executed multiple times
},
:down => {
:action => "^({F8})", #Action: Open expo
:onetime => true, #Won't be executed multiple times
},
},
#Five fingers edge swipe
5 => {
},
},
:move => {
:fingers => 5,
:key => "LAL",
:swipe => {
2 => {
:down => {
:action => "%({F4})",
:hold => false,
},
:left => {
:action => "%({SPC})", #Action: Minimizes the window
:hold => false,
}
},
3 => {
:up => {
:action => "^(%(+({DOWN})))",
},
:down => {
:action => "^(%(+({UP})))",
},
},
},
},
:pinch => {
:in => "^{+}",
:out => "^{-}",
},
}