Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventReader ¶
func FilterRawEvent ¶
Types ¶
type Event ¶
type Event struct { Name string `json:"name"` Instance string `json:"instance"` Button int `json:"button"` X int `json:"x"` Y int `json:"y"` }
incoming event
type Header ¶
type Msg ¶
type Msg struct { FullText string `json:"full_text"` // full text, when shortening is not required ShortText string `json:"short_text,omitempty"` // shortened version of text to use when bar is full Color string `json:"color,omitempty"` // color in #ffff00 BorderColor string `json:"border,omitempty"` // color in #ffff00 BackgroundColor string `json:"background,omitempty"` // color in #ffff00 Markup string `json:"markup,omitempty"` // markup, pango or none (default MinWidth string `json:"min_width,omitempty"` // width in pixels, or string which will be measured for min_width Align string `json:"align,omitempty"` // left/right/center align when size of text is smaller than minWidth Name string `json:"name,omitempty"` // block name (ignored by i3bar, but will be returned in event) Instance string `json:"instance,omitempty"` // block instance (ignored by i3bar, but will be returned in event) Urgent bool `json:"urgent,omitempty"` // urgent flag Separator bool `json:"separator,omitempty"` // draw eparator SeparatorBlockWidth int16 `json:"separator_block_width,omitempty"` //number of pixe }
Click to show internal directories.
Click to hide internal directories.