Init
This commit is contained in:
commit
367711b7a1
6 changed files with 664 additions and 0 deletions
159
rmpc/config.ron
Normal file
159
rmpc/config.ron
Normal file
|
@ -0,0 +1,159 @@
|
|||
#![enable(implicit_some)]
|
||||
#![enable(unwrap_newtypes)]
|
||||
#![enable(unwrap_variant_newtypes)]
|
||||
(
|
||||
address: "127.0.0.1:6600",
|
||||
password: None,
|
||||
theme: Some("nnwhen"),
|
||||
cache_dir: Some("~/.cache/rmpc/"),
|
||||
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: Top,
|
||||
horizontal_align: Center,
|
||||
),
|
||||
keybinds: (
|
||||
global: {
|
||||
"q": Quit,
|
||||
":": CommandMode,
|
||||
"?": ShowHelp,
|
||||
"I": ShowCurrentSongInfo,
|
||||
|
||||
"<": PreviousTrack,
|
||||
">": NextTrack,
|
||||
"p": PreviousTrack,
|
||||
"n": NextTrack,
|
||||
".": SeekForward,
|
||||
",": SeekBack,
|
||||
"<Space>": TogglePause,
|
||||
"[": VolumeDown,
|
||||
"]": VolumeUp,
|
||||
"-": VolumeDown,
|
||||
"=": VolumeUp,
|
||||
// "s": Stop,
|
||||
|
||||
"x": ToggleRandom,
|
||||
"v": ToggleSingle,
|
||||
// "O": ShowOutputs,
|
||||
// "z": ToggleRepeat,
|
||||
// "c": ToggleConsume,
|
||||
// "P": ShowDecoders,
|
||||
|
||||
"<Tab>": NextTab,
|
||||
"<S-Tab>": PreviousTab,
|
||||
"L": NextTab,
|
||||
"H": PreviousTab,
|
||||
"z": SwitchToTab("Queue"),
|
||||
"1": SwitchToTab("Queue"),
|
||||
"2": SwitchToTab("Artists"),
|
||||
"3": SwitchToTab("Albums"),
|
||||
"4": SwitchToTab("Playlists"),
|
||||
"5": SwitchToTab("Search"),
|
||||
// "4": SwitchToTab("Album Artists"),
|
||||
// "2": SwitchToTab("Directories"),
|
||||
},
|
||||
navigation: {
|
||||
"<C-c>": Close,
|
||||
"<Esc>": Close,
|
||||
"i": FocusInput,
|
||||
"/": EnterSearch,
|
||||
"r": Rename,
|
||||
|
||||
"a": Add,
|
||||
"A": AddAll,
|
||||
|
||||
"g": Top,
|
||||
"G": Bottom,
|
||||
"k": Up,
|
||||
"j": Down,
|
||||
"h": Left,
|
||||
"l": Right,
|
||||
|
||||
"K": MoveUp,
|
||||
"J": MoveDown,
|
||||
"D": Delete,
|
||||
|
||||
"<C-k>": PaneUp,
|
||||
"<C-j>": PaneDown,
|
||||
"<C-h>": PaneLeft,
|
||||
"<C-l>": PaneRight,
|
||||
"<C-u>": UpHalf,
|
||||
"<C-d>": DownHalf,
|
||||
|
||||
"w": NextResult,
|
||||
"W": PreviousResult,
|
||||
"s": Select,
|
||||
"<C-s>": InvertSelection,
|
||||
"<CR>": Confirm,
|
||||
},
|
||||
queue: {
|
||||
"D": DeleteAll,
|
||||
"<CR>": Play,
|
||||
"<C-s>": Save,
|
||||
"a": AddToPlaylist,
|
||||
"d": Delete,
|
||||
"i": ShowInfo,
|
||||
"C": JumpToCurrent,
|
||||
},
|
||||
),
|
||||
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: Horizontal,
|
||||
panes: [(size: "75%", pane: Pane(Queue)), (size: "25%", pane: Pane(AlbumArt))],
|
||||
),
|
||||
),
|
||||
// (
|
||||
// name: "Directories",
|
||||
// pane: Pane(Directories),
|
||||
// ),
|
||||
(
|
||||
name: "Artists",
|
||||
pane: Pane(Artists),
|
||||
),
|
||||
// (
|
||||
// name: "Album Artists",
|
||||
// pane: Pane(AlbumArtists),
|
||||
// ),
|
||||
(
|
||||
name: "Albums",
|
||||
pane: Pane(Albums),
|
||||
),
|
||||
(
|
||||
name: "Playlists",
|
||||
pane: Pane(Playlists),
|
||||
),
|
||||
(
|
||||
name: "Search",
|
||||
pane: Pane(Search),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue