sensors

package
v0.0.0-...-9759625 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package sensors renders the sensors tab: rolling temperature graphs, fan speeds and battery state — everything the platform reports about its own hardware.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the sensors tab.

func New

func New(cfg *config.Config, th *theme.Theme) *Model

New builds the sensors tab.

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

SetSize implements ui.Tab.

func (*Model) SetTheme

func (m *Model) SetTheme(th *theme.Theme)

SetTheme implements ui.Tab.

func (*Model) SetVisible

func (m *Model) SetVisible(bool)

SetVisible implements ui.Tab. History keeps flowing while hidden so the graphs are never gapped; there is no per-snapshot rebuild to skip.

func (*Model) Title

func (m *Model) Title() string

Title implements ui.Tab.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

Update implements ui.Tab.

func (*Model) View

func (m *Model) View() string

View implements ui.Tab: one bordered section per hardware group, each dropped when the platform reports nothing for it. Graphs are the first thing dropped when the content outgrows a small terminal.

Jump to

Keyboard shortcuts

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