The Barista Logo

barista

An i3status alternative in golang

Download sample-bar Download i3status example View on GitHub

System Information

godoc
import "barista.run/modules/sysinfo"

Configuration

Because the sysinfo module performs a single sysinfo call to update all instances, the refresh interval can only be set for the package as a whole.

Example

up 132h10m78s

Show the system uptime:

sysinfo.New().Output(func(i sysinfo.Info) bar.Output) {
	return outputs.Textf("up %v", i.Uptime)
})

Data: type Info struct

Fields

Documentation for unit.Datasize