File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ unix_socket = "0.4.5"
11
11
byteorder = " 0.3"
12
12
log = " 0.3.7"
13
13
serde_json = " 0.6.0"
14
+
15
+ [features ]
16
+ i3-4-12 = []
Original file line number Diff line number Diff line change @@ -110,6 +110,16 @@ pub fn build_bar_config(j: &json::Value) -> reply::BarConfig {
110
110
"background" => reply:: ColorableBarPart :: Background ,
111
111
"statusline" => reply:: ColorableBarPart :: Statusline ,
112
112
"separator" => reply:: ColorableBarPart :: Separator ,
113
+
114
+ #[ cfg( feature = "i3-4-12" ) ]
115
+ "focused_background" => reply:: ColorableBarPart :: FocusedBackground ,
116
+
117
+ #[ cfg( feature = "i3-4-12" ) ]
118
+ "focused_statusline" => reply:: ColorableBarPart :: FocusedStatusline ,
119
+
120
+ #[ cfg( feature = "i3-4-12" ) ]
121
+ "focused_separator" => reply:: ColorableBarPart :: FocusedSeparator ,
122
+
113
123
"focused_workspace_text" => reply:: ColorableBarPart :: FocusedWorkspaceText ,
114
124
"focused_workspace_bg" => reply:: ColorableBarPart :: FocusedWorkspaceBg ,
115
125
"focused_workspace_border" => reply:: ColorableBarPart :: FocusedWorkspaceBorder ,
Original file line number Diff line number Diff line change @@ -219,6 +219,20 @@ pub enum ColorableBarPart {
219
219
/// Text color to be used for the separator.
220
220
Separator ,
221
221
222
+ /// Background color of the bar on the currently focused monitor output.
223
+ #[ cfg( feature = "i3-4-12" ) ]
224
+ FocusedBackground ,
225
+
226
+ /// Text color to be used for the statusline on the currently focused
227
+ /// monitor output.
228
+ #[ cfg( feature = "i3-4-12" ) ]
229
+ FocusedStatusline ,
230
+
231
+ /// Text color to be used for the separator on the currently focused
232
+ /// monitor output.
233
+ #[ cfg( feature = "i3-4-12" ) ]
234
+ FocusedSeparator ,
235
+
222
236
/// Text color for a workspace button when the workspace has focus.
223
237
FocusedWorkspaceText ,
224
238
You can’t perform that action at this time.
0 commit comments