1

I want to change the KDE Widget Style via command-line (because my systemsettings5 crashes while opening and I suspect one of the installed themes so I want to change it via command-line).
I was unable to find anything useful in ~/.config and some qdbus paths.

I know the name of the desired theme , but I don't know the required path in qdbus.

Any help is appreciated.
Thanks.

1 Answers1

0
Plasma 5

Where $widgetStyle is the name of the relevant QStyle, execute:

#!/usr/bin/env sh
kwriteconfig5 --file kdeglobals --group KDE --key widgetStyle $widgetStyle

Its origin is reddit.com/r/kde/comments/v0dj92/comment/iai7s7r.

Plasma 6

This may necessitate kwriteconfig6, although kwriteconfig5 may continue to function where shims remain for backward compatibility.