refactor: rmpc

This commit is contained in:
2026-03-19 02:17:35 +03:00
parent 80cab05851
commit fd8c404856

View File

@@ -8,11 +8,12 @@
on_song_change: None,
volume_step: 5,
max_fps: 30,
scrolloff: 0,
wrap_navigation: false,
scrolloff: 100,
wrap_navigation: true,
enable_mouse: true,
status_update_interval_ms: 1000,
select_current_song_on_change: false,
directories_sort: ModifiedTime(reverse: true, group_by_type: true),
album_art: (
method: Auto,
max_size_px: (width: 1200, height: 1200),
@@ -28,11 +29,12 @@
".": VolumeUp,
"<Tab>": NextTab,
"<S-Tab>": PreviousTab,
"1": SwitchToTab("Queue"),
"2": SwitchToTab("Dirs"),
"3": SwitchToTab("Artists"),
"4": SwitchToTab("Albums"),
"5": SwitchToTab("Playlists"),
"1": SwitchToTab("󰐑 Queue"),
"2": SwitchToTab("󱍙 Dirs"),
"3": SwitchToTab("󰠃 Artists"),
"4": SwitchToTab("󰀥 Albums"),
"5": SwitchToTab("󰲸 Lists"),
"6": SwitchToTab("󰡦 Search"),
"q": Quit,
">": NextTrack,
"p": TogglePause,
@@ -113,7 +115,7 @@
),
tabs: [
(
name: "Queue",
name: "󰐑 Queue",
pane: Split(
direction: Vertical,
panes: [
@@ -123,21 +125,25 @@
),
),
(
name: "Dirs",
name: "󱍙 Dirs",
pane: Pane(Directories),
),
(
name: "Artists",
name: "󰠃 Artists",
pane: Pane(Artists),
),
(
name: "Albums",
name: "󰀥 Albums",
pane: Pane(Albums),
),
(
name: "Playlists",
name: "󰲸 Lists",
pane: Pane(Playlists),
),
(
name: "󰡦 Search",
pane: Pane(Search),
),
],
cava: (
framerate: 30, // default 60