Metadata-Version: 2.1
Name: kcfg
Version: 0.1.1
Summary: Tool to read and write KDE INI config files, replaces kwriteconfig5 / kreadconfig5
Author-email: Aleksandar Radivojevic <rzhw3h@gmail.com>
Requires-Python: >=3.8.1
Description-Content-Type: text/markdown
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Topic :: Utilities
Classifier: Topic :: Desktop Environment
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Project-URL: Home, https://github.com/sandorex/kcfg
Project-URL: Tracker, https://github.com/sandorex/kcfg/issues

# kcfg
Replacement for the awful `kwriteconfig5` (and `kreadconfig5`)

It has a different syntax but a much improved one, some examples below
```sh
kcfg 'kcminputrc/Libinput/1241/41119/E-Signal USB Gaming Mouse/PointerAcceleration' --write -0.200
```

## Diferences
It writes the value verbatim and reads it verbatim, so special things like `[$i]` `[$e]` or escapes like `\s` are just treated as text\
*This may be implemented in the future or at least show a warning*

## Installation
The whole logic is inside `kcfg.py` which is a self contained python script with no dependencies except `configparser` which is built into python\
Package exists to allow easy installation/updates from pip/pipx

### pip / pipx
I always recommend to use `pipx` to install the package, but if you want to use pip substitute `pipx` with `pip`

If you need it for only one time for example in setup script but have pipx available then you can use
```
pipx run kcfg
```

```
pipx install kcfg
```

You can also install from git
```
pipx install git+https://github.com/sandorex/kcfg

# install specific branch
pipx install git+https://github.com/sandorex/kcfg.git@master
```

### Git
You can clone whole repo and run it directly as a package `python3 -m kcfg`, you could download it with wget and run it

You can also add the repository as a submodule, like i do in my dotfiles
```sh
git submodule add https://github.com/sandorex/kcfg

# to run it
python3 -m kcfg

# or directly
kcfg/kcfg.py
```

### wget / curl
**Beware this is the least secure option**

```sh
wget https://raw.githubusercontent.com/sandorex/kcfg/master/kcfg.py
```

```sh
curl https://raw.githubusercontent.com/sandorex/kcfg/master/kcfg.py
```


