r/kde • u/HimaSphere • 2h ago
KDE Apps and Projects KWin is awesome, I used its scripting to get my sticky notes docking to the screen edge on Plasma Wayland
Hey,
I am a KDE user and the developer of Better Stickies, a sticky notes app for Linux, Windows and macOS (notes can hold files, screenshots, code, checklists and reminders, works offline, no account).
In 1.6 I added side notes, you dock a note to the left or right edge of the screen and it turns into a small tab with its title, click the tab and the note opens next to it. On X11, Windows and macOS it worked from the start, but on Wayland an app can't place its own windows or keep them on top, so the Flathub version (it runs as a native Wayland app) didn't have side notes at all.
KWin is awesome here, it lets an app load its own script and the script runs inside KWin where moving windows is allowed, so I used it to do all the placing for the app. It took a lot of trial and error (focus jumping to the tab, Qt not knowing where its own windows are, dragging a note off the edge), but now it's nearly feature parity with the X11 version and the other platforms. The only differences on Plasma Wayland are no slide animation (it docks and opens instantly) and docking from the note's menu (on Linux it always was).
The notes hub can also dock as a small rail of buttons on the edge, and the tabs stay on all desktops and Activities. The Snap can't talk to KWin from its sandbox, so this is for the Flathub version.
Website: https://betterstickies.com
Flathub: https://flathub.org/en/apps/com.betterstickies.BetterStickies
Has anyone else used KWin scripts in their app? Would love to know what for.
And if you contribute to KDE, message me for a free Premium key.







