Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ray-pH/polybar-cava
CAVA module for polybar
https://github.com/ray-pH/polybar-cava
cava linux music-visualisation polybar polybar-scripts terminal
Last synced: 3 months ago
JSON representation
CAVA module for polybar
- Host: GitHub
- URL: https://github.com/ray-pH/polybar-cava
- Owner: ray-pH
- License: mit
- Created: 2021-04-08T16:33:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-27T14:10:19.000Z (7 months ago)
- Last Synced: 2024-06-10T00:38:17.839Z (5 months ago)
- Topics: cava, linux, music-visualisation, polybar, polybar-scripts, terminal
- Language: Shell
- Homepage:
- Size: 533 KB
- Stars: 86
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple [CAVA](https://github.com/karlstav/cava) (music visualization) module for [polybar](https://github.com/polybar/polybar). Download `cava.sh` and put it on your config or module folder.
Screenshot
Aimated GIF
Dependencies:
- CAVA
- polybar
- font that support unicode U+2581 to U+2588 (▁▂▃▄▅▆▇█). Most [unicode fonts](https://en.wikipedia.org/wiki/Unicode_font) should support these charactersOn your polybar config, add these lines
```ini
[module/cava]
type = custom/script
tail = true
exec = $HOME/.config/polybar/cava.sh
format =
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](https://github.com/ray-pH/waybar-cava)