-
Notifications
You must be signed in to change notification settings - Fork 783
/
mouse.talon
136 lines (132 loc) · 3.79 KB
/
mouse.talon
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
control mouse: tracking.control_toggle()
control off: user.mouse_sleep()
zoom mouse: tracking.control_zoom_toggle()
camera overlay: tracking.control_debug_toggle()
run calibration: tracking.calibrate()
touch:
# close zoom if open
user.zoom_close()
mouse_click(0)
# close the mouse grid if open
user.grid_close()
# End any open drags
# Touch automatically ends left drags so this is for right drags specifically
user.mouse_drag_end()
righty:
# close zoom if open
user.zoom_close()
mouse_click(1)
# close the mouse grid if open
user.grid_close()
mid click:
# close zoom if open
user.zoom_close()
mouse_click(2)
# close the mouse grid
user.grid_close()
#see keys.py for modifiers.
#defaults
#command
#control
#option = alt
#shift
#super = windows key
<user.modifiers> touch:
# close zoom if open
user.zoom_close()
key("{modifiers}:down")
mouse_click(0)
key("{modifiers}:up")
# close the mouse grid
user.grid_close()
<user.modifiers> righty:
# close zoom if open
user.zoom_close()
key("{modifiers}:down")
mouse_click(1)
key("{modifiers}:up")
# close the mouse grid
user.grid_close()
(dub click | duke):
# close zoom if open
user.zoom_close()
mouse_click()
mouse_click()
# close the mouse grid
user.grid_close()
(trip click | trip lick):
# close zoom if open
user.zoom_close()
mouse_click()
mouse_click()
mouse_click()
# close the mouse grid
user.grid_close()
left drag | drag | drag start:
# close zoom if open
user.zoom_close()
user.mouse_drag(0)
# close the mouse grid
user.grid_close()
right drag | righty drag:
# close zoom if open
user.zoom_close()
user.mouse_drag(1)
# close the mouse grid
user.grid_close()
end drag | drag end: user.mouse_drag_end()
wheel down: user.mouse_scroll_down()
wheel down here:
user.mouse_move_center_active_window()
user.mouse_scroll_down()
wheel tiny [down]: user.mouse_scroll_down(0.2)
wheel tiny [down] here:
user.mouse_move_center_active_window()
user.mouse_scroll_down(0.2)
wheel downer: user.mouse_scroll_down_continuous()
wheel downer here:
user.mouse_move_center_active_window()
user.mouse_scroll_down_continuous()
wheel up: user.mouse_scroll_up()
wheel up here:
user.mouse_move_center_active_window()
user.mouse_scroll_up()
wheel tiny up: user.mouse_scroll_up(0.2)
wheel tiny up here:
user.mouse_move_center_active_window()
user.mouse_scroll_up(0.2)
wheel upper: user.mouse_scroll_up_continuous()
wheel upper here:
user.mouse_move_center_active_window()
user.mouse_scroll_up_continuous()
wheel gaze: user.mouse_gaze_scroll()
wheel gaze here:
user.mouse_move_center_active_window()
user.mouse_gaze_scroll()
wheel stop: user.mouse_scroll_stop()
wheel stop here:
user.mouse_move_center_active_window()
user.mouse_scroll_stop()
wheel left: user.mouse_scroll_left()
wheel left here:
user.mouse_move_center_active_window()
user.mouse_scroll_left()
wheel tiny left: user.mouse_scroll_left(0.5)
wheel tiny left here:
user.mouse_move_center_active_window()
user.mouse_scroll_left(0.5)
wheel right: user.mouse_scroll_right()
wheel right here:
user.mouse_move_center_active_window()
user.mouse_scroll_right()
wheel tiny right: user.mouse_scroll_right(0.5)
wheel tiny right here:
user.mouse_move_center_active_window()
user.mouse_scroll_right(0.5)
copy mouse position: user.copy_mouse_position()
curse no:
# Command added 2021-12-13, can remove after 2022-06-01
app.notify("Please activate the user.mouse_cursor_commands_enable tag to enable this command")
# To scroll with a hiss sound, set mouse_enable_hiss_scroll to true in settings.talon
mouse hiss up: user.hiss_scroll_up()
mouse hiss down: user.hiss_scroll_down()