config

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Styles styles

Functions

This section is empty.

Types

type Colors

type Colors struct {
	CursorBackground         string `mapstructure:"cursor_background" default:"#5e8d87"`
	CursorForeground         string `mapstructure:"cursor_foreground" default:"#d7d8d9"`
	InactiveCursorBackground string `mapstructure:"inactive_cursor_background" default:"#686868"`
	InactiveCursorForeground string `mapstructure:"inactive_cursor_foreground" default:"#b7b8b9"`

	Foreground          string `mapstructure:"foreground" default:"#b7b8b9"`
	ForegroundAlternate string `mapstructure:"foreground_alternate" default:"#a0a0a0"`
	ActiveBorder        string `mapstructure:"active_border" default:"#5e8d87"`
	PassiveBorder       string `mapstructure:"passive_border" default:"#a0a0a0"`
}

type Configuration

type Configuration struct {
	LogPath  string `mapstructure:"log_path" default:""`
	LogLevel string `mapstructure:"log_level" default:"warn"`

	MpdHost     string  `mapstructure:"mpd_host" default:"127.0.0.1"`
	MpdPort     string  `mapstructure:"mpd_port" default:"6600"`
	MpdPassword string  `mapstructure:"mpd_password" default:""`
	Keys        Keys    `mapstructure:"keys"`
	Symbols     Symbols `mapstructure:"symbols"`
	Colors      Colors  `mapstructure:"colors"`

	MinColumnWidth int `mapstructure:"min_column_width" default:"90"`

	SkipSeconds int `mapstructure:"skip_seconds" default:"5"`
}
var Config Configuration

type GeneralKeys

type GeneralKeys struct {
	Quit                 string `mapstructure:"quit" default:"q"`
	GoToBeginning        string `mapstructure:"go_to_beginning" default:"g"`
	GoToEnd              string `mapstructure:"go_to_end" default:"G"`
	GoToNextMatch        string `mapstructure:"go_to_next_match" default:"n"`
	Up                   string `mapstructure:"up" default:"up"`
	Down                 string `mapstructure:"down" default:"down"`
	MoveItemUp           string `mapstructure:"move_item_up" default:"<"`
	MoveItemDown         string `mapstructure:"move_item_down" default:">"`
	RemoveItem           string `mapstructure:"remove_item" default:"delete"`
	SwitchColumn         string `mapstructure:"switch_column" default:"tab"`
	Search               string `mapstructure:"search" default:"/"`
	PlayNext             string `mapstructure:"play_next" default:"a"`
	Append               string `mapstructure:"append" default:"A"`
	Save                 string `mapstructure:"save_playlist" default:"s"`
	PlayToggle           string `mapstructure:"play_toggle" default:" "`
	Enter                string `mapstructure:"enter" default:"enter"`
	FolderUp             string `mapstructure:"folder_up" default:"backspace"`
	UpdateLibrary        string `mapstructure:"update_library" default:"u"`
	TogglePlaylistColumn string `mapstructure:"toggle_playlist_column" default:"shift+tab"`

	// skip 10s
	FastForward string `mapstructure:"fast_forward" default:"right"`
	Rewind      string `mapstructure:"rewind" default:"left"`

	Yank  string `mapstructure:"yank" default:"y"`
	Paste string `mapstructure:"paste" default:"p"`
}

type Keys

type Keys struct {
	General GeneralKeys `mapstructure:"general"`
	Queue   QueueKeys   `mapstructure:"queue"`
}

type QueueKeys

type QueueKeys struct {
	Clear string `mapstructure:"clear" default:"c"`
	Play  string `mapstructure:"play" default:"enter"`
}

type Symbols

type Symbols struct {
	Playing string `mapstructure:"playing" default:">"`
	Stopped string `mapstructure:"stopped" default:"#"`
	Paused  string `mapstructure:"paused" default:":"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL