168 lines
4.9 KiB
Plaintext
168 lines
4.9 KiB
Plaintext
#![enable(implicit_some)]
|
|
#![enable(unwrap_newtypes)]
|
|
#![enable(unwrap_variant_newtypes)]
|
|
(
|
|
address: "127.0.0.1:6600",
|
|
password: "kapuchinamusica",
|
|
theme: "kolinux",
|
|
cache_dir: None,
|
|
on_song_change: None,
|
|
volume_step: 5,
|
|
max_fps: 30,
|
|
scrolloff: 0,
|
|
wrap_navigation: false,
|
|
enable_mouse: true,
|
|
status_update_interval_ms: 1000,
|
|
select_current_song_on_change: false,
|
|
album_art: (
|
|
method: Auto,
|
|
max_size_px: (width: 1200, height: 1200),
|
|
disabled_protocols: ["http://", "https://"],
|
|
vertical_align: Center,
|
|
horizontal_align: Center,
|
|
),
|
|
keybinds: (
|
|
global: {
|
|
":": CommandMode,
|
|
",": VolumeDown,
|
|
"s": Stop,
|
|
".": VolumeUp,
|
|
"<Tab>": NextTab,
|
|
"<S-Tab>": PreviousTab,
|
|
"1": SwitchToTab("Queue"),
|
|
"2": SwitchToTab("Dirs"),
|
|
"3": SwitchToTab("Artists"),
|
|
"4": SwitchToTab("Albums"),
|
|
"5": SwitchToTab("Playlists"),
|
|
"q": Quit,
|
|
">": NextTrack,
|
|
"p": TogglePause,
|
|
"<": PreviousTrack,
|
|
"f": SeekForward,
|
|
"z": ToggleRepeat,
|
|
"x": ToggleRandom,
|
|
"c": ToggleConsumeOnOff,
|
|
"v": ToggleSingleOnOff,
|
|
"b": SeekBack,
|
|
"~": ShowHelp,
|
|
"I": ShowCurrentSongInfo,
|
|
"O": ShowOutputs,
|
|
"P": ShowDecoders,
|
|
"R": AddRandom,
|
|
},
|
|
navigation: {
|
|
"k": Up,
|
|
"j": Down,
|
|
"h": Left,
|
|
"l": Right,
|
|
"<Up>": Up,
|
|
"<Down>": Down,
|
|
"<Left>": Left,
|
|
"<Right>": Right,
|
|
"<C-k>": PaneUp,
|
|
"<C-j>": PaneDown,
|
|
"<C-h>": PaneLeft,
|
|
"<C-l>": PaneRight,
|
|
"<C-u>": UpHalf,
|
|
"N": PreviousResult,
|
|
"<Space>": Add,
|
|
"<C-Space>": AddAll,
|
|
"r": Rename,
|
|
"n": NextResult,
|
|
"g": Top,
|
|
"m": Select,
|
|
"M": InvertSelection,
|
|
"G": Bottom,
|
|
"<CR>": Confirm,
|
|
"i": FocusInput,
|
|
"J": MoveDown,
|
|
"<C-d>": DownHalf,
|
|
"/": EnterSearch,
|
|
"<C-c>": Close,
|
|
"<Esc>": Close,
|
|
"K": MoveUp,
|
|
"D": Delete,
|
|
},
|
|
queue: {
|
|
"D": DeleteAll,
|
|
"<CR>": Play,
|
|
"<C-s>": Save,
|
|
"a": AddToPlaylist,
|
|
"d": Delete,
|
|
"i": ShowInfo,
|
|
"o": JumpToCurrent,
|
|
"Z": Shuffle
|
|
},
|
|
),
|
|
search: (
|
|
case_sensitive: false,
|
|
mode: Contains,
|
|
tags: [
|
|
(value: "any", label: "Any Tag"),
|
|
(value: "artist", label: "Artist"),
|
|
(value: "album", label: "Album"),
|
|
(value: "albumartist", label: "Album Artist"),
|
|
(value: "title", label: "Title"),
|
|
(value: "filename", label: "Filename"),
|
|
(value: "genre", label: "Genre"),
|
|
],
|
|
),
|
|
artists: (
|
|
album_display_mode: SplitByDate,
|
|
album_sort_by: Date,
|
|
),
|
|
tabs: [
|
|
(
|
|
name: "Queue",
|
|
pane: Split(
|
|
direction: Vertical,
|
|
panes: [
|
|
(size: "60%", pane: Pane(Queue)),
|
|
(size: "40%", pane: Pane(Cava)),
|
|
],
|
|
),
|
|
),
|
|
(
|
|
name: "Dirs",
|
|
pane: Pane(Directories),
|
|
),
|
|
(
|
|
name: "Artists",
|
|
pane: Pane(Artists),
|
|
),
|
|
(
|
|
name: "Albums",
|
|
pane: Pane(Albums),
|
|
),
|
|
(
|
|
name: "Playlists",
|
|
pane: Pane(Playlists),
|
|
),
|
|
],
|
|
cava: (
|
|
framerate: 30, // default 60
|
|
autosens: true, // default true
|
|
sensitivity: 100, // default 100
|
|
bar_width: 1,
|
|
bar_spacing: 0,
|
|
lower_cutoff_freq: 50, // not passed to cava if not provided
|
|
higher_cutoff_freq: 10000, // not passed to cava if not provided
|
|
input: (
|
|
method: Fifo,
|
|
source: "/tmp/mpd.fifo",
|
|
sample_rate: 44100,
|
|
channels: 2,
|
|
sample_bits: 16,
|
|
),
|
|
smoothing: (
|
|
noise_reduction: 77, // default 77
|
|
monstercat: false, // default false
|
|
waves: false, // default false
|
|
),
|
|
// this is a list of floating point numbers thats directly passed to cava
|
|
// they are passed in order that they are defined
|
|
eq: []
|
|
),
|
|
)
|
|
|