Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
6.1

Available as/for:
Description:
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

Usecases:
---------
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" ...


Syntax:
-------
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
120

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

Ratings & Comments

0 Comments

Be the first to comment
Pling
0 Affiliates
Details
license
version 0.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

More Various KDE 1.-4. Improvements from thomas12777:

Kontainer
thomas12777
last update date: 11 years ago

Score 7.6

BeClock
thomas12777
last update date: 13 years ago

Score 8.4

Generic Animations (BeGeneric ;-)
thomas12777
last update date: 13 years ago

Score 8.0

BeDistorted
thomas12777
last update date: 13 years ago

Score 7.2

BeFaded
thomas12777
last update date: 14 years ago

Score 6.8

BeShadowed
thomas12777
last update date: 14 years ago

Score 7.5

Other Various KDE 1.-4. Improvements:

Slicker Debian Package for Woody
cirrusgr
last update date: 22 years ago

Score 5.0

Konqueror/kdesktop suggestion
PovMan
last update date: 22 years ago

Score 5.0

Biiig buttons
dbojan
last update date: 20 years ago

Score 5.0

Yet Another KControl
Frans
last update date: 21 years ago

Score 5.0

Next window and next/previos window
dbojan
last update date: 20 years ago

Score 5.0

Fantasie Toolbar
katoe
last update date: 19 years ago

Score 5.0