I'm basically a complete beginner when it comes to this stuff.
I'm trying to make a real time custom audio visualizer module that works with waybar. I haven't even touched real time processing yet, right now I just have a script that uses an already existing audio file. I just want to update waybar with this one singular visualization before trying to do real time stuff (and thank god I did). The only thing the module should be doing is basically displaying a bar graph with binned values I have that corresponds to a recording of audio I took.
I'm running Arch Linux, with sway and waybar.
My script is linked here. I also have my module here:
"custom/audiovisualizer": {
"format": "{data}",
"return-type": "json",
"exec": "python3 $HOME/scripts/visualizer.py",
"on-click": "pkill -SIGRTMIN+1 waybar",
"signal": 1
},
You can see my full config file here.
Here is the output I get when running waybar.
Here is the output I get when running waybar with -l trace.
Below I'm going to go through some things I tried that aren't already apparent:
Yes it has permissions to access the script
The script doesn't run (I have a print statement that never shows, although I don't know if it ever would)
I've run waybar in terminal, even with the -l trace mode on, and there was no useful errors other than the one in the title
I updated waybar 6 hours ago so it's working.
The configuration is added to the proper class (modules-center)
The script works fine when I run it myself, with no errors (produces the same output every time). It outputs proper json formatted data (shown below) {"data": "\u2588\u2582\u2581\u2581\u2581\u2581"}
The paths are all good and work
The script takes a fraction of a second to execute so it's not being killed prematurely.
What can I try next?