You are not logged in.
Pages: 1
Hi,
I'm using Hyprland and I'm curious if there's a way on how to put the 'cava' into the waybar, to display the music output.
It would be really nice, but i don't know if it's even possible.
Thanks for your time.
Offline
Hi, and welcome to the forums,
https://github.com/Alexays/Waybar/wiki/Module:-Cava
Btw, how did you install Arch Linux?
Oh thanks, i din't find this one
.
I installed arch using archinstall.
I tried to put the example config to .config/waybar/conifg.jsonc, the one showed on the git, but i got the warning:
--------------------------------------------------------------------------------------------------------------------------
❯ wbr
[1] 2666
[2023-08-01 13:18:36.872] [info] Using configuration file /home/s/.config/waybar/config.jsonc
[2023-08-01 13:18:36.873] [info] Using CSS file /home/s/.config/waybar/style.css
[2023-08-01 13:18:36.886] [warning] module cava: Unknown module: cava
[2023-08-01 13:18:36.888] [info] Hyprland IPC starting
-------------------------------------------------------------------------------------------------------------------------
I have cava installed and in temrinal it's working. Any idea what could be the issue?
Thanks for help
Offline
Moving to Newbie Corner.
Offline
Please post your 'config.jsonc' using [ code ][ /code ] tags (without spaces)
{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 50,
"modules-left": [
"clock",
"cpu",
"memory",
"cava",
"wlr/workspaces"
],
"modules-center": [
"hyprland/window"
],
"modules-right": [
"network",
"battery",
"backlight",
"pulseaudio",
"pulseaudio#microphone",
"tray"
],
"hyprland/window": {
"format": "{}"
},
"wlr/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": [],
"7": [],
"8": [],
"9": [],
"10": []
}
},
"tray": {
"icon-size": 18,
"spacing": 10
},
"clock": {
"format": "{: %H:%M %a, %b %e}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu":{
"format": " {usage}%",
"on-click": "kitty -e htop",
"interval": 5
},
"memory" : {
"interval": 1,
"format": " {}%"
},
"cava": {
// "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
"framerate": 30,
"autosens": 1,
"sensitivity": 100,
"bars": 14,
"lower_cutoff_freq": 50,
"higher_cutoff_freq": 10000,
"method": "pulse",
"source": "auto",
"stereo": true,
"reverse": false,
"bar_delimiter": 0,
"monstercat": false,
"waves": false,
"noise_reduction": 0.77,
"input_delay": 2,
"format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
"actions": {
"on-click-right": "mode"
}
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["?", "?", "?"],
"on-scroll-up": "brightnessctl set 1%+",
"on-scroll-down": "brightnessctl set 1%-",
"min-length": 6
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["?", "?", "?", "?", "?", "?", "?", "?", "?", "?", "?"]
},
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": "?Muted",
"on-click": "pamixer -t",
"on-scroll-up": "pamixer -i 5",
"on-scroll-down": "pamixer -d 5",
"scroll-step": 5,
"on-click-right" : "pavucontrol"
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}%",
"format-source-muted": " Muted",
"on-click": "pamixer --default-source -t",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5
},
"network": {
"format-wifi": " {signalStrength}% | {bandwidthTotalBits}",
"format-ethernet": "{ipaddr}/{cidr}",
"tooltip-format": "{essid} - {ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP)",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}:{essid} {ipaddr}/{cidr}"
}
}Last edited by prosteSebastian (2023-08-01 11:46:24)
Offline
I'm not using the 'jsonc' format, but I would start troubleshooting it w/o the 'cava_config' line...
I've tried it w/o the config line, same result with 'Unknown module'
Offline
Apparently 'waybar' is built without cava support.
You could try 'waybar-hyprland-git' (AUR), or rebuild 'waybar' with cava support enabled...
EDIT: https://aur.archlinux.org/packages/wayb … d-cava-git
Last edited by dogknowsnx (2023-08-01 12:24:45)
The https://aur.archlinux.org/packages/wayb … d-cava-git is working,
thanks a lot and have a nice day
.
Offline
I wanted to update the package status if someone uses the search function and stumbles over this thread with a similar question:
The suggested package waybar-hyprland-cava-git is no longer maintained since a set of hypland widgets have been natively added to waybar.
Furthermore the CAVA module requires that you install libcava.
I setup two packages to overcome the issues: libcava installs cava as a library, waybar-cava installs waybar with all widgets including cava enabled. You do not have to install libcava manually, it comes as a dependency of the waybar-cava package.
One last note on the libcava package: it does not install the cli program cava. That is available via the AUR-package cava.
Last edited by mutoroglin (2023-12-12 10:10:16)
Offline
I tried waybar-cava, but cava acts strange in it (it's lagging and showing that all frequencies are max)
I wrote this script: https://github.com/jvc84/wayves
It can show cava in waybar (and polybar), also it can separate left and right channels into different modules and play different animations according to off/play/pause of mpris player
Offline
Pages: 1