fastfetch-cli / fastfetch-cli/fastfetch

[FEAT] Configurable or environment-based logos

Open
#2,194 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
24.6k
Forks
890
Avg merge
1d 42m
Merged PRs (30d)
17

Description

### Description

It would be nice to be able to be able to alter the logo based on certain environment factors. For example, I share most of my configs across Windows, MSYS2, FreeBSD, and a couple Linux boxes. For most of them (and every individual unique OS) this works and prints the OS logo. However commit 23bccc4 added an MSYS2 logo to the set, but this can only be printed by manually specifying it. Similarly, FreeBSD has a Linux emulation layer to help make some less portable software work.
For both of those cases, it would be nice if something made it possible to override the logo based on e.g. an environment variable check, or some other probing mechanism, or perhaps even just as a check that can be specified in the configuration, similar to how custom modules work.

For the configuration option, it could look something like:
```jsonc
"logo": {
// Run the specified command and use its output,
// fall back to normal auto detect behavior is output is empty
"detect": "if [ \"$MSYSTEM\" -ne \"\" ]; then echo Msys2 ; fi"
}
```

### Motivation

The command module does not allow overriding the logo

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.