Documentation: Host #347
-
Current state:I have no idea where fastfetch sources its information about Host: Wanted state:I like to where how to change the source of Host. Why the change is sensible:I installed my OS on an enclosed SSD and use that on several different devices. "Host" also suggests hostname, which it isnt. I like to change the output of "Host:" and dont know, where fastfetch gets this info from. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
TLDR: the code Basically it reads files in 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 |
Beta Was this translation helpful? Give feedback.
-
Well, the point is, it is reporting the value of the hardware, on which I installed it. Now, I am on the desktop and it says Macbook Air. Thanks for your help |
Beta Was this translation helpful? Give feedback.
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 filesproduct_name
andproduct_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:
To do this permanently, put those flags in
~/.config/fastfetch.conf
.To have a more flexible format string, look at
fastfetch --help host-format