Documentation ¶
Overview ¶
Package barproto implements the i3bar protocol.
Index ¶
Constants ¶
View Source
const Version = 1 // i3 v4.3+, last tested on v4.23
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Name string // optional, passed as-is for events Instance string // optional, passed as-is for events FullText string // text ShortText string // optional Color uint32 // 0xRRGGBBAA (AA should be 0xFF for solid colors) (0x00000000 is treated as i3bar's default) Background uint32 // ^ Border uint32 // ^ BorderTop int // pixels (0 is treated as i3bar's default of 1, set to -1 to disable the border) BorderRight int // ^ BorderBottom int // ^ BorderLeft int // ^ MinWidth int // pixels (0 is none) MinWidthString string // overrides MinWidth with the width of the specified text if not empty Align string // left|center|right, used if smaller than MinWidth Urgent bool // used by i3bar Separator bool // whether to draw a separator line after the block SeparatorBlockWidth int // pixels, should be odd since line is in the middle (if Separator is true, 0 is treated as the i3bar's value, otherwise -1 is) Pango bool // whether to use pango markup }
Block represents an i3bar block.
func (Block) AppendJSON ¶
func (Block) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.