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

Cava has stopped working on Arch Linux #618

Open
Drakslab opened this issue Feb 15, 2025 · 2 comments
Open

Cava has stopped working on Arch Linux #618

Drakslab opened this issue Feb 15, 2025 · 2 comments

Comments

@Drakslab
Copy link

Drakslab commented Feb 15, 2025

I just installed a new Arch Linux just to test if the failure was my fault or a bug.

I use polybar and have a custom module for cava which has always work perfectly without having to mess with cava's configuration file.

For the last couple of weeks, cava is not working properly.

I use PulseAudio and unless I use the method = pulse, doesn't work.

But my cava custom module on polybar doesn't work no matter what I do.

This is the cava.sh file:

#! /bin/bash 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] bars = 10 [output] method = raw 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

This is the custom module:

[module/cava] type = custom/script tail = true exec = $HOME/.config/polybar/cava.sh format = <label> format-font = 5 label = %output%

@karlstav
Copy link
Owner

I can not help with polybar or your own custom modules. You said it worked before, go back and figure out when it stopped working, find what commit (if any) that broke it.

@nfowlie
Copy link

nfowlie commented Feb 18, 2025

@Drakslab possibly try re-installing sdl3
My arch somehow got the wrong version of this and it caused cava to not launch due to SDL_StretchSurface missing from sdl3.

A quick re-install might resolve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants