feat: rmpc cava

This commit is contained in:
2025-10-05 15:30:58 +03:00
parent 4e688c7c83
commit c389bcf371
2 changed files with 47 additions and 10 deletions

View File

@@ -65,13 +65,13 @@
"<C-l>": PaneRight,
"<C-u>": UpHalf,
"N": PreviousResult,
"a": Add,
"A": AddAll,
"<Space>": Add,
"<C-Space>": AddAll,
"r": Rename,
"n": NextResult,
"g": Top,
"<Space>": Select,
"<C-Space>": InvertSelection,
"m": Select,
"M": InvertSelection,
"G": Bottom,
"<CR>": Confirm,
"i": FocusInput,
@@ -115,8 +115,11 @@
(
name: "Queue",
pane: Split(
direction: Horizontal,
panes: [(size: "100%", pane: Pane(Queue))],
direction: Vertical,
panes: [
(size: "60%", pane: Pane(Queue)),
(size: "40%", pane: Pane(Cava)),
],
),
),
(
@@ -136,5 +139,29 @@
pane: Pane(Playlists),
),
],
cava: (
framerate: 30, // default 60
autosens: true, // default true
sensitivity: 100, // default 100
bar_width: 1,
bar_spacing: 0,
lower_cutoff_freq: 50, // not passed to cava if not provided
higher_cutoff_freq: 10000, // not passed to cava if not provided
input: (
method: Fifo,
source: "/tmp/mpd.fifo",
sample_rate: 44100,
channels: 2,
sample_bits: 16,
),
smoothing: (
noise_reduction: 77, // default 77
monstercat: false, // default false
waves: false, // default false
),
// this is a list of floating point numbers thats directly passed to cava
// they are passed in order that they are defined
eq: []
),
)

View File

@@ -34,7 +34,7 @@
playlist_style: (fg: "magenta"),
),
level_styles: (
info: (fg: "blue", bg: "black"),
info: (fg: "cyan", bg: "blue"),
warn: (fg: "yellow", bg: "black"),
error: (fg: "red", bg: "black"),
debug: (fg: "light_green", bg: "black"),
@@ -42,12 +42,13 @@
),
progress_bar: (
symbols: ["🬋", "󰃚 ", "⠔"],
track_style: (),
track_style: (fg: "blue"),
elapsed_style: (fg: "blue"),
thumb_style: (fg: "blue"),
),
scrollbar: (
symbols: ["", "█", "", ""],
symbols: ["", "█", "", ""],
// symbols: ["│", "█", "▲", "▼"],
track_style: (fg: "black"),
ends_style: (fg: "black"),
thumb_style: (fg: "magenta"),
@@ -201,5 +202,14 @@
],
lyrics: (
timestamp: false
)
),
cava: (
bar_symbols: ['▁', '▂', '▃', '▄', '▅', '▆', '▇', '█'],
inverted_bar_symbols: ['▔', '🮂', '🮃', '▀', '🮄', '🮅', '🮆', '█'],
bar_width: 1, // width of a single bar in columns
bar_spacing: 1, // free space between bars in columns
orientation: Bottom,
bar_color: Single("blue"),
),
)