diff options
Diffstat (limited to '.config/rmpc')
| -rw-r--r-- | .config/rmpc/config.ron | 84 | ||||
| -rw-r--r-- | .config/rmpc/theme.ron | 47 |
2 files changed, 131 insertions, 0 deletions
diff --git a/.config/rmpc/config.ron b/.config/rmpc/config.ron new file mode 100644 index 0000000..765d13b --- /dev/null +++ b/.config/rmpc/config.ron @@ -0,0 +1,84 @@ +#![enable(implicit_some)] +#![enable(unwrap_newtypes)] +#![enable(unwrap_variant_newtypes)] + +( + address: "127.0.0.1:6600", + max_fps: 180, + + music_dir: "/mnt/giga/music", + lyrics_dir: "/mnt/giga/music", + theme: "~/.config/rmpc/theme.ron", + + album_art: ( + method: Sixel, + max_size_px: (width: 1600, height: 1600), + ), + lyrics: ( + fetch: true, + ), + tabs: [ + ( + name: "Player", + pane: Split( + direction: Horizontal, + panes: [ + ( + size: "40%", + pane: Split( + direction: Vertical, + panes: [ + (size: "55%", pane: Pane(AlbumArt)), + (size: "45%", pane: Pane(Lyrics)), + ] + ) + ), + ( + size: "60%", + pane: Split( + direction: Vertical, + panes: [ + (size: "1", pane: Pane(QueueHeader())), + (size: "100%", pane: Pane(Queue)), + ] + ) + ), + ], + ), + ), + (name: "Files", pane: Pane(Directories)), + (name: "Artists", pane: Pane(Artists)), + (name: "Playlists", pane: Pane(Playlists)), + (name: "Search", pane: Pane(Search)), + ], + + keybinds: ( + global: { + "1": SwitchToTab("Player"), + "2": SwitchToTab("Files"), + "3": SwitchToTab("Artists"), + "4": SwitchToTab("Playlists"), + "5": SwitchToTab("Search"), + "/": SwitchToTab("Search"), + + "<Space>": TogglePause, + "+": VolumeUp, + "-": VolumeDown, + "n": NextTrack, + "b": PreviousTrack, + + "<Right>": SeekForward, + "<Left>": SeekBack, + ">": SeekForward, + "<": SeekBack, + + "r": ToggleRepeat, + "s": ToggleSingle, + "c": ToggleConsume, + "z": ToggleRandom, + }, + navigation: { + "Enter": Select, + }, + ), +) diff --git a/.config/rmpc/theme.ron b/.config/rmpc/theme.ron new file mode 100644 index 0000000..f23418a --- /dev/null +++ b/.config/rmpc/theme.ron @@ -0,0 +1,47 @@ +#![enable(implicit_some)] +#![enable(unwrap_newtypes)] +#![enable(unwrap_variant_newtypes)] + +( + show_song_table_header: true, + + song_table_format: [ + ( + prop: (kind: Property(Position)), + width: "3", + alignment: Right, + label: "#" + ), + ( + prop: (kind: Property(Title), default: (kind: Property(Filename))), + width: "45%", + alignment: Left, + label: "Title" + ), + ( + prop: (kind: Property(Artist), default: (kind: Text("Unknown"))), + width: "35%", + alignment: Left, + label: "Artist" + ), + ( + prop: (kind: Property(Duration)), + width: "15%", + alignment: Right, + label: "Time" + ), + ], + + text_color: None, + borders_style: (fg: "#4c566a"), + + highlighted_item_style: (fg: "#81a1c1", modifiers: "Bold"), + current_item_style: (fg: "#88c0d0", modifiers: "Bold | Reversed"), + + lyrics: ( + unplayed_style: (fg: "#4c566a"), + played_style: (fg: "#88c0d0", modifiers: "Bold"), + dir: "/mnt/giga/music/", + fetch: true, + ), +) |
