From c7a88a07b9287db9c129914483f6b3ae1ab5404c Mon Sep 17 00:00:00 2001 From: awy Date: Fri, 14 Nov 2025 23:43:38 +0300 Subject: init --- .config/rmpc/config.ron | 201 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 .config/rmpc/config.ron (limited to '.config/rmpc/config.ron') 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, + "": NextTab, + "": 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, + "": Down, + "": Left, + "": Right, + "": PaneUp, + "": PaneDown, + "": PaneLeft, + "": PaneRight, + "": UpHalf, + "N": PreviousResult, + "a": Add, + "A": AddAll, + "r": Rename, + "n": NextResult, + "g": Top, + "": Select, + "": InvertSelection, + "G": Bottom, + "": Confirm, + "i": FocusInput, + "J": MoveDown, + "": DownHalf, + "/": EnterSearch, + "": Close, + "": Close, + "K": MoveUp, + "D": Delete, + }, + queue: { + "D": DeleteAll, + "": Play, + "": 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))], + ), + ), + ], +) -- cgit v1.2.3