Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultIcon = ""
DefaultIcon is the Nerd Font codepoint used when the caller doesn't override Memory.Icon — fae-chip (memory chip).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
Interval time.Duration
FG color.RGBA
BG color.RGBA
Icon string
// MeminfoPath overrides /proc/meminfo. Empty means the real procfs
// path. Tests point this at a fixture file.
MeminfoPath string
// contains filtered or unexported fields
}
Memory shows used-memory percentage computed from MemTotal vs MemAvailable in /proc/meminfo (matches what most monitors report).
Click to show internal directories.
Click to hide internal directories.