LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kwriteconfig5

writes values to KDE Plasma 5 configuration files

TLDR

Set a global configuration key
$ kwriteconfig5 --group [group_name] --key [key] [value]
copy
Set a key in a specific file
$ kwriteconfig5 --file [path/to/file] --group [group_name] --key [key] [value]
copy
Delete a key
$ kwriteconfig5 --group [group_name] --key [key] --delete
copy
Enable systemd boot for Plasma session
$ kwriteconfig5 --file startkderc --group General --key systemdBoot true
copy
Hide title bar when window is maximized
$ kwriteconfig5 --file ~/.config/kwinrc --group Windows --key BorderlessMaximizedWindows true
copy

SYNOPSIS

kwriteconfig5 [options]

DESCRIPTION

kwriteconfig5 writes values to KDE Plasma 5 configuration files. It enables scripted modification of KDE settings without manually editing configuration files.Configuration files are stored in ~/.config/ with names like kdeglobals, kwinrc, plasmarc. Changes may require restarting the affected application or Plasma session to take effect.

PARAMETERS

--file FILE

Configuration file to write to
--group GROUP
Configuration group (section)
--key KEY
Key name to set
--delete
Delete the key instead of setting it
--type TYPE
Value type (bool, string, int, etc.)

INSTALL

sudo apt install libkf5config-bin
copy
sudo pacman -S kconfig5
copy
sudo apk add kconfig5
copy

CAVEATS

KDE 5 specific; KDE 6 uses kwriteconfig6. Some changes require restarting Plasma or logging out. Groups and keys are case-sensitive.

HISTORY

kwriteconfig5 is part of KDE Frameworks 5, complementing kreadconfig5 for reading settings. It enables automation of KDE configuration in scripts and dotfile management.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid