power

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SingleQuotesRegExp = "'(.*)'"
View Source
const TimeRegExp = "^(?:\\d|[01]\\d|2[0-3]):[0-5]\\d"

Variables

View Source
var Config *config.Config

Config is a pointer to the global config object

Functions

This section is empty.

Types

type Battery

type Battery struct {
	Charge    string
	Remaining string
	// contains filtered or unexported fields
}

func NewBattery

func NewBattery() *Battery

func (*Battery) Refresh

func (battery *Battery) Refresh()

func (*Battery) String

func (battery *Battery) String() string

type Widget

type Widget struct {
	wtf.TextWidget

	Battery *Battery
}

func NewWidget

func NewWidget() *Widget

func (*Widget) Refresh

func (widget *Widget) Refresh()

Jump to

Keyboard shortcuts

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