hwmon

package
v0.0.0-...-c936f35 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package hwmon implements an i3bar module that shows the temperature from /sys/class/hwmon

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module = temperature.Module

Module represents a hwmon bar module. It supports setting the output format, click handler, update frequency, and urgency/colour functions.

func OfNameAndLabel

func OfNameAndLabel(name string, label string) *Module

OfNameAndLabel finds a sensor given hwmon name and label.

For example, if you have /sys/class/hwmon/hwmon4/name containing "k10temp", and /sys/class/hwmon/hwmon4/temp1_label containing "Tctl", the former would be name, and the latter would be label.

Jump to

Keyboard shortcuts

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