mirror of
https://codeberg.org/mdkcore/plasma-widget-tutorial.git
synced 2026-11-28 08:45:19 +00:00
No description
- C++ 40.1%
- CMake 32.2%
- QML 22%
- Just 5.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| cmake | ||
| package | ||
| resources | ||
| .gitignore | ||
| Justfile | ||
| README.md | ||
Plasma Widget
Simple plasma applet to show an image gallery, following tutorial available at [1], [2] and [3].
The applet randomly chooses an image each 5 seconds, and it hardcodes the image path to /usr/share/plasma/plasmoids/io.qtrnn.plasmatutorial/contents/res/, so to show other images we need to edit ./package/plugin/plasma-widget-tutorial.h and change the _imagesPath variable to the desired one.
For a future improvement, we could create a configuration to let user set such values.
Dependencies
xbps-install -S plasma-sdk libplasma plasma-desktop extra-cmake-modules kf6-kirigami-devel kf6-kconfig-devel
Running
mkdir -p build
cd build
cmake ../package # had issues installing to my ~/.local folder :/
make
doas make install # or sudo
or using just:
just run
References
[1] https://develop.kde.org/docs/plasma/widget/setup/
[2] https://develop.kde.org/docs/plasma/widget/c-api/
[3] https://invent.kde.org/plasma/libplasma/-/tree/master/templates/cpp-plasmoid6

