The Barista Logo

barista

An i3status alternative in golang

Download sample-bar Download i3status example View on GitHub

CPU Temperature

godoc
import "barista.run/modules/cputemp"

Display the temperature of the cpu package sensor: cputemp.New().
Display the temperature of a specific sensor: cputemp.Zone("thermal_zone7").
Display the temperature of the first sensor of a specific type: cputemp.OfType("iwlwifi").

Configuration

Example

25 deg C

Show the temperature from zone 7 in celsius:

cputemp.Zone("thermal_zone7").Output(func(t unit.Temperature) bar.Output) {
	return outputs.Textf("%.0f deg C", t.Celsius())
})

Data: unit.Temperature

Documentation for unit.Temperature