-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ron
119 lines (106 loc) · 3.38 KB
/
config.ron
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
(
// Distance to move your fingers to trigger a /swipe/ gesture. Acceleration applies
swipe_distance: 100,
// Distance to move your fingers to trigger a /shear/ gesture. Acceleration applies
shear_distance: 100,
// Sort-of-distance to move your fingers to trigger a /pinch/ gesture. This
// is calculated as zoom multiplier as if you were zooming a picture with
// your pinch
pinch_distance: 1.4,
// Angle to rotate your fingers to trigger a /rotate/ gesture. Measured in
// degrees, but depending on your touchpad driver might not correspond to
// real degrees of rotation, or might be accelerated.
rotation_distance: 60,
// Triggers that execute in any window in any display environment
global_triggers: [
// Open a new tab in most apps
(
trigger: Swipe (
fingers: 3,
direction: Up,
repeated: false,
),
action: UinputAction (
modifiers: ["RightControl"],
sequence: ["T"],
)
),
// Close a tab in most apps
(
trigger: Swipe (
fingers: 3,
direction: Down,
repeated: false,
),
action: UinputAction (
modifiers: ["RightControl"],
sequence: ["W"],
)
),
// Move to the right tab in most apps (natural scroll direction)
(
trigger: Swipe (
fingers: 3,
direction: Left,
repeated: false,
),
action: UinputAction (
modifiers: ["RightControl"],
sequence: ["PageDown"],
)
),
// Move to the left tab in most apps (natural scroll direction)
(
trigger: Swipe (
fingers: 3,
direction: Right,
repeated: false,
),
action: UinputAction (
modifiers: ["RightControl"],
sequence: ["PageUp"],
)
),
],
// Triggers that execute in any window in an X11 session
//
// Those actions mimic the default four-finger gestures in KWin on wayland
x11_triggers: [
// Open/close the overview effect
(
trigger: Swipe (
fingers: 4,
direction: Up,
repeated: false,
),
action: UinputAction (
modifiers: ["LeftMeta"],
sequence: ["W"],
)
),
// Move one desktop to the right (natural scroll)
(
trigger: Swipe (
fingers: 4,
direction: Left,
repeated: false,
),
action: ShellCommandAction (
command: "qdbus-qt5 org.kde.KWin /KWin org.kde.KWin.nextDesktop",
)
),
// Move one desktop to the left (natural scroll)
(
trigger: Swipe (
fingers: 4,
direction: Right,
repeated: false,
),
action: ShellCommandAction (
command: "qdbus-qt5 org.kde.KWin /KWin org.kde.KWin.previousDesktop",
)
),
],
// Triggers that execute in any window in a wayland session
wayland_triggers: [],
)