The Barista Logo

barista

An i3status alternative in golang

Download sample-bar Download i3status example View on GitHub

Static

godoc
import "barista.run/modules/static"

Display static output on the bar: static.New(outputs.Text("foo")).

Static provides a simple module that shows static content on the bar, with methods to set the content. In a pinch, this can be used to create buttons, or show additional information by setting the output from within a format function.

Controlling Static Output

Example

WWW

Add a button to launch Firefox:

wwwLauncher := static.New(outputs.Text("WWW").OnClick(click.RunLeft("firefox")))