Interacting with kwin but not in a KWin script

JS callDBus > python D-Bus service Determine when monitor is turned on or off via python dbus - #9 by supagu

For the plugin check Creating C++ Plugins for QML | Qt Qml | Qt 6.10.2

Here is an example of a QML script that has a C++ plugin C++ plugin GitHub - luisbocanegra/kwin-minimize2tray: Hide windows to the system tray, similar to KDocker but in the form of a KWin Script that works on Wayland · GitHub

D-Bus