Changed parse_config(), now it works without json-c

This commit is contained in:
Adriano Oliviero 2021-04-23 18:02:05 +02:00
parent 83e327b34c
commit 09b32b1e1e
4 changed files with 73 additions and 74 deletions

View file

@ -39,27 +39,23 @@ prints a list of all supported distributions
# CONFIG FILE
The config file is located in $HOME/.config/uwufetch/config.json (you need to create it), but you can change the path by using the `--config` option.
The config file is located in $HOME/.config/uwufetch/config (you need to create it), but you can change the path by using the `--config` option.
## EXAMPLE
```json
{
"distribution": "debian",
"image": "/home/user/Pictures/debian.png",
"ascii": false,
"user": true,
"os": true,
"kernel": true,
"cpu": true,
"gpu": true,
"ram": true,
"resolution": true,
"shell": true,
"pkgs": true,
"uptime": true,
"colors": true
}
```
## EXAMPLE:
distro=arch\
image="~/Pictures/picture.png"\
ascii=false\
user=true\
os=true\
kernel=true\
cpu=true\
gpu=false\
ram=true\
resolution=true\
shell=true\
pkgs=true\
uptime=true\
colors=true
# SUPPORTED DISTRIBUTIONS