Skip to content

Documentation: Host #347

Discussion options

You must be logged in to vote

TLDR: the code

Basically it reads files in /sys/devices/virtual/dmi/id/ and falls back to files in /sys/class/dmi/id/. You are probably looking for the files product_name and product_version. Those are values provided by your hardware, and just made accessible through the kernel. Changing them might be impossible for some values. If you manage to do it, remember to run with --recache once.

If you want to change the fastfetch output, use the following flags:

fastfetch --host-key "Hardware" --host-value "MacBook Air"

To do this permanently, put those flags in ~/.config/fastfetch.conf.
To have a more flexible format string, look at fastfetch --help host-format

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by LinusDierheimer
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #213 on December 12, 2022 17:22.