Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct {
Name string `json:"name"`
Instance string `json:"instance"`
FullText string `json:"full_text,omitempty"`
ShortText string `json:"short_text,omitempty"`
Color *Color `json:"color,omitempty"`
Handler `json:"-"`
Background *Color `json:"background,omitempty"`
Border *Color `json:"border,omitempty"`
MinWidth int `json:"min_width,omitempty"`
Align string `json:"align,omitempty"`
Urgent *bool `json:"urgent,omitempty"`
Separator *bool `json:"separator,omitempty"`
SeparatorBlockWidth int `json:"separator_block_width,omitempty"`
Markup string `json:"markup,omitempty"`
}
A Block represents an individual "block" (per https://i3wm.org/docs/i3bar-protocol.html)
type BlockerFunc ¶
type BlockerFunc func() Block
func (BlockerFunc) Block ¶
func (b BlockerFunc) Block() Block
type Color ¶
func (*Color) MarshalJSON ¶
type HandlerFunc ¶
type HandlerFunc func(Click)
func (HandlerFunc) Handle ¶
func (chf HandlerFunc) Handle(c Click) bool
Click to show internal directories.
Click to hide internal directories.