No description
  • C++ 40.1%
  • CMake 32.2%
  • QML 22%
  • Just 5.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-18 15:33:32 -03:00
cmake feat: compile plugin 2026-11-18 14:21:12 -03:00
package refactor: list and pick images from a "configurable" image path 2026-11-18 15:28:17 -03:00
resources docs: final README update 2026-11-18 15:32:01 -03:00
.gitignore feat: compile plugin 2026-11-18 14:21:12 -03:00
Justfile feat: build and run using Justfile 2026-11-18 15:28:16 -03:00
README.md docs: final README update 2026-11-18 15:32:01 -03:00

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.

Plasma applet using the default image path

Plasma applet using a custom image path

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