Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Name string `json:"name"` Instance string `json:"instance"` FullText string `json:"full_text"` ShortText string `json:"short_text"` Color string `json:"color"` Background string `json:"background"` Border string `json:"border"` MinWidth int `json:"min_width"` Align string `json:"align"` Urgent bool `json:"urgent"` Separator bool `json:"separator"` SeparatorBlockWidth int `json:"separator_block_width"` Markup string `json:"markup"` }
func NewColorBlock ¶
func NewDefaultBlock ¶
func NewErrorBlock ¶
func NewErrorBlock() Block
func NewPangoBlock ¶
type BlockManager ¶
type BlockManager struct {
// contains filtered or unexported fields
}
func (*BlockManager) AddModule ¶
func (m *BlockManager) AddModule(module BlockModule)
func (*BlockManager) Close ¶
func (m *BlockManager) Close()
func (*BlockManager) Init ¶
func (m *BlockManager) Init()
func (*BlockManager) Run ¶
func (m *BlockManager) Run(refreshRate time.Duration)
type BlockModule ¶
Click to show internal directories.
Click to hide internal directories.