Documentation ¶
Overview ¶
Package slot provides multiple slots for a single module, allowing it to be moved between various positions on the bar. When used carefully, this can be useful for conveying limited information by re-ordering modules, but it has the potential to become too distracting if overused.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slotter ¶
type Slotter struct {
// contains filtered or unexported fields
}
Slotter provides the ability to display the output of a module into named slots, and allows changing the active slot at runtime to effectively move the module on the bar.
func New ¶
New creates a slotter for the given module. The module is 'consumed' by this operation and should not be used except through slots created from the returned Slotter.
func (*Slotter) Activate ¶
Activate moves the module output to the named slot.