Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting color bledding on the edge of cava module(custom) #3550

Open
Ace-c opened this issue Aug 30, 2024 · 0 comments
Open

I'm getting color bledding on the edge of cava module(custom) #3550

Ace-c opened this issue Aug 30, 2024 · 0 comments
Labels
bug Something isn't working cava custom

Comments

@Ace-c
Copy link

Ace-c commented Aug 30, 2024

2024-08-22-184852_hyprshot

This is not only with cava, It's also with the workspace, maybe the animation cause problems.

Here's my script for cava :

#! /bin/bash
is_cava_ServerExist=`ps -ef|grep -m 1 cava|grep -v "grep"|wc -l`
if [ "$is_cava_ServerExist" = "0" ]; then
	echo "cava_server not found" > /dev/null 2>&1
#	exit;
elif [ "$is_cava_ServerExist" = "1" ]; then
  killall cava
fi

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

# make sure to clean pipe
pipe="/tmp/cava.fifo"
if [ -p $pipe ]; then
    unlink $pipe
fi
mkfifo $pipe

# write cava config
config_file="/tmp/waybar_cava_config"
echo "
[general]
bars = 20
[output]
method = raw
raw_target = $pipe
noise_reduction = 0.7
data_format = ascii
ascii_max_range = 5
" > $config_file

# run cava in the background
cava -p $config_file &

# reading data from fifo
while read -r cmd; do
    echo $cmd | sed $dict
done < $pipe

I also tried Inbuilt cava module but same Issue...

@github-actions github-actions bot added bug Something isn't working cava custom labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cava custom
Projects
None yet
Development

No branches or pull requests

1 participant