kwriteconfig5

Write KConfig entries for KDE Plasma.

TLDR

Display help

$ kwriteconfig5 --help
copy

Set a global configuration key

$ kwriteconfig5 --group [group_name] --key [key] [value]
copy

Set a key in a specific configuration file

$ kwriteconfig5 --file [path/to/file] --group [group_name] --key [key] [value]
copy

Delete a key

$ kwriteconfig5 --group [group_name] --key [key] --delete
copy

Use systemd to start the Plasma session when available

$ kwriteconfig5 --file [startkderc] --group [General] --key [systemdBoot] [true]
copy

Hide the title bar when a window is maximized (like Ubuntu)

$ kwriteconfig5 --file [~/.config/kwinrc] --group [Windows] --key [BorderlessMaximizedWindows] [true]
copy

Configure KRunner to open with the Meta (Command/Windows) global hotkey

$ kwriteconfig5 --file [~/.config/kwinrc] --group [ModifierOnlyShortcuts] --key [Meta] ["org.kde.kglobalaccel,/component/krunner_desktop,org.kde.kglobalaccel.Component,invokeShortcut,_launch"]
copy

Help

Usage: kwriteconfig5 [options] value 

Options:
  -h, --help       Displays help on commandline options. 
  --help-all       Displays help including Qt specific options. 
  --file     Use  instead of global config 
  --group   Group to look in. Use repeatedly for nested groups. 
  --key       Key to look for 
  --type     Type of variable. Use "bool" for a boolean, otherwise it is 
                   treated as a string 
  --delete         Delete the designated key if enabled 

Arguments:
  value            The value to write. Mandatory, on a shell use '' for empty 

Copied to clipboard
Raspberry