#how do i make cava only receive one source of input?

8 messages · Page 1 of 1 (latest)

lament path
#

i already created a separate sink for spotify that reroutes the audio back to my main source

#

but i cant set it as the source for cava

#

im displaying cava through a script (which i mostly stole from someone else, but it works so)

#! /bin/sh

bar="▁▂▃▄▅▆▇█"
dict="s/;//g;"

# creating "dictionary" to replace char with bar
i=0
while [ $i -lt ${#bar} ]
do
    dict="${dict}s/$i/${bar:$i:1}/g;"
    i=$((i=i+1))
done

# write cava config
config_file="/tmp/polybar_cava_config"
echo "
[general]
autohide = true
hide-timeout = 1
exec-on-event = pkill -USR1 cava
bars = 10
bar_width = 0.5
autosens = 1
gravity = 250
sensitivity = 125
bar_spacing = 2
[output]
method = raw
source = SpotifySink.monitor
raw_target = /dev/stdout
data_format = ascii
ascii_max_range = 7
" > $config_file

# read stdout from cava
cava -p $config_file | while read -r line; do
    echo $line | sed $dict
done
#

any help is much appreciated :3

lament path
#

so

#

quick update

#

when i change the actual cava config file

#

to
method = pulse
source = SpotifySink.monitor