statusbar

package
v0.0.0-...-cc00660 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAppName

func WithAppName(s string) func(cfg *Options) error

func WithBlocks

func WithBlocks(b ...block.Block) func(cfg *Options) error

func WithNotificationIcon

func WithNotificationIcon(s string) func(cfg *Options) error

func WithTitle

func WithTitle(s string) func(cfg *Options) error

func WithTooltip

func WithTooltip(s string) func(cfg *Options) error

Types

type Option

type Option func(cfg *Options) error

type Options

type Options struct {
	Blocks                                              []block.Block
	Title, Tooltip, NotificatorAppName, NotificatorIcon string
}

func (*Options) Apply

func (cfg *Options) Apply(opts ...Option) error

type Statusbar

type Statusbar struct {
	Options Options
	// contains filtered or unexported fields
}

func NewBar

func NewBar(p ...Option) *Statusbar

func (*Statusbar) Close

func (sb *Statusbar) Close()

func (*Statusbar) Ready

func (sb *Statusbar) Ready()

func (*Statusbar) Serve

func (sb *Statusbar) Serve()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL