Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultIcon = ""
DefaultIcon is the Nerd Font codepoint used when the caller doesn't override Disk.Icon — fa-save.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disk ¶
type Disk struct {
Path string
Interval time.Duration
FG color.RGBA
BG color.RGBA
Icon string
// MountsPath / SwapsPath override /proc/mounts and /proc/swaps. Empty
// means the real procfs paths. Tests point these at fixture files.
MountsPath string
SwapsPath string
// contains filtered or unexported fields
}
Disk reports free space on the configured filesystem path (default "/") in GB. Uses statfs to avoid shelling out.
Click to show internal directories.
Click to hide internal directories.