Crates.io | afp |
lib.rs | afp |
version | 0.1.10 |
source | src |
created_at | 2023-02-18 15:28:13.182007 |
updated_at | 2023-02-18 15:28:13.182007 |
description | A fast fetch program written in rust |
homepage | https://github.com/Slimemaster0/afp |
repository | https://github.com/Slimemaster0/afp |
max_upload_size | |
id | 788291 |
size | 182,665 |
A fast sysfetch program inspired by Archey3 and Archey4 writen in rust with 56 dependencies.
AFP is configured in json. The configuration file is placed in 1 of 2 places.
Yes -> $XDG_CONFIG_HOME/afp/config.json
No -> $HOME/.config/afp/config.json
If no config file is found, then AFP will use the default configuration.
There is a "Command" module and a "LineCount" that is configured in the same way.
An example where you run the command "foo" with "--bar" and "69" as arguments.
...
{
"Command": {
"command": "foo",
"args": [ "--bar", "69" ],
"title": "Foo: "
}
},
...
The default config:
{
"logo": "auto",
"color": "None",
"allow_lazy": true,
"items": [
{
"UserHost": {
"title": "",
"color": "None"
}
},
{
"EnvVar": {
"var": "XDG_SESSION_TYPE",
"title": "Session Type: ",
"color": "None"
}
},
{
"Distro": {
"title": "Distro: ",
"color": "None"
}
},
{
"Kernel": {
"title": "Kernel: ",
"color": "None"
}
},
{
"Device": {
"title": "Device: ",
"color": "None"
}
},
{
"Vendor": {
"title": "Vendor: ",
"color": "None"
}
},
{
"RAM": {
"title": "Memory: ",
"color": "None"
}
},
{
"EnvVar": {
"var": "EDITOR",
"title": "Editor: ",
"color": "None"
}
},
{
"Shell": {
"title": "Shell: ",
"color": "None"
}
},
{
"GPU": {
"title": "GPU$: ",
"color": "None",
"brand": true,
"lazy": true
}
},
{
"CPU": {
"title": "CPU: ",
"color": "None"
}
},
{
"EnvVar": {
"var": "XDG_CURRENT_DESKTOP",
"title": "DE: ",
"color": "None"
}
}
]
}