Skip to content

Documentation: Host #213

Description

@ShalokShalom

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.
As I installed it, I did so on an old Macbook Air, and now I use it on a desktop computer.

image

"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

Activity

  1. added
    questionThe issue is a question or a discussion
    and removed
    enhancementNew feature or request
    on Aug 16, 2022
  2. LinusDierheimer commented on Aug 16, 2022

    @LinusDierheimer
    Collaborator

    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

  3. ShalokShalom commented on Aug 16, 2022

    @ShalokShalom
    Author

    Those are values provided by your hardware, and just made accessible through the kernel.

    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

  4. locked and limited conversation to collaborators on Dec 12, 2022
  5. converted this issue into a discussion #347 on Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionThe issue is a question or a discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions