diff options
| author | awy <awy@awy.one> | 2025-11-14 23:43:38 +0300 |
|---|---|---|
| committer | awy <awy@awy.one> | 2025-11-14 23:43:38 +0300 |
| commit | c7a88a07b9287db9c129914483f6b3ae1ab5404c (patch) | |
| tree | 73c227c5e8519eb9135f46984e4fc067b316ed1b /.config/rmpc/config.ron | |
| download | mangoslice-c7a88a07b9287db9c129914483f6b3ae1ab5404c.tar.gz | |
init
Diffstat (limited to '.config/rmpc/config.ron')
| -rw-r--r-- | .config/rmpc/config.ron | 201 |
1 files changed, 201 insertions, 0 deletions
diff --git a/.config/rmpc/config.ron b/.config/rmpc/config.ron new file mode 100644 index 0000000..58b2f98 --- /dev/null +++ b/.config/rmpc/config.ron @@ -0,0 +1,201 @@ +#![enable(implicit_some)] +#![enable(unwrap_newtypes)] +#![enable(unwrap_variant_newtypes)] +( + address: "127.0.0.1:6600", + volume_step: 5, + scrolloff: 2, + max_fps: 60, + wrap_navigation: true, + theme: "def", + lyrics_dir: "/mnt/ssd/music", + on_song_change: ["~/.config/rmpc/scripts/statusbar"], + on_resize: None, + status_update_interval_ms: 1000, + enable_mouse: true, + enable_config_hot_reload: true, + album_art: ( + method: Auto, + max_size_px: (width: 0, height: 0), + vertical_align: Top, + horizontal_align: Center, + ), + keybinds: ( + global: { + ":": CommandMode, + ",": VolumeDown, + "s": Stop, + ".": VolumeUp, + "<Tab>": NextTab, + "<S-Tab>": PreviousTab, + "1": SwitchToTab("Queue"), + // "2": SwitchToTab("Directories"), + "2": SwitchToTab("Artists"), + "3": SwitchToTab("Albums"), + "4": SwitchToTab("Genres"), + "5": SwitchToTab("Playlists"), + "6": SwitchToTab("Search"), + "q": Quit, + ">": NextTrack, + "p": TogglePause, + "<": PreviousTrack, + "f": SeekForward, + "z": ToggleRepeat, + "x": ToggleRandom, + "c": ToggleConsume, + "v": ToggleSingle, + "b": SeekBack, + "~": ShowHelp, + "I": ShowCurrentSongInfo, + "O": ShowOutputs, + "P": ShowDecoders, + }, + 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, + "a": Add, + "A": AddAll, + "r": Rename, + "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, + "D": Delete, + }, + 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"), + ], + ), + tabs: [ + ( + name: "Queue", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "100%", + borders: "NONE", + pane: Split( + borders: "NONE", + direction: Horizontal, + panes: [ + ( + size: "70%", + borders: "ALL", + pane: Pane(Queue), + ), + ( + size: "30%", + borders: "ALL", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "75%", + borders: "NONE", + pane: Pane(AlbumArt), + ), + ( + size: "35%", + borders: "NONE", + pane: Split( + direction: Vertical, + panes: [ + ( + size: "100%", + pane: Pane(Lyrics), + ), + ] + ), + ), + ] + ), + ), + ] + ), + ), + ], + ), + ), + // ( + // name: "Directories", + // pane: Split( + // direction: Horizontal, + // panes: [(size: "100%", borders: "ALL", pane: Pane(Directories))], + // ), + // ), + ( + name: "Artists", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Artists))], + ), + ), + ( + name: "Albums", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Albums))], + ), + ), + ( + name: "Genres", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Browser(root_tag: "genre", separator: ";")))], + ), + ), + ( + name: "Playlists", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Playlists))], + ), + ), + ( + name: "Search", + pane: Split( + direction: Horizontal, + panes: [(size: "100%", borders: "ALL", pane: Pane(Search))], + ), + ), + ], +) |