Skip to content

Instantly share code, notes, and snippets.

@Drarig29
Created August 19, 2021 11:36
Show Gist options
  • Save Drarig29/d2dbf0e432780cbf0ef504cec833d237 to your computer and use it in GitHub Desktop.
Save Drarig29/d2dbf0e432780cbf0ef504cec833d237 to your computer and use it in GitHub Desktop.
Neofetch custom Manjaro distro name. Result: Manjaro Linux 21.1 "Pahvo"
...
# Distro
DISTRO_NAME=$(lsb_release -sd | sed -e 's/"//g')
DISTRO_VERSION=$(lsb_release -sr | sed -e 's/.0$//g')
DISTRO_CODENAME=$(lsb_release -sc)
# Override distro name
#
# Example:
# Manjaro Linux 21.1 "Pahvo"
distro="$DISTRO_NAME $DISTRO_VERSION \"$DISTRO_CODENAME\""
...
@Drarig29
Copy link
Author

If the distro name doesn't suit us (OS: line), thanks to this line:

https://github.com/dylanaraps/neofetch/blob/7.1.0/neofetch#L954

...we can override the $distro variable.

So just put this attached extract of config in your .config/neofetch/config.conf file.

@Drarig29
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment