ray-pH / polybar-cava

CAVA module for polybar
MIT License
90 stars 6 forks source link
cava linux music-visualisation polybar polybar-scripts terminal

Simple CAVA (music visualization) module for polybar. Download cava.sh and put it on your config or module folder.

Screenshot
Aimated GIF

Dependencies:

On your polybar config, add these lines

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

change exec value to where you put cava.sh.

You can change the number of bar by modifying the cava config section in cava.sh.

[general]
bars = 10

You can also modify the label foreground like this

[module/cava]
label-foreground = #594751
Color changed

Usability in other status-bar application

The script cava.sh can be used in another status-bar app like Waybar. In theory, any app that can display unicode characters can use the script. cava.sh is a standalone script that does not require polybar and just outputting text (unicode). You can even try running it directly in the terminal to see the output.

[!NOTE] Example config for waybar is available in https://github.com/ray-pH/waybar-cava