The officially official Devuan Forum!

You are not logged in.

#1 2021-10-19 22:35:18

supusr
Member
From: Mountain US
Registered: 2017-05-14
Posts: 7  

[SOLVED] Correct Distribution Name in Conky

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)


Linux only. Non-technical. Retired union business agent. Avid reader. Leftie. English-Spanish.

There is a cult of ignorance in America, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means, “My ignorance is just as good as your knowledge.” – Isaac Asimov

Offline

#2 2021-10-20 05:07:48

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,865  
Website

Re: [SOLVED] Correct Distribution Name in Conky

supusr wrote:

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.


antifa ftw!

Offline

#3 2021-10-20 19:04:33

supusr
Member
From: Mountain US
Registered: 2017-05-14
Posts: 7  

Re: [SOLVED] Correct Distribution Name in Conky

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.


Linux only. Non-technical. Retired union business agent. Avid reader. Leftie. English-Spanish.

There is a cult of ignorance in America, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means, “My ignorance is just as good as your knowledge.” – Isaac Asimov

Offline

#4 2021-10-20 20:08:20

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,865  
Website

Re: [SOLVED] Correct Distribution Name in Conky

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)


antifa ftw!

Offline

#5 2021-10-20 22:16:47

ralph.ronnquist
Administrator
From: Clifton Hill, Victoria, AUS
Registered: 2016-11-30
Posts: 629  

Re: [SOLVED] Correct Distribution Name in Conky

Works with $3 rather than $2.

Another way could be:

echo '. /etc/os-release ; echo $PRETTY_NAME' | sh

Offline

#6 2021-10-21 14:17:02

supusr
Member
From: Mountain US
Registered: 2017-05-14
Posts: 7  

Re: [SOLVED] Correct Distribution Name in Conky

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)


Linux only. Non-technical. Retired union business agent. Avid reader. Leftie. English-Spanish.

There is a cult of ignorance in America, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way through our political and cultural life, nurtured by the false notion that democracy means, “My ignorance is just as good as your knowledge.” – Isaac Asimov

Offline

Board footer