utox39/zigfetch
Zigfetch is a minimal neofetch/fastfetch like system information tool
| Default config | Custom config |
|---|---|
Zigfetch is a minimal neofetch/fastfetch like system information tool
# Clone the repo
$ git clone https://github.com/utox39/zigfetch.git
# cd to the path
$ cd path/to/zigfetch
# Build zigfetch
$ zig build -Doptimize=ReleaseSafe
# Then move it somewhere in your $PATH. Here is an example:
$ mv ./zig-out/zigfetch ~/bin/
$ brew install utox39/tap/zigfetch
$ zigfetch
IMPORTANT Currently, Zig does not have a built-in library for JSON validation via JSON schema, so it is very important to follow the pattern shown in the default configuration file (config.json) to avoid errors
$ mkdir -p ~/.config/zigfetch
$ cd ~/.config/zigfetch
$ touch config.json
$ cp /path/to/zigfetch/config.json ~/.config/zigfetch/config.json
Available modules:
| Module type | Linux | macOS | Windows |
|---|---|---|---|
| os | Yes | Yes | WIP |
| kernel | Yes | Yes | WIP |
| uptime | Yes | Yes | WIP |
| packages | WIP | Yes (Homebrew, Macports) | WIP |
| shell | Yes (bash, zsh) | Yes (bash, zsh) | WIP |
| cpu | Yes | Yes | WIP |
| gpu | Yes | Yes (Apple Silicon only) | WIP |
| ram | Yes | Yes | WIP |
| swap | Yes | Yes | WIP |
| disk | Yes | Yes | WIP |
| net | Yes | Yes | WIP |
| wm | Yes | Yes | WIP |
| terminal | Yes | Yes | WIP |
| locale | Yes | Yes | WIP |
"modules": [
{
"type": "os",
"key": "OS",
"key_color": "#5E81AC"
},
...
]
"modules": [
{
"type": "custom",
"key": "-----------",
"key_color": "#5E81AC"
},
...
]
To use an ASCII art of your choice:
"ascii_abs_path": "absolute_path/to/your/ascii_art.txt"
Don't use the ~ character.
To change the Username and Hostname color (HEX colors only):
"username_hostname_color": "#5E81AC"
Please see CONTIBUTING. Thanks!