kwriteconfig-edit
Installation
SKILL.md
kwriteconfig safe edit
KDE config files use a custom INI dialect with array suffixes ([$e], [$i]), nested groups (--group A --group B), and comments KDE will rewrite. Never use sed / awk / hand-rolled INI parsers on them — use kwriteconfig6 (or kwriteconfig5 on KF5).
Detection
KW=$(command -v kwriteconfig6 || command -v kwriteconfig5)
KR=$(command -v kreadconfig6 || command -v kreadconfig5)
Read a key
$KR --file kdeglobals --group General --key ColorScheme