This commit is contained in:
Viktar Lukashonak
2026-07-21 15:17:55 +03:00
parent 456f78ecb1
commit 5bd3cd4805
5 changed files with 26 additions and 20 deletions
+19 -11
View File
@@ -102,6 +102,14 @@ libcava lives in:
:[ integer :[ integer
:[ 0 :[ 0
:[ Delimiter placed between bars in the raw output. Use a decimal ASCII value (e.g. 59 = ";"). 0 means no delimiter. :[ Delimiter placed between bars in the raw output. Use a decimal ASCII value (e.g. 59 = ";"). 0 means no delimiter.
|[ *data_format*
:[ string
:[ ascii
:[ Raw data format. Can be 'binary' or 'ascii'. **Raw frontend only.**
|[ *raw_target*
:[ string
:[
:[ Raw output target. A fifo will be created if target does not exist. **Raw frontend only.**
|[ *monstercat* |[ *monstercat*
:[ bool :[ bool
:[ false :[ false
@@ -114,14 +122,6 @@ libcava lives in:
:[ double :[ double
:[ 0.77 :[ 0.77
:[ Smoothing factor between 0.0 and 1.0. Higher values produce slower, smoother animation; lower values are more reactive but noisy. :[ Smoothing factor between 0.0 and 1.0. Higher values produce slower, smoother animation; lower values are more reactive but noisy.
|[ *gravity*
:[ integer
:[
:[ Gravity factor. Higher values make bars fall faster. When *noise_reduction* is set, this is derived automatically.
|[ *integral*
:[ integer
:[
:[ Integral smoothing factor. Higher values produce smoother but less precise animation. When *noise_reduction* is set, this is derived automatically.
|[ *input_delay* |[ *input_delay*
:[ integer :[ integer
:[ 4 :[ 4
@@ -162,6 +162,14 @@ libcava lives in:
:[ integer :[ integer
:[ :[
:[ GLSL frontend height in pixels. **GLSL only.** :[ GLSL frontend height in pixels. **GLSL only.**
|[ *min-length*
:[ integer
:[
:[ Requested width of the GLSL widget in pixels. If not set, falls back to *max-length*, then *sdl_width*. **GLSL only.**
|[ *max-length*
:[ integer
:[
:[ Fallback width of the GLSL widget if *min-length* is not set. **GLSL only.**
|[ *vertex_shader* |[ *vertex_shader*
:[ string :[ string
:[ :[
@@ -185,11 +193,11 @@ libcava lives in:
|[ *gradient* |[ *gradient*
:[ integer :[ integer
:[ 0 :[ 0
:[ Enable gradient mode (0 = off, 1 = on). **GLSL only; set in the *[color]* section of the cava configuration file.** :[ Enable gradient mode (0 = off, 1 = on). **GLSL only.** Can also be set in the *[color]* section of the cava configuration file.
|[ *gradient_count* |[ *gradient_count*
:[ integer :[ integer
:[ 0 :[ 0
:[ Number of gradient colors (up to 8). **GLSL only; set in the *[color]* section of the cava configuration file.** :[ Number of gradient colors (up to 8). **GLSL only.** Can also be set in the *[color]* section of the cava configuration file.
|[ *gradient_color_N* |[ *gradient_color_N*
:[ string :[ string
:[ :[
@@ -625,7 +633,7 @@ vertex_shader = pass_through.vert
fragment_shader = bar_spectrum.frag fragment_shader = bar_spectrum.frag
; for glsl output mode, keep rendering even if no audio ; for glsl output mode, keep rendering even if no audio
continuous_rendering = 1; continuous_rendering = 1
# disable console blank (screen saver) in tty # disable console blank (screen saver) in tty
# (Not supported on FreeBSD) # (Not supported on FreeBSD)
+1 -1
View File
@@ -538,7 +538,7 @@ else
endif endif
cava = dependency('libcava', cava = dependency('libcava',
version : '>=0.10.7', version : '>=1.0.0',
required: get_option('cava'), required: get_option('cava'),
fallback : ['libcava', 'cava_dep'], fallback : ['libcava', 'cava_dep'],
not_found_message: 'cava is not found. Building waybar without cava') not_found_message: 'cava is not found. Building waybar without cava')
+2 -2
View File
@@ -6,13 +6,13 @@
}: }:
let let
libcava = rec { libcava = rec {
version = "0.10.7"; version = "1.0.0";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "LukashonakV"; owner = "LukashonakV";
repo = "cava"; repo = "cava";
# NOTE: Needs to match the cava.wrap # NOTE: Needs to match the cava.wrap
tag = "${version}"; tag = "${version}";
hash = "sha256-zkyj1vBzHtoypX4Bxdh1Vmwh967DKKxN751v79hzmgQ="; hash = "sha256-0r5aAmTs+FcmS501tNYKxG9H+Pq6i32BDRBEjWW6M74=";
}; };
}; };
in in
-2
View File
@@ -262,8 +262,6 @@ void waybar::modules::cava::CavaBackend::loadConfig() {
new_prm.xaxis = ::cava::xaxis_scale::NONE; new_prm.xaxis = ::cava::xaxis_scale::NONE;
new_prm.mono_opt = ::cava::AVERAGE; new_prm.mono_opt = ::cava::AVERAGE;
new_prm.autobars = 0; new_prm.autobars = 0;
if (cfg["gravity"].isInt()) new_prm.gravity = cfg["gravity"].asInt();
if (cfg["integral"].isInt()) new_prm.integral = cfg["integral"].asInt();
if (cfg["framerate"].isInt()) new_prm.framerate = cfg["framerate"].asInt(); if (cfg["framerate"].isInt()) new_prm.framerate = cfg["framerate"].asInt();
if (cfg["autosens"].isInt()) new_prm.autosens = cfg["autosens"].asInt(); if (cfg["autosens"].isInt()) new_prm.autosens = cfg["autosens"].asInt();
+4 -4
View File
@@ -4,9 +4,9 @@
#depth = 1 #depth = 1
[wrap-file] [wrap-file]
directory = cava-0.10.7 directory = cava-1.0.0
source_url = https://github.com/LukashonakV/cava/archive/0.10.7.tar.gz source_url = https://github.com/LukashonakV/cava/archive/1.0.0.tar.gz
source_filename = cava-0.10.7.tar.gz source_filename = cava-1.0.0.tar.gz
source_hash = 50cc6413e9c96c503657f814744a2baf429a24ff9fed31a8343e0ed285269eff source_hash = 437df0a29e52e555357a06238f4c5cbe6d51b5dd4225700cb7adbb19d8bb9474
[provide] [provide]
libcava = cava_dep libcava = cava_dep