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: []
),
)