-
Notifications
You must be signed in to change notification settings - Fork 26
/
schema.yaml
169 lines (168 loc) · 3.85 KB
/
schema.yaml
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
type: map
required: true
mapping:
'custom':
type: any
required: false
'import':
type: seq
required: false
sequence:
- type: str
required: true
'ignore':
type: seq
required: false
sequence:
- type: str
required: true
'require':
type: seq
required: false
sequence:
- type: any
required: true
'control':
type: map
required: true
mapping:
'event': &optional_hash_with_string_values
type: map
required: false
mapping:
=:
type: str
required: true
'mouse':
type: map
required: true
mapping:
'grab': &required_string
type: str
required: true
=: *required_string
'keyboard': *optional_hash_with_string_values
'action': *optional_hash_with_string_values
'keyboard_action': *optional_hash_with_string_values
'script':
type: map
required: false
mapping:
'before': &script
type: seq
required: false
sequence:
- type: str
required: true
'after': *script
'status':
type: map
required: false
mapping:
=:
type: map
required: true
mapping: &status_barlet
'params': &optional_hash
type: map
required: false
mapping:
=:
type: any
'script':
type: str
required: false
'label':
type: str
required: false
'refresh':
type: int
required: false
range:
min: 0
'control':
type: map
required: false
mapping:
'event': *optional_hash_with_string_values
'action': *optional_hash_with_string_values
'mouse_action':
type: map
required: false
mapping:
'left_click': &optional_string
type: str
required: false
'wheel_click': *optional_string
'right_click': *optional_string
'wheel_up': *optional_string
'wheel_down': *optional_string
'wheel_left': *optional_string
'wheel_right': *optional_string
'display':
type: map
required: true
mapping:
'bar':
type: str
required: true
enum: [top, bottom]
'font':
type: str
required: true
'border':
type: int
required: true
range:
min: 0
'color':
type: map
required: true
mapping:
'desktop':
type: str
required: true
pattern: '/^#\h{6}$/'
'normal': &required_color_tuple
type: str
required: true
pattern: '/^#\h{6} #\h{6} #\h{6}$/'
'focus': *required_color_tuple
=: *required_color_tuple
'refresh':
type: int
required: false
range:
min: 0
'column':
type: map
required: true
mapping:
'mode':
type: str
required: true
enum: [default, stack, max]
'rule':
type: str
required: true
'client':
type: map
required: true
mapping:
=:
type: seq
required: true
sequence:
- type: str
required: true
'status':
type: seq
required: false
sequence:
- type: map
required: false
mapping:
=:
type: map
required: false
mapping: *status_barlet