leenfetch 1.2.1

Fast, minimal, customizable system info tool in Rust (Neofetch alternative)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
# 🧠 LeenFetch

[![Crates.io](https://img.shields.io/crates/v/leenfetch)](https://crates.io/crates/leenfetch)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Build and Release](https://github.com/drunkleen/leenfetch/actions/workflows/release.yml/badge.svg)](https://github.com/drunkleen/leenfetch/actions/workflows/release.yml)



<!-- > 🌐 Available in: [English]# | [فارسی]./readme/README-fa.md | [Русский]./readme/README-ru.md | [δΈ­ζ–‡]./readme/README-zh.md
**** -->


##### A fast, minimal, and customizable system information tool built in Rust β€” your alternative to Neofetch, for real power users. Includes JSON output and remote fetching over SSH.


> ⚠️ **LeenFetch is under active development. Expect bugs and improvements regularly!**
>
> Want to help? Contributions, testing, and feedback are always welcome!



## πŸ’¬ Feedback & Issues

Found a bug? Got a feature idea?  
Head over to the [issues](https://github.com/drunkleen/leenfetch/issues) or join the [discussions](https://github.com/drunkleen/leenfetch/discussions) page!


## πŸ“š Table of Contents

- [🧠 LeenFetch]#-leenfetch
        - [A fast, minimal, and customizable system information tool built in Rust β€” your alternative to Neofetch, for real power users.]#a-fast-minimal-and-customizable-system-information-tool-built-in-rust--your-alternative-to-neofetch-for-real-power-users
  - [πŸ’¬ Feedback \& Issues](#-feedback--issues)
  - [πŸ“š Table of Contents]#-table-of-contents
  - [πŸ“Έ Screenshots]#-screenshots
  - [πŸš€ Features]#-features
  - [β–¨ Packaging Status]#-packaging-status
  - [πŸ“¦ Installation]#-installation
    - [Install on Arch Linux (via AUR)]#install-on-arch-linux-via-aur
    - [Install on Debian / Ubuntu (via .deb)]#install-on-debian--ubuntu-via-deb
    - [Install on Fedora / RHEL (via .rpm)]#install-on-fedora--rhel-via-rpm
    - [Install on Windows (via .zip)]#install-on-windows-via-zip
    - [Install from crates.io]#install-from-cratesio
    - [πŸ› οΈ Manual Installation (Build from Source)]#️-manual-installation-build-from-source
  - [πŸ“₯ Using Piped Input]#-using-piped-input
  - [βš™οΈ Configuration]#️-configuration
    - [flags section]#flags-section
    - [modules array]#modules-array
    - [How to Edit]#how-to-edit
  - [🎯 Roadmap]#-roadmap
  - [🀝 Contributing]#-contributing
  - [β˜• Support LeenFetch]#-support-leenfetch
  - [πŸ“„ License]#-license
  - [πŸ’‘ Inspiration]#-inspiration


## πŸ“Έ Screenshots

<img src="./assets/TokyoNight.png" width="32%" /><img src="./assets/SandStorm.png" width="32%" /><img src="./assets/Aura.png" width="32%" />

<img src="./assets/debian.jpg" width="50%" /><img src="./assets/windows.jpg" width="50%" />
<!-- <img src="./assets/ubuntu.jpg" width="50%" /><img src="./assets/windows10.jpg" width="50%" /> -->
<img src="./assets/cowsay.jpg" width="50%" /><img src="./assets/custom.jpg" width="50%" />


## πŸš€ Features

- ⚑ Blazing fast startup thanks to Rust
- 🎨 Customizable output layout with colorized terminal output
- 🧩 Modular design β€” enable or disable components via config
- πŸ’Ύ Smart defaults but easily extendable
- πŸ“¦ Detects installed packages, shell, GPU, DE/WM, and more
- πŸ–ΌοΈ Custom ASCII art support and override via config
- 🎨 Supports theme-based color profiles (`ascii_colors=distro`, etc.)
- πŸ”Œ Single JSONC config: `~/.config/leenfetch/config.jsonc`
- 🧡 Accepts piped ASCII input β€” use `fortune | cowsay | leenfetch` for dynamic text logos
- 🌐 Fetch remote system info over SSH (`--ssh <user>@<host>:<port>...`) and reuse pretty output per host
- 🧾 Machine-readable JSON output via `--format json` for scripting and dashboards


## β–¨ Packaging Status

[![Repository status](https://repology.org/badge/vertical-allrepos/leenfetch.svg)](https://repology.org/project/leenfetch/versions)


## πŸ“¦ Installation


### Install on Arch Linux (via AUR)

If you're on Arch Linux or an Arch-based distribution (like Manjaro), you can install LeenFetch from the AUR using an AUR helper like [`yay`](https://github.com/Jguer/yay):

```bash
yay -S leenfetch
```
or

```bash
git clone https://aur.archlinux.org/leenfetch.git
cd leenfetch
makepkg -si
```



### Install on Debian / Ubuntu (via .deb)

If you're on Debian, Ubuntu, or a Debian-based distribution, you can download and install the `.deb` package from the [GitHub Releases](https://github.com/drunkleen/leenfetch/releases):

- AMD64 (x86_64)
```bash
wget https://github.com/drunkleen/leenfetch/releases/download/v1.2.1/leenfetch-v1.2.1-debian-x86_64.deb
sudo dpkg -i leenfetch-*.deb
```


- AArch64 (ARM64)
```bash
wget https://github.com/drunkleen/leenfetch/releases/download/v1.2.1/leenfetch-v1.2.1-debian-aarch64.deb
sudo dpkg -i leenfetch-*.deb
```

---

### Install on Fedora / RHEL (via .rpm)

If you're using Fedora, RHEL, or another RPM-based distro, you can install LeenFetch using the `.rpm` file from [GitHub Releases](https://github.com/drunkleen/leenfetch/releases):

- AMD64 (x86_64)
```bash
wget https://github.com/drunkleen/leenfetch/releases/download/v1.2.1/leenfetch-v1.2.1-REHL-x86_64.rpm
sudo rpm -i leenfetch-*.rpm
```

- AArch64 (ARM64)
```bash
wget https://github.com/drunkleen/leenfetch/releases/download/v1.2.1/leenfetch-v1.2.1-REHL-aarch64.rpm
sudo rpm -i leenfetch-*.rpm
```

---

### Install on Windows (via .zip)

If you're on Windows, download the latest `.zip` from the [GitHub Releases](https://github.com/drunkleen/leenfetch/releases):

powershell:

- AMD64 (x86_64)
```powershell
Invoke-WebRequest -Uri "https://github.com/drunkleen/leenfetch/releases/download/v1.2.1/leenfetch-v1.2.1-windows-x86_64.zip" -OutFile "leenfetch-win.zip"
Expand-Archive .\leenfetch-win.zip -DestinationPath .

.\leenfetch-v1.2.1-windows-x86_64.exe
```

- AArch64 (ARM64)
```powershell
Invoke-WebRequest -Uri "https://github.com/drunkleen/leenfetch/releases/download/v1.2.1/leenfetch-v1.2.1-windows-aarch64.zip" -OutFile "leenfetch-win.zip"
Expand-Archive .\leenfetch-win.zip -DestinationPath .

.\leenfetch-v1.2.1-windows-aarch64.exe
```

> Make sure you're in the same directory as `leenfetch.exe` when running the command.

---

### πŸ› οΈ Manual Installation (Build from Source)

```bash
git clone https://github.com/drunkleen/leenfetch.git
cd leenfetch
cargo build --release
```

Add to PATH:

```bash
cp target/release/leenfetch ~/.local/bin/
```

Then run:

```bash
leenfetch
```

---

### Install from crates.io (fallback)

If you prefer installing from crates.io, make sure you have [Rust & Cargo](https://rustup.rs/) installed:

```bash
cargo install leenfetch
```

After that, just run:

```bash
leenfetch
```

If you hit issues with `PATH`, try adding `~/.cargo/bin` to your shell:

```bash
export PATH="$HOME/.cargo/bin:$PATH"
```

## πŸ“₯ Using Piped Input

LeenFetch can accept piped input to use as the ASCII logo.

This allows you to create dynamic, fun logos on the fly using other command-line tools.

**Examples:**

```bash
echo "Rustacean" | leenfetch
```

```bash
fortune | cowsay | leenfetch
```

LeenFetch will detect piped input via `stdin` and render the ASCII art above your system information.

If no piped input is provided, it will fall back to your configured or auto-detected ASCII art.

---

## 🌐 Remote fetch over SSH

Query other machines directly and render their info locally. LeenFetch runs `leenfetch --format json` over SSH, parses it, and prints a pretty block for each host.

```bash
# Pretty output for one host (leverages your SSH config/agent)
leenfetch --ssh user@server.example.com
leenfetch --ssh user@server.example.com:port

# Multiple hosts
leenfetch --ssh user@server1 --ssh user@server2:port ...

# Script-friendly JSON
leenfetch --ssh user@server --format json
leenfetch --ssh user@server:port --format json
```

Notes:
- The remote host needs `leenfetch` installed and available in `PATH`.
- ASCII logo and colors reflect the remote distro; each host renders separately using the local layout.
- SSH options come from your standard SSH config/agent (no custom flags are parsed) and a short connect timeout is used.
- You can mix `--format json` with `--ssh` to script against multiple hosts (one JSON object per host).


---

## βš™οΈ Configuration

On first run, LeenFetch writes a single `config.jsonc` file to your configuration directory:

```bash
# Linux
~/.config/leenfetch/config.jsonc

# Windows
C:\Users\<username>\AppData\Roaming\leenfetch\config.jsonc
```

The file uses JSON with comments (JSONC), so you can keep inline explanations next to your settings. It combines the previous trio of files into a single document with clear sections:

- `flags` β€” Display and formatting toggles.
- `modules` *(alias `layout`)* β€” Output order, headings, and custom rows.
- *(optional)* `logo` β€” Override ASCII art source or padding. Omitted keys fall back to defaults.

### flags section

The `flags` object fine-tunes how each block is rendered. Values shown below match the generated defaults; unset keys fall back to the same defaults internally.

| Key | Allowed values | Default | What it controls |
| --- | --- | --- | --- |
| `ascii_distro` | `"auto"` or distro name | `"auto"` | ASCII art selection. Piped input always overrides this. |
| `ascii_colors` | `"distro"` or comma list of color indices | `"distro"` | Palette for ASCII art and color swatches. |
| `custom_ascii_path` | `""` or path | `""` | Custom ASCII art file. Leave empty for bundled art. |
| `battery_display` | `"off"`, `"bar"`, `"infobar"`, `"barinfo"` | `"off"` | Battery meter style (or disable entirely). |
| `color_blocks` | string glyph | `"●"` | Character(s) used for the 16-color preview. |
| `cpu_brand` | `true` / `false` | `true` | Prefix CPU model with the vendor name. |
| `cpu_cores` | `true` / `false` | `true` | Show total core/thread counts. |
| `cpu_frequency` | `true` / `false` | `true` | Include advertised CPU frequency. |
| `cpu_speed` | `true` / `false` | `true` | Include current CPU speed reading. |
| `cpu_temp` | `"C"` / `"F"` | `"C"` | Temperature unit. Any other value skips conversion. |
| `cpu_show_temp` | `true` / `false` | `false` | Toggle CPU temperature output entirely. |
| `de_version` | `true` / `false` | `true` | Append desktop-environment version. |
| `distro_display` | `name`, `name_version`, `name_arch`, `name_model`, `name_model_version`, `name_model_arch`, `name_model_version_arch` | `"name"` | Level of OS detail shown in the distro line. |
| `disk_display` | `info`, `percentage`, `infobar`, `barinfo`, `bar` | `"info"` | Disk usage presentation for each mount. |
| `disk_subtitle` | `name`, `dir`, `none`, `mount` | `"dir"` | Label used alongside disk usage. |
| `memory_percent` | `true` / `false` | `true` | Add percentage to the memory line. |
| `memory_unit` | `kib`, `mib`, `gib` | `"mib"` | Preferred memory units. |
| `package_managers` | `off`, `on`, `tiny` | `"tiny"` | Package counter verbosity. |
| `refresh_rate` | `true` / `false` | `true` | Append monitor refresh rate where available. |
| `shell_path` | `true` / `false` | `false` | Print full shell path instead of name only. |
| `shell_version` | `true` / `false` | `true` | Append shell version. |
| `uptime_shorthand` | `full`, `tiny`, `seconds` | `"tiny"` | Uptime formatting style. |
| `os_age_shorthand` | `full`, `tiny`, `seconds` | `"tiny"` | OS install age formatting style. |

> ℹ️  Piped input (for example `fortune | cowsay | leenfetch`) replaces the ASCII logo regardless of `ascii_distro` or `custom_ascii_path`.

Here is a compact example that shortens durations and hides temperature and refresh-rate extras:

```jsonc
{
  "flags": {
    "uptime_shorthand": "tiny",
    "cpu_show_temp": false,
    "refresh_rate": false,
    "package_managers": "on"
  }
}
```

### logo section (optional)

Use the `logo` object to point to custom ASCII art or adjust how the bundled ASCII art is padded. When `type` is `"file"` the `source` path behaves just like `custom_ascii_path`.

```jsonc
{
  "logo": {
    "type": "file",
    "source": "~/.config/leenfetch/branding/about.txt",
    "padding": { "top": 2, "right": 6, "left": 0 }
  }
}
```

### modules array

The `modules` array (also accepted as `layout`) controls rendering order. Entries can be a literal string (`"break"` inserts an empty spacer) or an object describing a module. Objects accept a `type` (collector name such as `titles`, `distro`, `os_age`, `uptime`, etc.) and optional properties like `key` for the label or `format` for custom text.

```jsonc
{
  "modules": [
    "break",
    { "type": "custom", "format": "== System ==" },
    { "type": "titles", "key": "User" },
    { "type": "distro", "key": "Distro" },
    { "type": "cpu", "key": "CPU" },
    { "type": "memory", "key": "Memory" },
    { "type": "colors", "key": "" }
  ]
}
```

Rearrange, duplicate, or remove entries to customize your output. Insert `"break"` wherever you want an empty spacer line.

---

### How to Edit

- Open `config.jsonc` in your favorite text editor.
- Read the inline comments for a full explanation of every option.
- Change values as you like, save, and re-run `leenfetch` to see your changes.

For advanced details, see the comments in `config.jsonc` or check the [wiki](https://github.com/drunkleen/leenfetch/wiki) (if available).

### CLI overrides

Need a temporary tweak for screenshots or testing? LeenFetch now mirrors most `flags` settings on the CLI so you can adjust the output without touching `config.jsonc`.

- Core controls: `--help`, `--version`, `--list-options`, `--init`, `--reinit`, `--config <path>`, and `--no-config` (ignore files, use built-in defaults).
- ASCII controls: `--ascii_distro <name>`, `--ascii_colors <list>`, `--custom_ascii_path <file>`, and `--color-blocks <glyph>`.
- Formatting knobs: `--battery-display`, `--disk-display`, `--disk-subtitle`, `--memory-unit`, `--packages`, `--uptime`, `--os-age`, `--distro-display`, `--cpu-temp-unit`, and `--format <pretty|json>` for output style.
- Remote + layout: `--ssh <host>[,<host>...]` to fetch via SSH, `--only cpu,memory,shell` to render a subset, `--hide gpu` to drop modules from the current layout.
- Boolean toggles use a single flag with an explicit value, for example `--cpu-speed true`, `--shell-path false`, or `--memory-percent true`.

Run `leenfetch --help` to see the complete list of overrides.

## 🎯 Roadmap

| Feature                     | Status        |
| --------------------------- | ------------- |
| Base module system          | βœ… Done       |
| Config file loader          | βœ… Done       |
| Custom layout tags          | βœ… Done       |
| GPU/CPU/Mem/DE/WM detection | βœ… Done       |
| Linux support               | βœ… Done       |
| Windows support             | βœ… Done       |
| Multi-Threading             | βœ… Done       |
| CLI override options        | πŸ” Basic      |
| ASCII art & theming         | πŸ” Basic      |
| Plugin/module system        | ❓ Maybe      |
| Fetch info over SSH         | βœ… Done       |

---

## 🀝 Contributing

1. Fork the repo
2. Create your branch (`git checkout -b feature/my-feature`)
3. Commit your changes (`git commit -m 'feat: add my feature'`)
4. Push to the branch (`git push origin feature/my-feature`)
5. Create a Pull Request

We welcome clean PRs and documented modules! ✨

---

## β˜• Support LeenFetch

If you have found LeenFetch valuable and would like to contribute to its ongoing development, your support is greatly
appreciated. You can show your appreciation by making a donation
through [PayPal](https://www.paypal.com/paypalme/RDarvishifar) or any of the following cryptocurrency networks:

- **Bitcoin (BTC):** `bc1qsmvxpn79g6wkel3w67k37r9nvzm5jnggeltxl6`
- **ETH/BNB/MATIC (ERC20, BEP20):** `0x8613aD01910d17Bc922D95cf16Dc233B92cd32d6`
- **USDT/TRON (TRC20):** `TGNru3vuDfPh5zBJ31DKzcVVvFgfMK9J48`
- **Dogecoin (DOGE):** `D8U25FjxdxdQ7pEH37cMSw8HXBdY1qZ7n3`

Your generous contribution ensures the continued improvement and maintenance of LeenFetch. ❀️

Thank you for supporting the project! πŸ™

---

## πŸ“„ License

[MIT](./LICENSE) License Β© [DrunkLeen](https://github.com/drunkleen)

---

## πŸ’‘ Inspiration

* [Neofetch]https://github.com/dylanaraps/neofetch
* [Fastfetch]https://github.com/fastfetch-cli/fastfetch
* [Rust]https://www.rust-lang.org/ β€” the foundation of LeenFetch