Correct Distro Name in Conky

On Manjaro minimal Xfce. Using this conky line: Distro: ${alignr}${distribution}
That yields Arch Linux. What line would I use to yield Manjaro instead? Thanks, in advance, for your reply.

From an ancient backup (old root partition mounted to /media)

awk -F= '/TION/ {print $2}' /media/etc/lsb-release |sed 's/"//g'
Manjaro Linux
awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /media/etc/lsb-release
20.0.3 Lysia

Remove /media in the above commands.

awkward and unnecessary. :stuck_out_tongue_winking_eye:

How about:

${exec lsb_release -ds}

https://unix.stackexchange.com/questions/440812/how-to-display-lsb-release-info-in-conky

merlock: The following yields Distro: Manjaro Linux 21.2.3 Quonos:
Distro: ${alignr}${exec awk -F= ‘/TION/ {print $2}’ /etc/lsb-release |sed ‘s/"//g’} ${exec awk -F= ‘/EASE=/ {printf $2" "} /NAME/ {print $2}’ /etc/lsb-release}

Yochanan: The following yields Distro: "Manjaro Linux"
Distro: ${alignr}${exec lsb_release -ds}
The link was also helpful.

LOL. More than one way to skin a cat. :slight_smile:

FYI, since it’s just executing lsb_release, you can use any command option you want in place of -ds. :wink:

Example with codename:

❯ lsb_release -dsc
"Manjaro Linux" Qonos

If you want to remove the quotation marks, you can use:

❯ lsb_release -dsc | sed 's/\"//g'
Manjaro Linux Qonos

See:

lsb_release --help

or

man lsb_release

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.