Posts: 1,028
SamK
Joined: 21 Aug 2011
#1
Currently in Conky the antiX version is a static text entry:

Code: Select all

...
${color}antiX-M11-686
...
I noticed that inxi reports it differently:

Code: Select all

inxi -b
System:    Host: antiX1 Kernel: 2.6.39-4.dmz.1-liquorix-686 i686 (32 bit) 
           Desktop IceWM 1.3.7 Distro: antiX-M11-686 Jayaben Desai 01 May 2011
...
Is "antiX-M11-686 Jayaben Desai 01 May 2011" stored in a file? If so where is it located?

Obtaining the value from this file might enable a modified Conky entry to report it directly.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
/etc/antix-version
Posts: 1,028
SamK
Joined: 21 Aug 2011
#3
Using the conky head variable has some unwanted consequences in this context, however the following works well. Simply replace the existing entry in .conkyrc as follows:

Existing entry

Code: Select all

...
${color}antiX-M11-686
...
Replacement entry

Code: Select all

...
${color}${exec cat /etc/antix-version | cut -d"" -f 1}
...
This trims off "Jayaben Desai 01 May 2011" resulting in "antiX-M11-686" being displayed. Both pratctically and aesthetically, this fits the current antiX default conky display.