Dynamically Changing Panel and Widget Layouts in KDE Plasma

Hello,

I want to develop an application on KDE Plasma, where users can dynamically change desktop panels and widgets in different styles (e.g. Windows 10, macOS or custom designs). My goal is to have a predefined panel and widget layout applied when the user presses a button.

So far, I’ve tried doing this by backing up the ~/.config/plasma-org.kde.plasma.desktop-appletsrc file, creating copies of this file for different layouts, and restarting plasmashell. However, this method doesn’t always give consistent results and in some cases widgets don’t load correctly.

What are your suggestions to make this process more reliable and user-friendly? Are the APIs or tools provided by KDE suitable for developing this type of application?

1 Like