Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDir ¶
func ConfigDir() string
ConfigDir returns the abs-cli configuration directory path.
func EnsureExists ¶ added in v0.5.0
EnsureExists creates a default config file when path does not exist.
Types ¶
type Config ¶
type Config struct {
Player PlayerConfig `toml:"player"`
Theme ui.ThemeConfig `toml:"theme"`
Keybinds KeybindsConfig `toml:"keybinds"`
DeviceName string `toml:"device_name"`
DeviceID string `toml:"device_id"`
}
type KeybindsConfig ¶
type KeybindsConfig struct {
Quit string `toml:"quit"`
PlayPause string `toml:"play_pause"`
SeekForward string `toml:"seek_forward"`
SeekBackward string `toml:"seek_backward"`
NextInQueue string `toml:"next_in_queue"`
SpeedUp string `toml:"speed_up"`
SpeedDown string `toml:"speed_down"`
VolumeUp string `toml:"volume_up"`
VolumeDown string `toml:"volume_down"`
NextChapter string `toml:"next_chapter"`
PrevChapter string `toml:"prev_chapter"`
SleepTimer string `toml:"sleep_timer"`
Back string `toml:"back"`
}
type PlayerConfig ¶
Click to show internal directories.
Click to hide internal directories.