This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
92 lines (92 loc) · 3.67 KB
/
config.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"numOrPercentage": {
"$ref": "https://raw.githubusercontent.com/ogios/way-edges/master/config/defs.schema.json#UtilNumOrPercentage"
},
"AllWidgets": {
"$ref": "https://raw.githubusercontent.com/ogios/way-edges/master/config/defs.schema.json#AllWidgets"
}
},
"title": "way-edges config",
"description": "A configuration for way-edges",
"type": "object",
"properties": {
"groups": {
"description": "Groups of buttons. you can activate each group by `way-edges [group_name]`.\nDefault empty array",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the group, can be empty if exist only one group.\nDefault empty string",
"type": "string"
},
"widgets": {
"description": "Button items: available params:\nedge | position | layer | width | height | margin | monitor_id | monitor_name | widget",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"description": "Name of the widget, can be empty",
"type": "string"
},
"edge": {
"type": "string",
"description": "edge of the screen: top/bottom/left/right.\nDefault `left`",
"enum": ["top", "bottom", "left", "right"]
},
"position": {
"type": "string",
"description": "position of the edge: top/bottom; left/right; or leave empty string for center.\nDefault `center`",
"enum": ["", "top", "bottom", "left", "right", "center"]
},
"layer": {
"type": "string",
"description": "layer of the screen: background/bottom/top/overlay.\nDefault `top`",
"enum": ["top", "bottom", "background", "overlay"]
},
"margin": {
"description": "margin of the button, relative to the `position`.\nDefault all 0.",
"type": "object",
"properties": {
"top": {
"description": "top margin of the button\nDefault 0",
"$ref": "#/definitions/numOrPercentage"
},
"bottom": {
"description": "bottom margin of the button\nDefault 0",
"$ref": "#/definitions/numOrPercentage"
},
"left": {
"description": "left margin of the button\nDefault 0",
"$ref": "#/definitions/numOrPercentage"
},
"right": {
"description": "right margin of the button\nDefault 0",
"$ref": "#/definitions/numOrPercentage"
}
}
},
"monitor_id": {
"description": "Which monitor to show the button, ignored when given `monitor_name`.\nDefault 0",
"type": "integer",
"minimum": 0
},
"monitor_name": {
"description": "Which monitor to show the button.\nDefault empty string",
"type": "string"
},
"widget": {
"description": "Select one widget type",
"$ref": "#/definitions/AllWidgets"
}
}
}
}
}
}
}
}
}