Skip to content

Latest commit

 

History

History
68 lines (45 loc) · 2.15 KB

README.md

File metadata and controls

68 lines (45 loc) · 2.15 KB

A Different Audio Spectrum Analyzer

Previews.

Dependencies

Arch Linux

sudo pacman -S python-numpy python-pillow python-pyaudio python-websockets qt5-websockets qt5-3d 

Ubuntu

sudo apt-get install qml-module-qt3d qml-module-qt-websockets \
    python3-numpy python3-pyaudio python3-websockets python3-pil 

Installation

Via KDE Store

  1. Open the "Add Widgets" dialog of your desktop
  2. Go to "Get New Widgets" in the bottom
  3. Click "Download New Plasma Widgets"
  4. Search for "panon"
  5. Click "Install"

Via Command Line

git clone https://github.com/rbn42/panon.git
cd panon/kde
kpackagetool5 -t Plasma/Applet --install plasmoid

Via PKGBUILD

If you want to modify shaders, PKGBUILD is not a preferred solution right now

Drag panon widget to your panel (eg. latte-dock).

Shaders

Shaders are stored in kde/plasmoid/contents/shaders/. If you want to modify the shaders, you can start with solid.frag.

Providing panon is installed in your home directory, you can add your own shader files to ~/.local/share/plasma/plasmoids/panon/contents/shaders/. Panon can detect and load new shaders in this folder during runtime. The name of a shader file must be ended with ".frag".

Debugging Shaders

Neither KDE Panel nor Latte-Dock shows the errors caused by the shaders. To catch the error messages, plasma-sdk is required. To debug your shader, you must put your shader file in kde/plasmoid/contents/shaders/, and then start plasmoidviewer in a console.

cd ./kde/
#Providing `plasma-sdk` is installed
plasmoidviewer --applet ./plasmoid/

In plasmoidviewer, go to the configuration window and pick your own shader. Then plasmoidviewer will run your shader and show the errors, if exist, in the console.

Credits

Some code parts are adapted from PyVisualizer.