Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIcons = Icons{
High: "\U000f057e",
Medium: "\U000f0580",
Low: "\U000f057f",
Zero: "\U000f057f",
Mute: "\U000f0581",
Bluetooth: "",
}
DefaultIcons is the Nerd Font codepoint set used when the caller doesn't override Audio.Icons. Mute matches Waybar's `format-muted`.
Functions ¶
This section is empty.
Types ¶
type Audio ¶
type Audio struct {
Interval time.Duration
FG color.RGBA
BG color.RGBA
MutedFG color.RGBA
Icons Icons
MaxDescRune int // max characters of a bluetooth device description (0 = no limit)
// contains filtered or unexported fields
}
Audio shells out to wpctl (PipeWire) to read the default sink's volume, mute state and — when relevant — the bluetooth device name.
func (*Audio) HoverText ¶
HoverText returns extra details about the current audio sink. For Bluetooth sinks it shows the untruncated device name, BlueZ-reported battery percentage (when published) and volume; for regular sinks it returns "" (no popup) since everything the segment shows is already visible. Implements module.Hoverable.
Click to show internal directories.
Click to hide internal directories.