Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultPath ¶
DefaultPath returns the default config file path.
func WriteDefault ¶
WriteDefault writes a default config to path.
Types ¶
type AudioConfig ¶
type AudioConfig struct {
SampleRate int `toml:"sample_rate" comment:"Output sample rate in Hz. 44100 is a safe default."`
ResampleQuality int `` /* 209-byte string literal not displayed */
BufferMs int `toml:"buffer_ms" comment:"Speaker buffer size in milliseconds (lower = lower latency, higher = more stable)."`
}
AudioConfig holds audio-related settings.
type CacheConfig ¶
type CacheConfig struct {
Dir string `toml:"dir" comment:"Base directory where cache files are stored"`
}
type Config ¶
type Config struct {
Audio AudioConfig `toml:"audio"`
MPRIS MPRISConfig `toml:"mpris"`
TUI TUIConfig `toml:"tui"`
Lyrics LyricsConfig `toml:"lyrics"`
Cache CacheConfig `toml:"cache"`
}
Config is the root configuration object.
type LrcLibCacheConfig ¶
type LrcLibCacheConfig struct {
Enabled bool `toml:"enabled" comment:"Enable on-disk cache for lyrics"`
}
type LrcLibConfig ¶
type LrcLibConfig struct {
Enabled bool `toml:"enabled" comment:"Enable lrclib.net integration for obtaining lyrics."`
Cache LrcLibCacheConfig `toml:"cache"`
}
type LyricsConfig ¶
type LyricsConfig struct {
LrcLib LrcLibConfig `toml:"lrclib"`
}
type MPRISConfig ¶
type MPRISConfig struct {
Enabled bool `toml:"enabled" comment:"Enable DBus/MPRIS integration for media controls."`
}
MPRISConfig holds DBus/MPRIS integration settings.
type TUIConfig ¶
type TUIConfig struct {
FPS int `toml:"FPS" comment:"Frames per second for the terminal UI (1-120)."`
ArtworkAspect float64 `toml:"artwork_aspect" comment:"Artwork box width/height ratio for terminal cells (e.g., 2.0 looks square on most fonts)."`
BrowserHome string `toml:"browser_home" comment:"Default directory of music browser"`
Theme ThemeConfig `toml:"theme"`
}
type ThemeConfig ¶ added in v0.9.3
type ThemeConfig struct {
Primary string `toml:"primary" comment:"Main accent color (e.g., highlighting selected items)"`
Secondary string `toml:"secondary" comment:"Secondary accent color (e.g., search highlights, minor elements)"`
Muted string `toml:"muted" comment:"Faded or dimmed text"`
Highlight string `toml:"highlight" comment:"Highlight color"`
Info string `toml:"info" comment:"Info indications"`
Danger string `toml:"danger" comment:"Danger indications"`
Warning string `toml:"warning" comment:"Warning indications"`
Working string `toml:"working" comment:"Working indications"`
}
Click to show internal directories.
Click to hide internal directories.