Created a Cli-Visualizer tweaker... (alt for CAVA)

Hola Mabox Linux lovers…

About 7 months ago (using/testing it since), I have been developing a GUI tweaker for Cli-visualizer an alternative to CAVA.
The tweaker adjusts the most basic settings to customize the look and feel of the visualizer.
Switch between Spectrum, Lorenz and Ellipse.

On GITLAB cli-visualizer_yad more info and Install.sh script, to install everything in one go.

There is also a script to uninstall it. (except config files).

Let me know if there is something that could be improved.

:bird:

3 Likes

Wow! This looks very interesting.

I’ll install and test it in a few days when I get home from a short vacation out of town and mostly offline :slight_smile:

2 Likes

MB-SETVAR was corrupted.
Somehow I changed the config path.

Uploaded the original mb-setvar on Gitlab.

Or simply delete it from $HOME/bin dir and use system /usr/bin/mb-setvar.

:bird:

1 Like

Small comment / changes gitlab:

muzlabz cli-visualizer_yad

I removed mb-setvar from install script. The install is now only for Mabox.

:bird:

FUN fact: :carousel_horse:

Changing these characters is playing with transparancy.

:bird:

1 Like

I just installed it, impressive and lot to explore :slight_smile:

1 Like

I would like to change the character part.
But not sure if yad would allow it. (dynamic input)

  • When choosing one of the visualizers, only the character dropdown of that visualizer is shown for selecting a character.
    This makes the window a wee bit shorter.

  • Choosing a yad icon is a chalange (icon themes).
    But probably thats a common thing to deal with.
    For the rest i am quite happy with it…

R for refresh is not alway’s working. Not sure why yet… Not a big thing though.

:bird:

Question:

I have a glitch with the visualizer. I am using Pipewire.
Do you experience the same?
I hope it’s only me…

Video example vimeo

:bird:

Hi @muzqs
I don’t see glitches.

Maybe it is a good idea to run killall -USR1 vis after every Save settings. It should reload config without need to press r manually…

Thanks.
Updated gitlab with these changes. Good one.
The r is a thing of vis itself, but indeed not needed.

Good to hear the Glitch is just me…

:bird:

I haven’t checked the updated script, but looking at the commit it seems that starting transparent-vis is unnecessary.

killall -USR1 vis is not killing vis process, it is just hint to vis to reload its config.

1 Like

I understand your point, but…

When using killall -USR1 vis it changes the conf indeed but also kills transparent-vis.sh.

That’s why it needs to restart, i think.

Comment:
Reload (R) was working for some settings (like changing visualizer).
The behaviour was that it kept running after the reload.
But, like color settings did’t work with reload.

last update: The same as before, but combined.

# restarting
restart_vis() {
    killall -USR1 vis
    transparent-vis.sh 200 & 
}

PART OF CODE.

echo "Settings saved to $CONFIG_FILE."
        notify-send -i games-config-custom -t 5000 "VIS settings saved"
        
        # Save settings
        restart_vis
        get_settings

    elif [ $button -eq 1 ]; then
        # Genarate Random colors
        generate_colors 
        restart_vis 
        get_settings

    elif [ $button -eq 2 ]; then
        # Execute the script for choosing a fixed theme
        yad-select-file.sh 
        restart_vis
        get_settings

    elif [ $button -eq 4 ]; then
        # Give name to theme
        rename-vis-colors.sh    
        get_settings

    elif [ $button -eq 5 ]; then
        # Create theme with yad color pick
        vis-yad-colors.sh 
        restart_vis
        get_settings

    else
        echo "Operation canceled."
    fi
}

EXPECTED BEHAVIOUR ?

  • After config value changes, using killall -USR1 vis,
    will reload config and rerun transparent-vis.sh with new changes.

:bird:

Double check this :slight_smile:
killall -USR1 vis does not kill anything, just force vis process to reload its config - it is the same as pressing r.
see vis readme about reloading config

I use this signal a lot in my scripts

1 Like

:slight_smile: I understand. Maybe my writing is not right.

But when i use only the killall -USR1 vis command it closes vis-transparent.sh.

  • When removing part transparent-vis.sh 200.
    transparent-vis.sh does not reload as it should. (it kills itself)

Need some time to investicate… Thanks for the feedback.

:bird:

I think i found the bug. Looks like a bug.

$ vis -c ~/.config/vis/mb-vis-config

output
$ Invalid settings visualizer.spectrum.falloff.weight=0

but the mb-vis-config gives the right value.

visualizer.spectrum.falloff.weight=0.93

Terminator? doesn’t read .9+, the dot and everything behind the dot ..
I use these directions.

Readme comment.
##best 0.9+ and small changes in this value can have a large effect. Defaults to 0.95

It changes the config, but because of the error terminator kills itself.
I cannot solf this error. (bug)

For now restart transparent-vis.sh seems a work around.

:bird:

update:

#Monster cat smoothing is inspired by the monster cat youtube channel (https://www.youtube.com/user/MonstercatMedia). 
#To control the amount of smoothing for montercat use visualizer.monstercat.smoothing.factor. 
#The default smoothing factor for monstercat is 1.5. Increase the smoothing factor by a lot could hurt performance.
visualizer.monstercat.smoothing.factor=1.5

I added this to the config. And the glitching is gone. :slight_smile: