You are not logged in.

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

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

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)


"Ad Astra Incrementis"

git: clusterF

Online

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 5,846

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)


The sun will never set if you keep walking towards it. - my son
He has finished the chemo and rang the Gong!
Finished the radiation treatment and rang the Gong!
Now to finish the immunology treatments.

Offline

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

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

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)


"Ad Astra Incrementis"

git: clusterF

Online

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

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,168

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

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 5,846

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


The sun will never set if you keep walking towards it. - my son
He has finished the chemo and rang the Gong!
Finished the radiation treatment and rang the Gong!
Now to finish the immunology treatments.

Offline

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 5,846

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


The sun will never set if you keep walking towards it. - my son
He has finished the chemo and rang the Gong!
Finished the radiation treatment and rang the Gong!
Now to finish the immunology treatments.

Offline

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

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,168

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

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

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 5,846

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)


The sun will never set if you keep walking towards it. - my son
He has finished the chemo and rang the Gong!
Finished the radiation treatment and rang the Gong!
Now to finish the immunology treatments.

Offline

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

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

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)


"Ad Astra Incrementis"

git: clusterF

Online

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

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

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 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#1286 2020-02-06 15:10:18

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 5,846

Re: Show us your conky

clusterF wrote:

^ 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}


Yup, like I said, if it's a cwm problem whatever works.

Does that command report a 1 for desktop 1 in cwm?

It acts like wmctrl for me.

Nice find though no grep|awk needed.  :D

 06 Feb 20 @ 12:08:49 ~
   $ wmctrl -d | grep "*" | awk '{print $1}'
0
 
 06 Feb 20 @ 12:08:51 ~
   $ xdotool get_desktop
0
 
 06 Feb 20 @ 12:09:03 ~
   $ 

The sun will never set if you keep walking towards it. - my son
He has finished the chemo and rang the Gong!
Finished the radiation treatment and rang the Gong!
Now to finish the immunology treatments.

Offline

#1287 2020-02-07 14:33:14

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

Re: Show us your conky

Sector11 wrote:

Yup, like I said, if it's a cwm problem whatever works.

Does that command report a 1 for desktop 1 in cwm?

yes it does.


"Ad Astra Incrementis"

git: clusterF

Online

#1288 2020-02-07 18:33:14

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 5,846

Re: Show us your conky

AHA! <<--- If it ain't broke, don't fix it, keep it!

It is obviously a cwm "feature".

As Yoda would say:

Use the feature cF, use the feature.


The sun will never set if you keep walking towards it. - my son
He has finished the chemo and rang the Gong!
Finished the radiation treatment and rang the Gong!
Now to finish the immunology treatments.

Offline

#1289 2020-02-12 22:42:14

manuel-909
Member
Registered: 2017-10-09
Posts: 81

Re: Show us your conky

loutch radiotray-ng script start working again..
chears .. :>)

Offline

Board footer

Powered by FluxBB