Documentation ¶
Index ¶
- func GCD(a, b int) int
- func RegisterMarkup(mk *markup.Markup, clock *Clock)
- type Battery
- func (b *Battery) Add(ui.Drawable)
- func (b *Battery) ChildContext(int) ui.Context
- func (b *Battery) Children() []ui.Drawable
- func (b *Battery) Draw(x, y int, im draw.Image)
- func (b *Battery) Height() int
- func (m *Battery) Init() error
- func (m *Battery) Name() string
- func (b *Battery) OnHeightChange(c func(int))
- func (b *Battery) OnWidthChange(c func(int))
- func (b *Battery) SendEvent(ev ui.Event) bool
- func (b *Battery) SetContext(ctx ui.Context)
- func (m *Battery) SetName(v string)
- func (m *Battery) Update(ctx context.Context)
- func (b *Battery) Width() int
- type CPU
- func (b *CPU) Add(ui.Drawable)
- func (b *CPU) ChildContext(int) ui.Context
- func (b *CPU) Children() []ui.Drawable
- func (b *CPU) Draw(x, y int, im draw.Image)
- func (b *CPU) Height() int
- func (m *CPU) Init() error
- func (b *CPU) OnHeightChange(c func(int))
- func (b *CPU) OnWidthChange(c func(int))
- func (b *CPU) SendEvent(ev ui.Event) bool
- func (b *CPU) SetContext(ctx ui.Context)
- func (m *CPU) SetShowAvgBar(v bool)
- func (m *CPU) SetShowMaxProcess(v bool)
- func (m *CPU) SetShowPerCoreBars(v bool)
- func (m *CPU) ShowAvgBar() bool
- func (m *CPU) ShowMaxProcess() bool
- func (m *CPU) ShowPerCoreBars() bool
- func (m *CPU) Update(context.Context)
- func (b *CPU) Width() int
- type Clock
- type Cmd
- func (b *Cmd) Add(ui.Drawable)
- func (b *Cmd) ChildContext(int) ui.Context
- func (b *Cmd) Children() []ui.Drawable
- func (b *Cmd) Draw(x, y int, im draw.Image)
- func (c *Cmd) Format() string
- func (c *Cmd) Height() int
- func (c *Cmd) Init() error
- func (c *Cmd) Interval() time.Duration
- func (c *Cmd) OnHeightChange(cb func(int))
- func (c *Cmd) OnWidthChange(cb func(int))
- func (b *Cmd) SendEvent(ev ui.Event) bool
- func (b *Cmd) SetContext(ctx ui.Context)
- func (c *Cmd) SetFormat(v string)
- func (c *Cmd) SetInterval(v time.Duration)
- func (c *Cmd) SetText(v string)
- func (c *Cmd) Text() string
- func (c *Cmd) Update(ctx context.Context)
- func (c *Cmd) Width() int
- type Connections
- func (b *Connections) Add(ui.Drawable)
- func (b *Connections) ChildContext(int) ui.Context
- func (b *Connections) Children() []ui.Drawable
- func (b *Connections) Draw(x, y int, im draw.Image)
- func (b *Connections) Height() int
- func (m *Connections) Init() error
- func (m *Connections) NameFilter() []string
- func (b *Connections) OnHeightChange(c func(int))
- func (b *Connections) OnWidthChange(c func(int))
- func (b *Connections) SendEvent(ev ui.Event) bool
- func (b *Connections) SetContext(ctx ui.Context)
- func (m *Connections) SetNameFilter(v []string)
- func (m *Connections) SetTypeFilter(v []string)
- func (m *Connections) TypeFilter() []string
- func (m *Connections) Update(context.Context)
- func (b *Connections) Width() int
- type DateTime
- func (b *DateTime) Add(ui.Drawable)
- func (b *DateTime) ChildContext(int) ui.Context
- func (b *DateTime) Children() []ui.Drawable
- func (b *DateTime) Draw(x, y int, im draw.Image)
- func (m *DateTime) Format() string
- func (b *DateTime) Height() int
- func (m *DateTime) Init() error
- func (b *DateTime) OnHeightChange(c func(int))
- func (b *DateTime) OnWidthChange(c func(int))
- func (b *DateTime) SendEvent(ev ui.Event) bool
- func (b *DateTime) SetContext(ctx ui.Context)
- func (m *DateTime) SetFormat(v string)
- func (m *DateTime) SetTimezone(v string)
- func (m *DateTime) Timezone() string
- func (m *DateTime) Update(context.Context)
- func (b *DateTime) Width() int
- type DiskBandwidth
- func (b *DiskBandwidth) Add(ui.Drawable)
- func (b *DiskBandwidth) ChildContext(int) ui.Context
- func (b *DiskBandwidth) Children() []ui.Drawable
- func (m *DiskBandwidth) Devs() []string
- func (b *DiskBandwidth) Draw(x, y int, im draw.Image)
- func (b *DiskBandwidth) Height() int
- func (m *DiskBandwidth) Init() error
- func (b *DiskBandwidth) OnHeightChange(c func(int))
- func (b *DiskBandwidth) OnWidthChange(c func(int))
- func (b *DiskBandwidth) SendEvent(ev ui.Event) bool
- func (b *DiskBandwidth) SetContext(ctx ui.Context)
- func (m *DiskBandwidth) SetDevs(v []string)
- func (m *DiskBandwidth) SetShowLabel(v bool)
- func (m *DiskBandwidth) SetUnit(v string)
- func (m *DiskBandwidth) ShowLabel() bool
- func (m *DiskBandwidth) Unit() string
- func (m *DiskBandwidth) Update(context.Context)
- func (b *DiskBandwidth) Width() int
- type DiskUsage
- func (b *DiskUsage) Add(ui.Drawable)
- func (b *DiskUsage) ChildContext(int) ui.Context
- func (b *DiskUsage) Children() []ui.Drawable
- func (b *DiskUsage) Draw(x, y int, im draw.Image)
- func (b *DiskUsage) Height() int
- func (m *DiskUsage) Init() error
- func (m *DiskUsage) MountPoint() string
- func (b *DiskUsage) OnHeightChange(c func(int))
- func (b *DiskUsage) OnWidthChange(c func(int))
- func (b *DiskUsage) SendEvent(ev ui.Event) bool
- func (b *DiskUsage) SetContext(ctx ui.Context)
- func (m *DiskUsage) SetMountPoint(v string)
- func (m *DiskUsage) Update(context.Context)
- func (b *DiskUsage) Width() int
- type Interface
- func (b *Interface) Add(ui.Drawable)
- func (b *Interface) ChildContext(int) ui.Context
- func (b *Interface) Children() []ui.Drawable
- func (b *Interface) Draw(x, y int, im draw.Image)
- func (b *Interface) Height() int
- func (m *Interface) Iface() string
- func (m *Interface) Init() error
- func (b *Interface) OnHeightChange(c func(int))
- func (b *Interface) OnWidthChange(c func(int))
- func (b *Interface) SendEvent(ev ui.Event) bool
- func (b *Interface) SetContext(ctx ui.Context)
- func (m *Interface) SetIface(s string)
- func (m *Interface) SetShowLabel(v bool)
- func (m *Interface) ShowLabel() bool
- func (m *Interface) Update(context.Context)
- func (b *Interface) Width() int
- type ModuleRow
- type Music
- func (b *Music) Add(ui.Drawable)
- func (b *Music) ChildContext(int) ui.Context
- func (b *Music) Children() []ui.Drawable
- func (b *Music) Draw(x, y int, im draw.Image)
- func (b *Music) Height() int
- func (m *Music) Init() error
- func (b *Music) OnHeightChange(c func(int))
- func (b *Music) OnWidthChange(c func(int))
- func (b *Music) SendEvent(ev ui.Event) bool
- func (b *Music) SetContext(ctx ui.Context)
- func (m *Music) SetSpotifyKeyID(v string)
- func (m *Music) SetSpotifyKeySecret(v string)
- func (m *Music) SpotifyKeyID() string
- func (m *Music) SpotifyKeySecret() string
- func (b *Music) Width() int
- type RAM
- func (b *RAM) Add(ui.Drawable)
- func (b *RAM) ChildContext(int) ui.Context
- func (b *RAM) Children() []ui.Drawable
- func (b *RAM) Draw(x, y int, im draw.Image)
- func (m *RAM) Format() string
- func (b *RAM) Height() int
- func (m *RAM) Init() error
- func (b *RAM) OnHeightChange(c func(int))
- func (b *RAM) OnWidthChange(c func(int))
- func (b *RAM) SendEvent(ev ui.Event) bool
- func (b *RAM) SetContext(ctx ui.Context)
- func (m *RAM) SetFormat(v string)
- func (m *RAM) SetShowBar(b bool)
- func (m *RAM) SetShowMaxProcess(v bool)
- func (m *RAM) ShowBar() bool
- func (m *RAM) ShowMaxProcess() bool
- func (m *RAM) Update(context.Context)
- func (b *RAM) Width() int
- type TextUnit
- func (b *TextUnit) Add(ui.Drawable)
- func (b *TextUnit) ChildContext(int) ui.Context
- func (b *TextUnit) Children() []ui.Drawable
- func (b *TextUnit) Draw(x, y int, im draw.Image)
- func (b *TextUnit) Height() int
- func (t *TextUnit) Init() error
- func (b *TextUnit) OnHeightChange(c func(int))
- func (b *TextUnit) OnWidthChange(c func(int))
- func (b *TextUnit) SendEvent(ev ui.Event) bool
- func (t *TextUnit) Set(v, u string)
- func (b *TextUnit) SetContext(ctx ui.Context)
- func (b *TextUnit) Width() int
- type Updatable
- type Volume
- func (b *Volume) Add(ui.Drawable)
- func (b *Volume) ChildContext(int) ui.Context
- func (b *Volume) Children() []ui.Drawable
- func (b *Volume) Draw(x, y int, im draw.Image)
- func (b *Volume) Height() int
- func (m *Volume) Init() error
- func (b *Volume) OnHeightChange(c func(int))
- func (b *Volume) OnWidthChange(c func(int))
- func (b *Volume) SendEvent(ev ui.Event) bool
- func (b *Volume) SetContext(ctx ui.Context)
- func (b *Volume) Width() int
- type Weather
- func (b *Weather) Add(ui.Drawable)
- func (m *Weather) ApiKey() string
- func (b *Weather) ChildContext(int) ui.Context
- func (b *Weather) Children() []ui.Drawable
- func (b *Weather) Draw(x, y int, im draw.Image)
- func (b *Weather) Height() int
- func (m *Weather) Init() error
- func (m *Weather) Location() string
- func (b *Weather) OnHeightChange(c func(int))
- func (b *Weather) OnWidthChange(c func(int))
- func (b *Weather) SendEvent(ev ui.Event) bool
- func (m *Weather) SetApiKey(v string)
- func (b *Weather) SetContext(ctx ui.Context)
- func (m *Weather) SetLocation(v string)
- func (m *Weather) SetUnit(v string)
- func (m *Weather) Unit() string
- func (m *Weather) Update(context.Context)
- func (b *Weather) Width() int
- type Workspaces
- func (b *Workspaces) Add(ui.Drawable)
- func (b *Workspaces) ChildContext(int) ui.Context
- func (b *Workspaces) Children() []ui.Drawable
- func (b *Workspaces) Draw(x, y int, im draw.Image)
- func (b *Workspaces) Height() int
- func (m *Workspaces) Init() error
- func (m *Workspaces) MaxWidth() int
- func (b *Workspaces) OnHeightChange(c func(int))
- func (b *Workspaces) OnWidthChange(c func(int))
- func (m *Workspaces) OnlyCurrent() bool
- func (b *Workspaces) SendEvent(ev ui.Event) bool
- func (b *Workspaces) SetContext(ctx ui.Context)
- func (m *Workspaces) SetMaxWidth(v int)
- func (m *Workspaces) SetOnlyCurrent(v bool)
- func (b *Workspaces) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterMarkup ¶
Types ¶
type Battery ¶ added in v0.3.6
type Battery struct { Charging *base.Sizer Bar *base.Rect Value *TextUnit // contains filtered or unexported fields }
func NewBattery ¶ added in v0.3.6
func (*Battery) ChildContext ¶ added in v0.3.6
func (*Battery) OnHeightChange ¶ added in v0.3.6
func (b *Battery) OnHeightChange(c func(int))
func (*Battery) OnWidthChange ¶ added in v0.3.6
func (b *Battery) OnWidthChange(c func(int))
func (*Battery) SetContext ¶ added in v0.3.6
type CPU ¶
type CPU struct { PcTxt *TextUnit ProcTxt *base.Text ProcSizer *base.Sizer TextRow *base.Row Bar *base.Bar BarSizer *base.Sizer BarsSizer *base.Sizer BarsRow *base.Row Bars []*base.Bar // contains filtered or unexported fields }
func NewCPU ¶
func NewCPU(p ui.ParentDrawable, mk *markup.Markup, clock *Clock, pw *process.ProcessWatcher) *CPU
func (*CPU) ChildContext ¶
func (*CPU) OnHeightChange ¶
func (b *CPU) OnHeightChange(c func(int))
func (*CPU) OnWidthChange ¶
func (b *CPU) OnWidthChange(c func(int))
func (*CPU) SetContext ¶
func (*CPU) SetShowAvgBar ¶
func (*CPU) SetShowMaxProcess ¶
func (*CPU) SetShowPerCoreBars ¶
func (*CPU) ShowAvgBar ¶
func (*CPU) ShowMaxProcess ¶
func (*CPU) ShowPerCoreBars ¶
type Cmd ¶
func (*Cmd) ChildContext ¶
func (*Cmd) OnHeightChange ¶
func (*Cmd) OnWidthChange ¶
func (*Cmd) SetContext ¶
func (*Cmd) SetInterval ¶
type Connections ¶ added in v0.3.0
func NewConnections ¶ added in v0.3.0
func NewConnections(p ui.ParentDrawable, mk *markup.Markup, clock *Clock) *Connections
func (*Connections) ChildContext ¶ added in v0.3.0
func (*Connections) Init ¶ added in v0.3.0
func (m *Connections) Init() error
func (*Connections) NameFilter ¶ added in v0.3.3
func (m *Connections) NameFilter() []string
func (*Connections) OnHeightChange ¶ added in v0.3.0
func (b *Connections) OnHeightChange(c func(int))
func (*Connections) OnWidthChange ¶ added in v0.3.0
func (b *Connections) OnWidthChange(c func(int))
func (*Connections) SetContext ¶ added in v0.3.0
func (*Connections) SetNameFilter ¶ added in v0.3.3
func (m *Connections) SetNameFilter(v []string)
func (*Connections) SetTypeFilter ¶ added in v0.3.3
func (m *Connections) SetTypeFilter(v []string)
func (*Connections) TypeFilter ¶ added in v0.3.3
func (m *Connections) TypeFilter() []string
func (*Connections) Update ¶ added in v0.3.0
func (m *Connections) Update(context.Context)
type DateTime ¶
func NewDateTime ¶
func (*DateTime) ChildContext ¶
func (*DateTime) OnHeightChange ¶
func (b *DateTime) OnHeightChange(c func(int))
func (*DateTime) OnWidthChange ¶
func (b *DateTime) OnWidthChange(c func(int))
func (*DateTime) SetContext ¶
func (*DateTime) SetTimezone ¶
type DiskBandwidth ¶
type DiskBandwidth struct { Transfer *transfer Label *base.Text LabelSizer *base.Sizer // contains filtered or unexported fields }
func NewDiskBW ¶
func NewDiskBW(p ui.ParentDrawable, mk *markup.Markup, clock *Clock) *DiskBandwidth
func (*DiskBandwidth) ChildContext ¶
func (*DiskBandwidth) Devs ¶
func (m *DiskBandwidth) Devs() []string
func (*DiskBandwidth) Init ¶
func (m *DiskBandwidth) Init() error
func (*DiskBandwidth) OnHeightChange ¶
func (b *DiskBandwidth) OnHeightChange(c func(int))
func (*DiskBandwidth) OnWidthChange ¶
func (b *DiskBandwidth) OnWidthChange(c func(int))
func (*DiskBandwidth) SetContext ¶
func (*DiskBandwidth) SetDevs ¶
func (m *DiskBandwidth) SetDevs(v []string)
func (*DiskBandwidth) SetShowLabel ¶
func (m *DiskBandwidth) SetShowLabel(v bool)
func (*DiskBandwidth) SetUnit ¶
func (m *DiskBandwidth) SetUnit(v string)
func (*DiskBandwidth) ShowLabel ¶
func (m *DiskBandwidth) ShowLabel() bool
func (*DiskBandwidth) Unit ¶
func (m *DiskBandwidth) Unit() string
func (*DiskBandwidth) Update ¶
func (m *DiskBandwidth) Update(context.Context)
type DiskUsage ¶
type DiskUsage struct { Txt *TextUnit // contains filtered or unexported fields }
func NewDiskUsage ¶
func (*DiskUsage) ChildContext ¶
func (*DiskUsage) MountPoint ¶
func (*DiskUsage) OnHeightChange ¶
func (b *DiskUsage) OnHeightChange(c func(int))
func (*DiskUsage) OnWidthChange ¶
func (b *DiskUsage) OnWidthChange(c func(int))
func (*DiskUsage) SetContext ¶
func (*DiskUsage) SetMountPoint ¶
type Interface ¶
type Interface struct { Transfer *transfer Label *base.Text LabelSizer *base.Sizer // contains filtered or unexported fields }
func NewInterface ¶
func (*Interface) ChildContext ¶
func (*Interface) OnHeightChange ¶
func (b *Interface) OnHeightChange(c func(int))
func (*Interface) OnWidthChange ¶
func (b *Interface) OnWidthChange(c func(int))
func (*Interface) SetContext ¶
func (*Interface) SetShowLabel ¶
type Music ¶
type Music struct { Img *base.Image Placeholder *base.Rect TextRow *base.Row Progress *base.Bar Artist *base.Text Sep *base.Sizer Title *base.Text // contains filtered or unexported fields }
func (*Music) ChildContext ¶
func (*Music) OnHeightChange ¶
func (b *Music) OnHeightChange(c func(int))
func (*Music) OnWidthChange ¶
func (b *Music) OnWidthChange(c func(int))
func (*Music) SetContext ¶
func (*Music) SetSpotifyKeyID ¶
func (*Music) SetSpotifyKeySecret ¶
func (*Music) SpotifyKeyID ¶
func (*Music) SpotifyKeySecret ¶
type RAM ¶
type RAM struct { GbTxt *TextUnit ProcTxt *base.Text ProcSizer *base.Sizer TextRow *base.Row BarEl *base.Bar BarSizer *base.Sizer // contains filtered or unexported fields }
func NewRAM ¶
func NewRAM(p ui.ParentDrawable, mk *markup.Markup, clock *Clock, pw *process.ProcessWatcher) *RAM
func (*RAM) ChildContext ¶
func (*RAM) OnHeightChange ¶
func (b *RAM) OnHeightChange(c func(int))
func (*RAM) OnWidthChange ¶
func (b *RAM) OnWidthChange(c func(int))
func (*RAM) SetContext ¶
func (*RAM) SetShowBar ¶
func (*RAM) SetShowMaxProcess ¶
func (*RAM) ShowMaxProcess ¶
type TextUnit ¶
func NewTextUnit ¶
func NewTextUnit(p ui.ParentDrawable, mk *markup.Markup) *TextUnit
func (*TextUnit) ChildContext ¶
func (*TextUnit) OnHeightChange ¶
func (b *TextUnit) OnHeightChange(c func(int))
func (*TextUnit) OnWidthChange ¶
func (b *TextUnit) OnWidthChange(c func(int))
func (*TextUnit) SetContext ¶
type Volume ¶
func (*Volume) ChildContext ¶
func (*Volume) OnHeightChange ¶
func (b *Volume) OnHeightChange(c func(int))
func (*Volume) OnWidthChange ¶
func (b *Volume) OnWidthChange(c func(int))
func (*Volume) SetContext ¶
type Weather ¶
func NewWeather ¶
func (*Weather) ChildContext ¶
func (*Weather) OnHeightChange ¶
func (b *Weather) OnHeightChange(c func(int))
func (*Weather) OnWidthChange ¶
func (b *Weather) OnWidthChange(c func(int))
func (*Weather) SetContext ¶
func (*Weather) SetLocation ¶
type Workspaces ¶ added in v0.2.0
func NewWorkspaces ¶ added in v0.2.0
func NewWorkspaces(p ui.ParentDrawable, mk *markup.Markup) *Workspaces
func (*Workspaces) ChildContext ¶ added in v0.2.0
func (*Workspaces) Init ¶ added in v0.2.0
func (m *Workspaces) Init() error
func (*Workspaces) MaxWidth ¶ added in v0.2.0
func (m *Workspaces) MaxWidth() int
func (*Workspaces) OnHeightChange ¶ added in v0.2.0
func (b *Workspaces) OnHeightChange(c func(int))
func (*Workspaces) OnWidthChange ¶ added in v0.2.0
func (b *Workspaces) OnWidthChange(c func(int))
func (*Workspaces) OnlyCurrent ¶ added in v0.3.0
func (m *Workspaces) OnlyCurrent() bool
func (*Workspaces) SetContext ¶ added in v0.2.0
func (*Workspaces) SetMaxWidth ¶ added in v0.2.0
func (m *Workspaces) SetMaxWidth(v int)
func (*Workspaces) SetOnlyCurrent ¶ added in v0.3.0
func (m *Workspaces) SetOnlyCurrent(v bool)
Click to show internal directories.
Click to hide internal directories.