-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrtadeck.config.schema.json
More file actions
188 lines (188 loc) · 5.99 KB
/
Copy pathrtadeck.config.schema.json
File metadata and controls
188 lines (188 loc) · 5.99 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "rtaDeck Configuration",
"description": "Configuration file for rtaDeck - Retro 8-bit Stream Deck",
"type": "object",
"required": ["settings"],
"additionalProperties": false,
"properties": {
"$schema": { "type": "string" },
"_docs": {
"type": "object",
"description": "Documentation section (ignored by the app)"
},
"settings": {
"type": "object",
"required": ["port", "host", "defaultPage"],
"additionalProperties": false,
"properties": {
"port": {
"type": "integer",
"default": 3000,
"minimum": 1,
"maximum": 65535,
"description": "Server port"
},
"host": {
"type": "string",
"default": "0.0.0.0",
"description": "Server host (0.0.0.0 for LAN access)"
},
"defaultPage": {
"type": "string",
"description": "ID of the default page to show on startup"
},
"columns": {
"type": "integer",
"default": 5,
"minimum": 1,
"maximum": 10,
"description": "Number of columns in the grid"
},
"rows": {
"type": "integer",
"default": 3,
"minimum": 1,
"maximum": 6,
"description": "Number of rows in the grid"
},
"activeProfile": {
"type": "string",
"description": "ID of the active profile"
}
}
},
"profiles": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "name", "pages"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9-]+$",
"description": "Unique profile identifier"
},
"name": {
"type": "string",
"description": "Display name"
},
"icon": {
"type": "string",
"description": "Emoji icon"
},
"pages": {
"$ref": "#/properties/pages"
}
}
}
},
"pages": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["id", "name", "buttons"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9-]+$",
"description": "Unique page identifier (lowercase, hyphens)"
},
"name": {
"type": "string",
"description": "Display name for the page tab"
},
"icon": {
"type": "string",
"description": "Emoji or NES.css icon for the page tab"
},
"buttons": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "slot", "display", "action"],
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z0-9-]+$",
"description": "Unique button identifier"
},
"slot": {
"type": "integer",
"minimum": 0,
"maximum": 59,
"description": "Grid slot position (0-based, left-to-right, top-to-bottom)"
},
"display": {
"type": "object",
"required": ["type", "content"],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": ["emoji", "text"],
"description": "Display content type"
},
"content": {
"type": "string",
"description": "Emoji character or text label"
},
"label": {
"type": "string",
"description": "Optional text label shown below the icon"
},
"size": {
"type": "string",
"enum": ["S", "M", "L"],
"default": "M",
"description": "Display size"
},
"color": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "Text/emoji color (hex)"
},
"bgColor": {
"type": "string",
"pattern": "^#[0-9a-fA-F]{6}$",
"description": "Button background color (hex)"
}
}
},
"action": {
"type": "object",
"required": ["type", "target"],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": ["open", "url", "keys", "cli", "agent"],
"description": "Action type: open (program), url (browser), keys (shortcut), cli (command), agent (AI agent)"
},
"target": {
"type": "string",
"description": "Target: path (open), URL (url), key combo (keys), command (cli), agent folder (agent)"
},
"cwd": {
"type": "string",
"description": "Working directory for cli/agent actions"
},
"args": {
"type": "array",
"items": { "type": "string" },
"description": "Additional arguments"
}
}
}
}
}
}
}
}
}
}
}