waveterm icon indicating copy to clipboard operation
waveterm copied to clipboard

[Bug]: Cava decolouration

Open insideoutsidein opened this issue 7 months ago • 0 comments

Current Behavior

When using cava as a command as a custom widget, it doesn't work for me. Using bash -lic cava does, however. The issue is when cava is no longer the active terminal, the colour changes quite drastically.

Expected Behavior

I don't expect cava to change colour so drastically, and I'm not sure if that's a cava issue or a wave issue, or some incompatibility

Steps To Reproduce

  1. Use waveterm
  2. Add this widget:
    "cava": {
        "icon": "chart-simple",
        "label": "cava",
        "blockdef": {
            "meta": {
                "view": "term",
                "controller": "cmd",
                "cmd": "bash -lic cava"
            }
        }
    }
  1. Add this into your cava config:
[color]
# vertical rainbow gradient (bottom → top)
gradient           = 1
gradient_color_1   = '#8B00FF'   # violet (lowest)
gradient_color_2   = '#0000FF'   # blue
gradient_color_3   = '#00FFFF'   # cyan
gradient_color_4   = '#00FF00'   # green
gradient_color_5   = '#FFFF00'   # yellow
gradient_color_6   = '#FF7F00'   # orange
gradient_color_7   = '#FF0000'   # red (highest)
  1. Run the widget
  2. Click on a different terminal
  3. Done

Wave Version

v0.11.3

Platform

Linux

OS Version/Distribution

Zorin OS 17.3

Architecture

x64

Anything else?

Here is the before:

Image

Here is the after:

Image

Questionnaire

  • [x] I'm interested in fixing this myself but don't know where to start
  • [ ] I would like to fix and I have a solution
  • [ ] I don't have time to fix this right now, but maybe later

insideoutsidein avatar Jul 29 '25 21:07 insideoutsidein