Configuration of KDE desktop applets, like the launcher ("Kickoff") or the clock is held in ~/.config/plasma-org.kde.plasma.desktop-appletsrc
(at least for KDE 5). I'd like to configure the applets on a fresh system to my liking using Ansible, but I can't find a robust way to do that.
I know I can use kwriteconfig5
to change the values there, like so
kwriteconfig5 --file ~/.config/plasma-org.kde.plasma.desktop-appletsrc \
--group Containments --group 3 --group Applets --group 9 \
--group Configuration --group Appearance \
--key dateFormat isoDate
which would hide some items from the system tray if the number of containment (3) and the applet (9) would match to the clock applet like so
[Containments][3][Applets][9]
immutability=1
plugin=org.kde.plasma.digitalclock
which isn't guaranteed to happen between installations, from what I've seen.
Is there some available elegant way to set the values for specific applets (plugins, in the config file)?
Or is it necessary to write a script that will dig up the numbers for a specific app and then use the klunky kwriteconfig5
command?