You are not logged in.
Pages: 1
I have come over from Debian. Using my old Debian conky config works except for the line to show the distribution:
Distro: ${alignr}${distribution}
This yields Debian, not Devuan. Is there a way to have it display Devuan GNU/Linux 4 (chimaera)? If it helps, the info I want to display (the pretty name} is in the 1st line of the output of: cat /etc/os-release
Thanks, in advance.
Last edited by supusr (2021-10-20 04:42:25)
Non-technical user, but Linux only for 12 years. Retired union business agent. Avid reader. Leftie. English-Spanish.
Offline
Is there a way to have it display Devuan GNU/Linux 4 (chimaera)?
Distro: Devuan
Or you could file a bug report for this against conky (upstream would be best, remember to test the latest release first to see if it's already fixed) or cut the information out of /etc/os-release but I really don't see the point of using a dynamic status indicator to display static information.
Brianna Ghey — Rest In Power
Offline
Head_on_a_Stick, thanks very much for the reply and the opinion. To be more clear, my question should have been: Can someone tell me how to generate the cut information from /etc/os-release? I am sorry I was not precise enough the first time.
Non-technical user, but Linux only for 12 years. Retired union business agent. Avid reader. Leftie. English-Spanish.
Offline
Try
awk -F'=|"' '/PRETTY/{print $3}' /etc/os-release
But I can't test that 'cos I'm posting this from Windows.
EDIT: remove quotation marks from output. Hopefully :-)
EDIT2: fixed command, thanks Ralph.
Last edited by Head_on_a_Stick (2021-10-21 05:07:39)
Brianna Ghey — Rest In Power
Offline
Works with $3 rather than $2.
Another way could be:
echo '. /etc/os-release ; echo $PRETTY_NAME' | sh
Offline
Thanks very much Head_on_a_Stick and ralph.ronnquist. I'm back on Debian for the moment for other reasons, but I'm sure these replies will help me resolve my conky issue when I return to Devuan. I really like the idea of Devuan.
Last edited by supusr (2021-10-21 15:24:38)
Non-technical user, but Linux only for 12 years. Retired union business agent. Avid reader. Leftie. English-Spanish.
Offline
Pages: 1