New Audio Visualizer widget for KDE Plasma 6, looking for name suggestions

Are you on plasma 5.27?

Sorry for the late reply but my laptop is crashing randomly when I try to run any VM and after hours troubleshooting it appears to be some kind of hardware issue…

But by looking at a similar issue someone reported for fedora I discovered that both debian and fedora need a different package that contains the QtWebsockets qml module, can you try installing it and restarting plasmashell?

Debian: qml6-module-qtwebsockets (https://packages.debian.org/unstable/qml6-module-qtwebsockets)

Fedora: qt6-qtwebsockets-devel (qt6-qtwebsockets-devel - Fedora Packages)

Edit: plasmashell can be restarted by running systemctl --user restart plasma-plasmashell.service

Not something I am interested (or have the time to do) right now, but if anyone wants to make one feel free to do so :slight_smile:

Someone is working on one already, I know basically nothing about nix packaging but if you or someone else does feel free to chime in here: kurve: init at 0.4.0 by chrisheib · Pull Request #421352 · NixOS/nixpkgs · GitHub :wink:

1 Like

No problem with late response. I’m not in any hurry :slight_smile:
May I suggest qemu for VM, or are you already using that?

I did have qml6-module-qtwebsockets installed.

I noticed the fedora issue on github. and I’m guessing it is the same problem. I’ll try to reinstall from git (with your latest commit) and see if it throws an error.

Yes, I am using qemu, even have gpu passtrough and it was working fine for years, turned out to be a bad memory stick, or so it seems at least for now that managed to run fedora for like an hour

Yes, it’s very likely the same thing, I assumed the package was like on arch and forgot that on other distros things tend to be more modular

What I found interesting/weird is that on fedora it required a devel package, installing on the vm pulled 1gb of dependencies but maybe that’s normal

This is what I get with latest commit:

Error: file:///home/eazy/.local/share/plasma/plasmoids/luisbocanegra.audio.visualizer/contents/ui/components/ProcessMonitorPrimary.qml:2 module "com.github.luisbocanegra.audiovisualizer.process" is not installed

file:///home/eazy/.local/share/plasma/plasmoids/luisbocanegra.audio.visualizer/contents/ui/components/ProcessMonitorFallback.qml:2 module "QtWebSockets" version 1.9 is not installed

❌ CAVA is not running
Widget version: 0.4.0
CAVA version: e]0;cavaacava
Using ProcessMonitorFallback: true
Widget install location: /home/eazy/.local/share/plasma/plasmoids/luisbocanegra.audio.visualizer/
Cava command:
cava -p /dev/stdin <<-EOF
[general]
framerate=60
bars=0
autosens=1
sensitivity=100
lower_cutoff_freq=50
higher_cutoff_freq=10000
[input]
method=pipewire
sample_rate=44100
sample_bits=16
channels=2
autoconnect=2
[output]
channels=mono
mono_option=average
reverse=0
method=raw
raw_target=/dev/stdout
data_format=ascii
ascii_max_range=100
[smoothing]
noise_reduction=77
monstercat=0
waves=0
[eq]
1=1
2=1
3=1
4=1
5=1
EOF


Great! That means QtWebSockets needs to be imported without version, can you try removing it from the ProcessMonitorFallback.qml manually and restarting plasmashell again?

import QtWebSockets // 1.9 <- remove this

By the way, the first error can be ignored if you don’t plan to install the C++ plugin, it will go away after at least one of the implementations manages to load (the websockets one in that case)

Removing “1.9” solves this.

Thank you for your help!!

1 Like

I’m not sure when but its in chaotic aur now. So a pre built pkg is there for anyone who wants it.

I love the widget! only wish i have is to be able to customize colors and remove the background. Would love to integrate this with my wallpaper!

Glad you liked it!

Colors are fully customizable from the widget settings (way too customizable I would say!), just look a this (Widget settings > visualizer tab):

The background can be removed when the widget is added to the Desktop (Widget settings > General tab > Transparent with or without shadow).

1 Like

wow im blind, couldnt find that, thank you! :heart:

1 Like