Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0aec3d8e5b | ||
|
|
dd2f50c79c | ||
|
|
16bb74c47b | ||
|
|
20f9c6e1d5 | ||
|
|
b09443db4d | ||
|
|
dd3b79b32d | ||
|
|
22376139f2 | ||
|
|
a835074ee6 | ||
|
|
3d16102f37 | ||
|
|
24a5e98089 | ||
|
|
f03f7e163c |
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -65,17 +65,11 @@ jobs:
|
||||
ls -la zig-out/bin/
|
||||
file zig-out/bin/zigfetch-${{ matrix.target }}
|
||||
|
||||
- name: Create archive
|
||||
run: |
|
||||
tar -czf zigfetch-${{ matrix.target }}.tar.gz -C zig-out/bin zigfetch-${{ matrix.target }}
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zigfetch-${{ matrix.target }}
|
||||
path: |
|
||||
# zig-out/bin/zigfetch-${{ matrix.target }}
|
||||
zigfetch-${{ matrix.target }}.tar.gz
|
||||
path: zig-out/bin/zigfetch-${{ matrix.target }}
|
||||
retention-days: 3
|
||||
|
||||
test:
|
||||
|
||||
82
README.md
82
README.md
@@ -2,10 +2,15 @@
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
| Default config | Custom config |
|
||||
| :-----------------------------------------------------: | :---------------------------------------------------: |
|
||||
|  |  |
|
||||
|
||||
---
|
||||
|
||||
- [Description](#description)
|
||||
@@ -74,6 +79,83 @@ $ touch config.json
|
||||
$ cp /path/to/zigfetch/config.json ~/.config/zigfetch/config.json
|
||||
```
|
||||
|
||||
#### Modules
|
||||
|
||||
Available modules:
|
||||
|
||||
- Os
|
||||
- Kernel
|
||||
- Uptime
|
||||
- Packages
|
||||
- Shell
|
||||
- Cpu
|
||||
- Gpu
|
||||
- Ram
|
||||
- Swap
|
||||
- Disk
|
||||
- Net
|
||||
- Terminal
|
||||
- Locale
|
||||
- Custom
|
||||
|
||||
| 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 |
|
||||
| terminal | Yes | Yes | WIP |
|
||||
| locale | Yes | Yes | WIP |
|
||||
|
||||
```json
|
||||
"modules": [
|
||||
{
|
||||
"type": "os",
|
||||
"key": "OS",
|
||||
"key_color": "#5E81AC"
|
||||
},
|
||||
...
|
||||
]
|
||||
```
|
||||
|
||||
#### Custom module
|
||||
|
||||
```json
|
||||
"modules": [
|
||||
{
|
||||
"type": "custom",
|
||||
"key": "-----------",
|
||||
"key_color": "#5E81AC"
|
||||
},
|
||||
...
|
||||
]
|
||||
```
|
||||
|
||||
#### Custom ASCII art
|
||||
|
||||
To use an ASCII art of your choice:
|
||||
|
||||
```json
|
||||
"ascii_abs_path": "absolute_path/to/your/ascii_art.txt"
|
||||
```
|
||||
|
||||
Don't use the `~` character.
|
||||
|
||||
#### Username and Hostname color
|
||||
|
||||
To change the Username and Hostname color (HEX colors only):
|
||||
|
||||
```json
|
||||
"username_hostname_color": "#5E81AC"
|
||||
```
|
||||
|
||||
## Roadtrip
|
||||
|
||||
- [ ] Add ASCII art for each operating system and Linux distro
|
||||
|
||||
BIN
assets/screenshot-custom-config.png
Normal file
BIN
assets/screenshot-custom-config.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 209 KiB |
BIN
assets/screenshot-default-config.png
Normal file
BIN
assets/screenshot-default-config.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 200 KiB |
@@ -10,7 +10,7 @@
|
||||
|
||||
// This is a [Semantic Version](https://semver.org/).
|
||||
// In a future version of Zig it will be used for package deduplication.
|
||||
.version = "0.22.0",
|
||||
.version = "0.22.1",
|
||||
|
||||
// Together with name, this represents a globally unique package
|
||||
// identifier. This field is generated by the Zig toolchain when the
|
||||
|
||||
@@ -51,6 +51,7 @@ pub fn getModulesTypes(allocator: std.mem.Allocator, config: ?std.json.Parsed(Co
|
||||
if (module_enum) |m| {
|
||||
try modules_list.append(m);
|
||||
} else {
|
||||
modules_list.deinit();
|
||||
return error.InvalidModule;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user