rmpc: Add minimal configuration

This commit is contained in:
Sanchayan Maity 2024-12-05 21:35:11 +05:30
parent 6c304556f8
commit ec79200972
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -0,0 +1,90 @@
#![enable(implicit_some)]
#![enable(unwrap_newtypes)]
#![enable(unwrap_variant_newtypes)]
(
address: "127.0.0.1:6600",
password: None,
theme: None,
cache_dir: None,
on_song_change: None,
volume_step: 5,
scrolloff: 0,
wrap_navigation: false,
enable_mouse: false,
status_update_interval_ms: 5000,
select_current_song_on_change: false,
album_art: (
method: None,
),
keybinds: (
global: {
":": CommandMode,
"s": Stop,
"<Tab>": NextTab,
"1": SwitchToTab("Queue"),
"2": SwitchToTab("Artists"),
"q": Quit,
">": NextTrack,
"p": TogglePause,
"<": PreviousTrack,
"~": ShowHelp,
"I": ShowCurrentSongInfo,
},
navigation: {
"<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,
"a": Add,
"A": AddAll,
"n": NextResult,
"g": Top,
"<Space>": Select,
"<C-Space>": InvertSelection,
"G": Bottom,
"<CR>": Confirm,
"i": FocusInput,
"J": MoveDown,
"<C-d>": DownHalf,
"/": EnterSearch,
"<C-c>": Close,
"<Esc>": Close,
"K": MoveUp,
},
queue: {
"D": DeleteAll,
"<CR>": Play,
"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"),
],
),
tabs: [
(
name: "Queue",
border_type: None,
pane: Pane(Queue),
),
(
name: "Artists",
border_type: None,
pane: Pane(Artists),
),
],
)