You are not logged in.

#1261 2020-02-03 18:44:45

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

Just for fun ....
2020-02-03-154143-S11.jpg

${goto 65}Schriftart "Poky"
${font Poky:size=15}
 1 2 3 4 5
 6 7 8 9 0

 a b c d e f
 g h i j k l
 m n o p q r
 s t u v w x
 y z

 A B C D E F
 G H I J K L
 M N O P Q R
 S T U V W X
 Y Z${font}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1262 2020-02-03 19:09:39

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

Sector11 wrote:

OHHHH That's nice - clickable conkys ... does the new conky have the "pre_exec" command?

Of course he doesn't have the order!   ]:D


Thank you, my friend, for your logical and understandable
explanation. Convincing - and, stored. 
I like "monofur", I got it from you  wink

Sector11 wrote:

Just for fun ....

Super fun (and, instructive for the conky fans)   big_smile


PS: A wonderful snow landscape. Is it lying with you? But after Adam Riese you should have summer.

It hasn't even snowed here this winter. The children are sad.
I ask myself, what else should this become !

Offline

#1263 2020-02-03 20:26:41

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

unklar wrote:
Sector11 wrote:

OHHHH That's nice - clickable conkys ... does the new conky have the "pre_exec" command?

Of course he doesn't have the order!   ]:D

GRRRR Oh well maybe some day.  big_smile

Thank you, my friend, for your logical and understandable
explanation. Convincing - and, stored. 
I like "monofur", I got it from you  wink

Sector11 wrote:

Just for fun ....

Super fun (and, instructive for the conky fans)   big_smile

You're welcome and you're welcome

PS: A wonderful snow landscape. Is it lying with you? But after Adam Riese you should have summer.

It hasn't even snowed here this winter. The children are sad.
I ask myself, what else should this become !

No no snow .. it is summer at the moment 31° but the heat Index is 34° so my wife put this wallpaper on so we can "think cold"  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1264 2020-02-04 08:26:34

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,641

Re: Show us your conky

Sector11 wrote:

No no snow .. it is summer at the moment 31° but the heat Index is 34° so my wife put this wallpaper on so we can "think cold"  big_smile

In the truest sense of the word, a cool idea.
I love smart women.   smile

Offline

#1265 2020-02-04 14:20:23

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

Is there any way to get conky to show current desktop you are working. Im using a panel conky in cwm window manager and had the idea maybe i could show the current desktop im working in plus maybe have the ability to show when switched to another desktop similar to tint2 or maybe dwm statusbar? Im thinking maybe a script via xdotool or xprop might be in order.

edit:

can do

wmctrl -d | grep "*" | awk '{print $1}'

which gives me the number of the desktop im working in that being numero uno "1". How to implement that in my conky though?

conky.config = {
out_to_x = true,
own_window = true,
own_window_colour = '4a4e4d',
own_window_type = 'override',
own_window_transparent = false,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
double_buffer = true,
own_window_argb_value = 200,
minimum_width = 1366, minimum_height = 0,--# width, height
maximum_width = 1366,--# width, usually a good idea to be '=' or '>' minimum width
gap_x = 0,-- left-right
gap_y = 3,-- up-down
alignment = 'tl',
use_xft = true,
font = 'Terminus:style=Bold:size=12',
xftalpha = 1,
override_utf8_locale = true,
draw_shades = false,
draw_outline = false,-- amplifies text if yes
default_outline_color = 'black',
uppercase = false,
default_shade_color = 'grey',
default_outline_color = 'black',
default_color = '#DCDCDC',
color0 = '#8FBC8F',
color1 = '#778899',
color2 = '#FF8C00',
color3 = '#7FFF00',
color4 = '#FFA07A',
color5 = '#FFDEAD',
color6 = '#00BFFF',
color7 = '#0ed839',
color8 = '#e6e6ea',
color9 = '#FFFF00',-
draw_borders = false,
stippled_borders = 0,
border_inner_margin = 2,
border_outer_margin = 1,
border_width = 0,
draw_graph_borders = false,
default_graph_width = 15, default_graph_height = 40,
use_spacer = 'left',
text_buffer_size = 2048,
no_buffers = true,
short_units = true,
pad_percents =1,
update_interval = 1,
};
conky.text = [[
${color8} CPU:${color #3a8ded}${cpu cpu0}%${color8}   \
RAM:${color #3a8ded}${mem}/${memmax}${color8}   \
DISC:${color #3a8ded}${fs_used_perc /}%${color8}   \
D/L:${color #3a8ded}${totaldown wlp7s0b1}${color8}   \
U/L:${color #3a8ded}${totalup wlp7s0b1}${color8}   \
NET:${color #3a8ded}${gw_iface}${color8}   \
CPU°: \
0${color #3a8ded}${hwmon 1 temp 2}°${color8} \
1${color #3a8ded}${hwmon 1 temp 3}°${color8} \
2${color #3a8ded}${hwmon 1 temp 4}°${color8} \
3${color #3a8ded}${hwmon 1 temp 5}°${color8}  \
BATT:${color #3a8ded}${battery_percent BAT1}%${color8}   \
VOL:${color #3a8ded}${exec amixer get Master | awk 'NR==5{print $4}' | tr -d {[]}}${color8} \
${alignr}${color #3a8ded} ${time %R} \

]];

Last edited by clusterF (2020-02-04 14:47:51)

Offline

#1266 2020-02-04 14:54:24

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ nevermind it wasnt as hard as i thought it would be. Added below line in conky text.

${exec wmctrl -d | grep "*" | awk '{print $1}'}  \

2020-02-05-00-55-53-scrot.png

Last edited by clusterF (2020-02-04 14:57:20)

Offline

#1267 2020-02-04 17:18:54

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

why? WHY? WHY?  WHY?

Do people insist on doing simple things in complicated ways?

I saw this over on the Debian Wiki just the other day:

Read The Fantastic Manuals
- then they talked about another program BUT In this case:

man conky

... and we get:

       desktop
              Number  of  the  desktop on which conky is running or the message "Not running in X" if this is
              the case.

       desktop_name
              Name of the desktop on which conky is running or the message "Not running in X" if this is  the
              case.

       desktop_number
              Number of desktops or the message "Not running in X" if this is the case.

Soooooo :

Desktop: ${desktop_name}
Is number ${desktop} of ${desktop_number} desktops.

2020-02-04-140646-S11.jpg
Obviously a cut and paste job to show my test conky on 4 different desktops in one screen.

No CPU expensive "exec" command required:

       exec command
              Executes a shell command and displays the output in conky. warning: this takes a lot more
              resources than other variables. I'd recommend coding wanted behaviour in C and posting a patch.

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1268 2020-02-04 17:30:31

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

clusterF wrote:
wmctrl -d | grep "*" | awk '{print $1}'

BE CAREFUL with "wmctrl" it starts counting at 0

So that command says "Desktop1" is: 0

 04 Feb 20 @ 14:25:13 ~
   $ wmctrl -d | grep "*" | awk '{print $1}'
0
 
 04 Feb 20 @ 14:25:15 ~
   $

and "Desktop2" is: 1

 04 Feb 20 @ 14:25:15 ~
   $ wmctrl -d | grep "*" | awk '{print $1}'
1
 
 04 Feb 20 @ 14:26:49 ~
   $ 

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1269 2020-02-04 22:27:36

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ definitely should have RTFM, thanks Sector11. just ${desktop} works perfectly for what i want in the bar/panel conky. Cheers.

So if using exec in conky does it keep executing that command specified? I thought it was a once only deal everytime it is asked for?

Offline

#1270 2020-02-04 23:45:02

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

clusterF wrote:

^ definitely should have RTFM, thanks Sector11. just ${desktop} works perfectly for what i want in the bar/panel conky. Cheers.

Isn't it FANTASTIC what MANUALS can do for us  big_smile

Loved the way Debian described that.

So if using exec in conky does it keep executing that command specified? I thought it was a once only deal everytime it is asked for?

It executes it every update:

update_interval = 1,

The "execute" once only command disappeared with v1.10, one of the reasons I still use v1.9: pre_exec

pre_exec shell command
              Executes a shell command one time before conky displays anything and puts output as text.

and never runs again ....

I use it with a few conkys but the main one counts time from certain dates to today.

For example the day I stopped drinking:

 15/01/86: ${color1}${pre_exec conkyDateDiff 19860115}${goto 305}${color5}${pre_exec conkyDaysDiff 19860115}${color}

There are 56 instances of "pre_exec" in that one conky alone.

IF I set it to:

 15/01/86: ${color1}${execi 86400 conkyDateDiff 19860115}${goto 305}${color5}${execi 86400 conkyDaysDiff 19860115}${color}

Sure it only updates once a day BUT conky checks it every second to see if it is time to update - "I think".

EDIT:

 04 Feb 20 @ 20:46:36 ~
   $ conkyDateDiff 19860115
34 yrs 20 days
 
 04 Feb 20 @ 20:46:39 ~
   $ conkyDaysDiff 19860115
12438
 
 04 Feb 20 @ 20:47:01 ~
   $ 

Last edited by Sector11 (2020-02-04 23:49:19)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1271 2020-02-05 11:33:32

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ thanks for that explanation Sector11.

I tested conky with ${desktop} on my other desktop machine that uses openbox this morning and conky was reporting correctly with openbox, but this afternoon testing now on my laptop with cwm window manager and conky reports that desktop 1 is actually desktop 2, wmctrl -d reports im indeed on desktop 1. So all i can gather is perhaps this is an interaction issue between conky and cwm. I will try to debug this myself somehow so not asking for any help here, just thought i would share my issue.

edit0: also what is strange is that ${desktop_name} reports im on "one" as it should, ${desktop_number} says "10".

edit1: Another discovery,

xdotool get_desktop

is much better solution than stringing three commands together like so..

wmctrl -d | grep "*" | awk '{print $1}'

Last edited by clusterF (2020-02-05 12:50:57)

Offline

#1272 2020-02-05 13:24:33

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

clusterF wrote:

^ thanks for that explanation Sector11.

I tested conky with ${desktop} on my other desktop machine that uses openbox this morning and conky was reporting correctly with openbox, but this afternoon testing now on my laptop with cwm window manager and conky reports that desktop 1 is actually desktop 2, wmctrl -d reports im indeed on desktop 1. So all i can gather is perhaps this is an interaction issue between conky and cwm. I will try to debug this myself somehow so not asking for any help here, just thought i would share my issue.

edit: also what is strange is that ${desktop_name} reports im on "one" as it should, ${desktop_number} says "10".

Hmmmmmmmmmm I wonder:

Description
cwm is a stacking window manager oriented towards heavy keyboard usage,[9][10] small footprint and ease of use. While it lacks explicit virtual desktops functionality, it can be emulated by using the window groups mechanism.[11] cwm does not draw window decorations except for a 1-pixel border around windows.

grasping at straws as I know ZIP about cwm.

BUT:

wmctrl -d | grep "*" | awk '{print $1}'

will always report one number less than

${desktop}

because wmctrl starts counting desktops at 0 while ${desktop} starts counting at desktop  1

The bash script that starts my conkys, at one time I had conkys on 7 desktops:

#!/bin/bash

killall conky

# on desktop 7 = wmctrl -s 6
###############################

# on desktop 6 = wmctrl -s 5
###############################

# on desktop 5 = wmctrl -s 4
###############################

# on desktop 4 = wmctrl -s 3
###############################

# on desktop 3 = wmctrl -s 2
###############################
(sleep 0 && wmctrl -s 2 && conky -c ~/.conkyrc) &

# on desktop 2 = wmctrl -s 1
###############################
(sleep 1 && wmctrl -s 1 && conky -c /media/5/Conky/S11_Rem_Cal.conky) &
(sleep 1 && wmctrl -s 1 && conky -c /media/5/Conky/S11_Dates.conky) &

# on desktop 1 = wmctrl -s 0
###############################
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/time.conky) &
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/S11_thin_r2_side.conky) &
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/S11_thin_l2_side.conky) &
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/S11_Rem_Today.conky) &
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/S11_DateTime_br.conky) &
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/S11_Email_0.conky) &

# on all desktops
##########################
(sleep 2 && wmctrl -s 0 && conky -c /media/5/Conky/Eagle.conky) &

Try this make a test conky with just this line below TEXT section:

Desktop: ${desktop_name}, is number ${desktop} of ${desktop_number}

And in the test conky: change "override" to "normal" as seen below ...
Run the test conky in let's say top-left corner of your screen for a couple of days below your "not really a "panel conky"

I just noticed something you are NOT running a panel conky.  You are running an "override" one line conky:

own_window_colour = '4a4e4d',
own_window_type = 'override',
own_window_transparent = false,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

and further more with

own_window_type = 'override',

this line is useless:

own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

Again the man page ... reformatted S11 but I did not change the content:

own_window_type

if own_window is yes, you may specify type
- normal, (default: normal)
- desktop,
- dock,
- panel (S11 - see PANEL below), or
- override (S11 - see OVERRIDE below)

NOTE BY S11:  You chose override vs panel or normal

Desktop windows are special windows that
- have no window decorations;
- are always visible on your desktop;
- do not appear in  your  pager or  taskbar;  and
-  are  sticky  across  all workspaces.

PANEL windows reserve space along a desktop edge, just like panels and taskbars, preventing maximized windows from overlapping them. The edge is chosen based on  the  alignment option.

OVERRIDE windows are not under the control of the window manager.
- Hints are ignored.
- - NOTE S11: so "own_window_hints" are ignored.
- This type of window can be useful for certain situations.

Last edited by Sector11 (2020-02-05 13:25:46)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1273 2020-02-05 13:49:40

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

Thanks sector11, i think it is just cwm not playing well with conky in the format im trying to use it in.

"own_window_type =" no matter what string i use has no effect in cwm as far as i can tell.

you are right about "own_window_hints =" from testing i do need this line but only with "sticky" so it appears on all desktops, otherwise all other configuration is done via cwmrc to allow for conky.

as it stands your suggestion to run

Desktop: ${desktop_name}, is number ${desktop} of ${desktop_number}

reads "Desktop: one, is 2 of 10"


interestingly wmctrl -d reports below output.

0  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  nogroup
1  * DG: 1366x768  VP: 0,0  WA: 0,19 1366x749  one
2  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  two
3  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  three
4  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  four
5  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  five
6  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  six
7  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  seven
8  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  eight
9  - DG: 1366x768  VP: N/A  WA: 0,19 1366x749  nine

Cheers

Last edited by clusterF (2020-02-05 13:57:29)

Offline

#1274 2020-02-05 15:22:45

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: Show us your conky

clusterF wrote:

Thanks sector11, i think it is just cwm not playing well with conky in the format im trying to use it in.

Mostly because of this:

Sector11 wrote:

While it lacks explicit virtual desktops functionality, it can be emulated by using the window groups mechanism.[11]

If you haven't seen it, this is a good explanation of using groups as virtual desktops: Getting started with cwm

And here is an interesting post of using a script to display the cwm window groups - Conky as status bar in cwm

Follow the link to the reddit page and there is an image of the conky and links to the author's dotfiles.


You must unlearn what you have learned.
    -- yoda

Offline

#1275 2020-02-05 17:33:44

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

OK, we have it down to "cwm" not liking ${desktop} in conky.

I which case ... cF stick with this:

${exec wmctrl -d | grep "*" | awk '{print $1}'}  \

for one conky it will not hurt you.  big_smile

Also if this was me ... I'd use:

own_window yes
own_window_type normal
own_window_hints sticky,undecorated #skip_taskbar,skip_pager,below

simply because I like to 'control things' a bit


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1276 2020-02-05 17:58:54

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

PackRat wrote:

If you haven't seen it, this is a good explanation of using groups as virtual desktops: Getting started with cwm

And here is an interesting post of using a script to display the cwm window groups - Conky as status bar in cwm

Follow the link to the reddit page and there is an image of the conky and links to the author's dotfiles.

All new to me.  Did not see ${desktop} in there though  big_smile
Thank you PackRat


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1277 2020-02-05 21:27:14

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 2,611

Re: Show us your conky

Sector11 wrote:

OK, we have it down to "cwm" not liking ${desktop} in conky.

I which case ... cF stick with this:

${exec wmctrl -d | grep "*" | awk '{print $1}'}  \

for one conky it will not hurt you.  big_smile

Also if this was me ... I'd use:

own_window yes
own_window_type normal
own_window_hints sticky,undecorated #skip_taskbar,skip_pager,below

simply because I like to 'control things' a bit

@S11 @clusterF - what is the output of just this command:

wmctrl -d | grep "*"

if I'm not mistaken, the last number in that line is the recalculated desktop number. So changing:

wmctrl -d | grep "*" | awk '{print $1}'

to

wmctrl -d | grep "*" | awk '{print $10}'       # yours might not be 10

will give you the desktop number starting with "1"  -- although not sure that will be what you'll want with cwm.

screenshots, fluxbox example:

February-1580937645-1920x1080.png

February-1580937727-1920x1080.png

Last edited by PackRat (2020-02-05 21:28:45)


You must unlearn what you have learned.
    -- yoda

Offline

#1278 2020-02-05 22:22:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Show us your conky

OpenBox only

Moving my terminal through the four desktops

 05 Feb 20 @ 19:15:16 ~
   $ wmctrl -d | grep "*"
0  * DG: 1920x1080  VP: 0,0  WA: 2,2 1916x1052  SR-71
 
 05 Feb 20 @ 19:15:19 ~
   $ wmctrl -d | grep "*"
1  * DG: 1920x1080  VP: 0,0  WA: 2,2 1916x1052  SR-72
 
 05 Feb 20 @ 19:15:35 ~
   $ wmctrl -d | grep "*"
2  * DG: 1920x1080  VP: 0,0  WA: 2,2 1916x1052  SR-73
 
 05 Feb 20 @ 19:15:43 ~
   $ wmctrl -d | grep "*"
3  * DG: 1920x1080  VP: 0,0  WA: 2,2 1916x1052  SR-74
 
 05 Feb 20 @ 19:15:49 ~
   $ 

and from Desktop1

 
 05 Feb 20 @ 19:20:05 ~
   $ wmctrl -d | grep "*" | awk '{print $1}'
0
 
 05 Feb 20 @ 19:20:17 ~
   $ wmctrl -d | grep "*" | awk '{print $2}'
*
 
 05 Feb 20 @ 19:20:25 ~
   $ wmctrl -d | grep "*" | awk '{print $3}'
DG:
 
 05 Feb 20 @ 19:20:31 ~
   $ wmctrl -d | grep "*" | awk '{print $4}'
1920x1080
 
 05 Feb 20 @ 19:20:36 ~
   $ wmctrl -d | grep "*" | awk '{print $5}'
VP:
 
 05 Feb 20 @ 19:20:42 ~
   $ wmctrl -d | grep "*" | awk '{print $6}'
0,0
 
 05 Feb 20 @ 19:20:47 ~
   $ wmctrl -d | grep "*" | awk '{print $7}'
WA:
 
 05 Feb 20 @ 19:20:52 ~
   $ wmctrl -d | grep "*" | awk '{print $8}'
2,2
 
 05 Feb 20 @ 19:20:58 ~
   $ wmctrl -d | grep "*" | awk '{print $9}'
1916x1052
 
 05 Feb 20 @ 19:21:03 ~
   $ wmctrl -d | grep "*" | awk '{print $10}'
SR-71
 
 05 Feb 20 @ 19:21:09 ~
   $ 

EDIT 1:  @PackRat

Did you give your desktops "names" - if not I'd bet that "1" you get is a default for the name.

EDIT 2: From the wmctrl man page:

ARGUMENTS
<DESK>
A Desktop is always specified by an integer which represents the desktop numbers. Desktop numbers start at 0.

Last edited by Sector11 (2020-02-05 22:34:02)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1279 2020-02-05 22:23:16

clusterF
Member
Registered: 2019-05-07
Posts: 539

Re: Show us your conky

^ will get back to you later on today when im back in front of the laptop.

edit: i think i will just stick with conky exec command, cpu usage is minimal.

${exec xdotool get_desktop}

Last edited by clusterF (2020-02-06 11:04:30)

Offline

#1280 2020-02-06 08:09:30

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

@ Théo

i have this

qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep artist
   "artist" : "Pseudo Echo",

& this

qdbus com.github.radiotray_ng /com/github/radiotray_ng com.github.radiotray_ng.get_player_state | grep title
   "title" : "Funky Town",

it's right but script don't work


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

Board footer

Powered by FluxBB