-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json.yaml
More file actions
197 lines (183 loc) · 5.9 KB
/
config.json.yaml
File metadata and controls
197 lines (183 loc) · 5.9 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# 概要: config.jsonの書式定義(YAML Schema Document)
# このファイルはconfig.jsonの構造を示すドキュメントであり、実際のスキーマファイルではありません。
# 各フィールドの型、必須/任意、デフォルト値、説明を記載しています。
# ルートオブジェクト
type: object
required:
- trajectory
- ignore_exe
- actions
properties:
# 軌跡表示の有効/無効
trajectory:
type: boolean
description: マウスジェスチャーの軌跡を画面に表示するかどうか
default: true
example: true
# グローバル無視EXEリスト
ignore_exe:
type: array
items:
type: string
description: グローバルに無視するEXE名のリスト(この実行ファイル上ではジェスチャー検出をスキップする)
default: []
example:
- "chrome.exe"
- "notepad.exe"
# アクション定義リスト
actions:
type: array
items:
type: object
required:
- name
- trigger_type
- action_type
properties:
# アクション名
name:
type: string
description: アクションの表示名
example: "戻る"
# トリガータイプ
trigger_type:
type: string
enum:
- "gesture"
- "wheel"
description: |
アクションのトリガー種別
- gesture: マウスジェスチャーによるトリガー
- wheel: マウスホイール操作によるトリガー
default: "gesture"
example: "gesture"
# ジェスチャー名(trigger_type="gesture"の場合に使用)
gesture:
type: string
description: ジェスチャー名(gestures.jsonで定義されたもの、trigger_type="gesture"の場合に使用)
default: ""
example: "左"
# ホイールトリガー(trigger_type="wheel"の場合に使用)
wheel_trigger:
type: string
enum:
- ""
- "wheel_up"
- "wheel_down"
- "wheel_click"
- "leftclick_wheel_up"
- "leftclick_wheel_down"
- "x1_button"
- "x2_button"
description: |
ホイール操作の種類(trigger_type="wheel"の場合に使用)
- wheel_up: ホイールアップ
- wheel_down: ホイールダウン
- wheel_click: ホイールクリック
- leftclick_wheel_up: 左クリック+ホイールアップ
- leftclick_wheel_down: 左クリック+ホイールダウン
- x1_button: X1ボタン
- x2_button: X2ボタン
default: ""
example: "wheel_up"
# アクションタイプ
action_type:
type: string
enum:
- "keystroke"
- "command"
- "url"
- "window_operation"
description: |
実行するアクションの種類
- keystroke: キーストローク送信
- command: コマンド実行
- url: URL起動
- window_operation: ウィンドウ操作
example: "keystroke"
# キーストローク(action_type="keystroke"の場合に使用)
keystroke:
type: string
nullable: true
description: |
送信するキー(action_type="keystroke"の場合に使用)
例: "Left", "Right", "F5", "Tab", "VolumeUp", "VolumeDown", "MediaPlayPause"
example: "Left"
# 修飾キー(action_type="keystroke"の場合に使用)
modifiers:
type: array
items:
type: string
enum:
- "Ctrl"
- "Alt"
- "Shift"
- "Win"
nullable: true
description: キーストロークと同時に押す修飾キーのリスト
example:
- "Alt"
# コマンド(action_type="command"の場合に使用)
command:
type: string
nullable: true
description: 実行するコマンドライン(action_type="command"の場合に使用)
example: "notepad.exe"
# URL(action_type="url"の場合に使用)
url:
type: string
nullable: true
description: 開くURL(action_type="url"の場合に使用)
example: "https://www.google.com"
# ウィンドウ操作(action_type="window_operation"の場合に使用)
operation:
type: string
enum:
- "minimize"
- "maximize"
- "close"
nullable: true
description: |
ウィンドウに対する操作(action_type="window_operation"の場合に使用)
- minimize: 最小化
- maximize: 最大化/元に戻す
- close: 閉じる
example: "minimize"
# アクション個別の無視EXEリスト
ignore_exe:
type: array
items:
type: string
nullable: true
description: このアクション実行時に無視するEXE名のリスト
example:
- "chrome.exe"
# 使用例
example:
trajectory: true
ignore_exe: []
actions:
- name: "戻る"
trigger_type: "gesture"
gesture: "左"
wheel_trigger: ""
action_type: "keystroke"
keystroke: "Left"
modifiers:
- "Alt"
command: null
url: null
operation: null
ignore_exe: null
- name: "前のタブ"
trigger_type: "wheel"
gesture: ""
wheel_trigger: "wheel_down"
action_type: "keystroke"
keystroke: "Tab"
modifiers:
- "Ctrl"
command: null
url: null
operation: null
ignore_exe: null