Struct i3ipc::reply::BarConfig [] [src]

pub struct BarConfig {
    pub id: String,
    pub mode: String,
    pub position: String,
    pub status_command: String,
    pub font: String,
    pub workspace_buttons: bool,
    pub binding_mode_indicator: bool,
    pub verbose: bool,
    pub colors: HashMap<ColorableBarPart, String>,
}

The reply to the get_bar_config request.

This can be used by third-party workspace bars (especially i3bar, but others are free to implement compatible alternatives) to get the bar block configuration from i3.

Fields

The ID for this bar. Included in case you request multiple configurations and want to differentiate the different replies.

Either dock (the bar sets the dock window type) or hide (the bar does not show unless a specific key is pressed).

Either bottom or top at the moment.

Command which will be run to generate a statusline. Each line on stdout of this command will be displayed in the bar. At the moment, no formatting is supported.

The font to use for text on the bar.

Display workspace buttons or not? Defaults to true.

Display the mode indicator or not? Defaults to true.

Should the bar enable verbose output for debugging? Defaults to false.

Contains key/value pairs of colors. Each value is a color code in hex, formatted #rrggbb (like in HTML).

Trait Implementations

impl Debug for BarConfig
[src]

[src]

Formats the value using the given formatter.