/
bar.cr
48 lines (46 loc) · 1.33 KB
/
bar.cr
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
require "json"
module I3
class Message
# Represents the response to a `Message::MessageType::GET_BAR_CONFIG` request.
#
# See `Connection#bar_config`.
class Bar
class Colors
JSON.mapping(
background: String?,
statusline: String?,
separator: String?,
focused_background: String?,
focused_statusline: String?,
focused_separator: String?,
focused_workspace_text: String?,
focused_workspace_bg: String?,
focused_workspace_border: String?,
active_workspace_text: String?,
active_workspace_bg: String?,
active_workspace_border: String?,
inactive_workspace_text: String?,
inactive_workspace_bg: String?,
inactive_workspace_border: String?,
urgent_workspace_text: String?,
urgent_workspace_bg: String?,
urgent_workspace_border: String?,
binding_mode_text: String?,
binding_mode_bg: String?,
binding_mode_border: String?,
)
end
JSON.mapping(
id: String,
mode: String,
position: String,
status_command: String,
font: String,
workspace_buttons: Bool,
binding_mode_indicator: Bool,
verbose: Bool,
colors: Colors,
)
end
end
end