Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

Available as/for: -

A CLI config tool.

It supports reading and writing of config entries.

Features beyond kread/writeconfig:
- regular expression matching
- key/group deletion
- regexp based (mass) replacement
- regexp based entry listing

a) kconfupdates:
Whenever you've got legacy settings and you need to update them you end up either writing a cpp blackbox (to the user) or a complex ('bash' != 'sh' ...) and slow script for it (latter sometimes not even being possible - original reason to write this ;-)

b) user assistance:
it is much simpler to ask a user to "kreadconfig --file kwinrc --group Compositing --key MaxFPS" than to explain the clickchain through the config GUI.
If you need more than one key, regexp driven maybe grouplisting can be very convenient.

c) key deletion:
right now the tool of choice for that is called "kwrite" ...

kconfig [/[/[...]]] read|write|delete|list|replace [] []

see "kconfig help" for an up-to date list and command aliases

Examples: (to get you an idea)

Let's say you want to show the configured MaxFPS of the compositor
$ kconfig kwinrc/Compositing read MaxFPS
MaxFPS: 60 (kwinrc/Compositing)

Unset it:
$ kconfig kwinrc/Compositing delete MaxFPS
Removed MaxFPS: 60

Add it:
$ kconfig kwinrc/Compositing write MaxFPS 60
New MaxFPS: 60

You got a 120Hz screen and want the compositor tick more?
$ kconfig kwinrc/Compositing write MaxFPS 120
MaxFPS: 60 -> 120

You forgot the actual key?
$ kconfig kwinrc/Compositing list max
MaxFPS: 120

Isn't there too much output for script invocation? (No)
$ MAX_FPS=`kconfig kwinrc/Compositing read MaxFPS`; echo $MAX_FPS

You want to alter a present MaxFPS key to MaxFps?
$ kconfig kwinrc/Compositing replace 'MaxFPS=(.*)' 'MaxFps=1'
MaxFPS: 120 -> MaxFps: 120

List all electric borders - w/o knowing in what group they are:
$ kconfig 'kwinrc/.*' list electric
Be the first to comment
product-maker frag Apr 15 2014 9 excellent
product-maker sumski Apr 13 2014 9 excellent
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
0 Affiliates
updated Apr 13 2014
added Apr 13 2014
downloads 24h
mediaviews 24h 0
pageviews 24h 1