Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Conky - Display XFCE Version

Post Reply
User avatar
smilliken
Forum Regular
Forum Regular
Posts: 2191
Joined: Tue Feb 06, 2007 11:47 pm

Conky - Display XFCE Version

#1

Post by smilliken » Fri Aug 23, 2019 11:37 am

I know I had this figured out a while back, but now wanting to update one of my conkys, I can't seem to locate.

In the KDE desktop version, one uses this
{execi 10000 /usr/bin/kde4-config -v | grep KDE}
I tried changing a few things which did not work.

Read thru the help of inxi and did not see anything that would provide just the "4.13.4" type of information.

IT is probably in the forum somewhere, just need to hit on the right search.

Thanks

Scott
There is no "Ctrl+Z" in life!
Panasonic Toughpad FZ-G1 - MX-18
Acer 7551G MX-18 & Win 10
HP DV4-1118 Mx18 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
kmathern
Developer
Posts: 9707
Joined: Wed Jul 12, 2006 2:26 pm

Re: Conky - Display XFCE Version

#2

Post by kmathern » Fri Aug 23, 2019 12:02 pm

Maybe something like this:

Code: Select all

inxi -S | grep Desktop.* -o | awk '{print $NF}'


Which on my MX-16.x install returns:

Code: Select all

$ inxi -S | grep Desktop.* -o | awk '{print $NF}'
4.12.3


And there's probably other ways (and better ways) to get it.

User avatar
smilliken
Forum Regular
Forum Regular
Posts: 2191
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky - Display XFCE Version

#3

Post by smilliken » Fri Aug 23, 2019 12:21 pm

Thanks for quick reply. I'll give it a go.
There is no "Ctrl+Z" in life!
Panasonic Toughpad FZ-G1 - MX-18
Acer 7551G MX-18 & Win 10
HP DV4-1118 Mx18 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
gosia
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Apr 28, 2019 3:43 pm

Re: Conky - Display XFCE Version

#4

Post by gosia » Fri Aug 23, 2019 12:25 pm

slightly shorter

Code: Select all

inxi -S | awk '/Desktop/ {print $NF}'

User avatar
kmathern
Developer
Posts: 9707
Joined: Wed Jul 12, 2006 2:26 pm

Re: Conky - Display XFCE Version

#5

Post by kmathern » Fri Aug 23, 2019 12:38 pm

Looks like you could also use the xfdesktop -V command to find the XFCE version

Code: Select all

$ xfdesktop -V
This is xfdesktop version 4.12.3, running on Xfce 4.12.
Built with GTK+ 2.24.25, linked with GTK+ 2.24.25.
Build options:
    Desktop Menu:        enabled
    Desktop Icons:       enabled
    Desktop File Icons:  enabled

And this will grep it

Code: Select all

$ xfdesktop -V | head -1 | grep -Eo [0-9].[0-9]+.[0-9]+
4.12.3

User avatar
Stevo
Developer
Posts: 20110
Joined: Fri Dec 15, 2006 8:07 pm

Re: Conky - Display XFCE Version

#6

Post by Stevo » Fri Aug 23, 2019 1:57 pm

WARNING WARNING WARNING

INFINITE TIME LOOP DETECTED

TO AVOID BEING TRAPPED FOR ETERNITY, PLEASE KILL YOUR REALITY SHELL and REBOOT YOUR UNIVERSE

User avatar
smilliken
Forum Regular
Forum Regular
Posts: 2191
Joined: Tue Feb 06, 2007 11:47 pm

Re: Conky - Display XFCE Version

#7

Post by smilliken » Fri Aug 23, 2019 2:31 pm

I was trying to edit the first post and it seems to have created more!

Those two can be deleted.
There is no "Ctrl+Z" in life!
Panasonic Toughpad FZ-G1 - MX-18
Acer 7551G MX-18 & Win 10
HP DV4-1118 Mx18 & Win 10
HP CP1215/Brother DCP-7065DN
Linux User# 4523410

User avatar
i_ri
Forum Regular
Forum Regular
Posts: 368
Joined: Tue Jun 30, 2015 12:26 am

Re: Conky - Display XFCE Version

#8

Post by i_ri » Thu Aug 29, 2019 3:24 am

Hello smilliken
if it is static why not just text it in; it will save making the periodic exec?

this command:

Code: Select all

inxi -S | awk '{print $10,$11}'
might look like this in conky

Code: Select all

${color}session  ${exec inxi -S | awk '{print $10,$11}'}

Post Reply

Return to “Desktop Environment”