You are not logged in.

#1 2021-06-15 06:51:24

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,283
Website

Detecting a sticky conky from config (in script)

In a script I want to be able to detect if a conky is sticky or not (so that if it's not sticky the script can offer to launch it on one of the available desktops).

Right now I'm looking for either own_window_type = desktop, or "sticky" among the own_window_hints. ie

own_window_type = desktop > is sticky
own_window_hints = *sticky* > is sticky
anything else > is not sticky

Is there anything else it should look for? How about other own_window_types like panel or override? Should they be considered sticky too (ie appear on all desktops and can't be sent from one desktop to another)?
How about own_window = false ?

Thanks!


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#2 2021-06-15 07:55:13

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

Re: Detecting a sticky conky from config (in script)

^Sorry @john, I'm in a hurry....

What would be important is this order:
own_window
own_window-type
own_window_hints

For openbox has already given tips here: http://conky.pitstop.free.fr/wiki/index … x_tip_(en)

Offline

#3 2021-06-17 07:21:40

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

Re: Detecting a sticky conky from config (in script)

'override' means that the window of Conky is managed by the (now) used window manager of the system window manager.
Therefore the line in Conky

own_window_hints

has no influence anymore and is ignored.

As far as I remember, all Conky's have always been set to 'normal', so that the
(my) hints in own_window_hints were respected.

'desktop' also shows a similar behavior for me, in that the conky's were 'sticky' on all
workspaces were 'sticky'.

own_window = false, the window does not appear. Here it is always set to YES. With Gnome and Nautilus I have never worked with.

I think, all future conky's in BL would have to contain 'sticky', so that your script could can recognize this and evaluate it accordingly. smile

Last edited by unklar (2021-06-17 07:22:20)

Offline

#4 2021-06-17 07:29:17

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,283
Website

Re: Detecting a sticky conky from config (in script)

Do 'override' conkys appear on all desktops? If so, then maybe this algorithm would be right:

own_window_type = desktop > is sticky
own_window_type = override > is sticky
own_window_hints = *sticky* > is sticky
otherwise > is not sticky

Last edited by johnraff (2021-06-17 07:31:31)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#5 2021-06-17 15:18:37

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

Re: Detecting a sticky conky from config (in script)

johnraff wrote:

Do 'override' conkys appear on all desktops? If so, then maybe this algorithm would be right:
...

Yes, because this line in Conky

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

is no longer evaluated (ignored).  big_smile

Offline

#6 2021-06-22 16:56:30

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

Re: Detecting a sticky conky from config (in script)

My normal settings for my test conky:

own_window yes
own_window_type normal # normal desktop dock panel override
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager #,sticky #,below,undecorated
own_window_colour 000000
own_window_class Conky
own_window_title Sector11's Test Conky

own_window_hints

normal
hints work and is on desktop 4 only
[Alt]+right click and drag to move
right click does not work to get OB menu BECAUSE it has window decorations
- set to undecorated
right click works to get OB menu - It has NO window decorations

desktop
hints do NOT work and on ALL desktops
no [Alt]+right click and drag to move
right click does not work to get OB menu no [Alt]+right click and drag to move
EDIT: The conky is dead area.  No mouse clicks at all

dock
on ALL desktops
crazy for a while was black background, went semi-transpatent and back to black
it keeps flipping: semi-transparent|black
no [Alt]+right click and drag to move
right click works to get OB menu

panel
on ALL desktops
crazy for a while was black background, went semi-transpatent and back to black
it keeps flipping: semi-transparent|black
no [Alt]+right click and drag to move
right click works to get OB menu

- I think Panel and dock are basically the same.

override
hints do NOT work
on ALL desktops
no [Alt]+right click and drag to move
right click works to get OB menu

Hope that helps.

Last edited by Sector11 (2021-06-23 19:02:57)


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#7 2021-06-22 18:33:15

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

Re: Detecting a sticky conky from config (in script)

^^No one can portray this better than the El Conkystador of the Internet.   big_smile   angel

Offline

#8 2021-06-23 02:28:34

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,283
Website

Re: Detecting a sticky conky from config (in script)

^^Muchas gracias!
Yes, that helps a lot. smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#9 2021-06-23 19:03:33

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

Re: Detecting a sticky conky from config (in script)

Slight edit above:  See "Desktop" section

And glad to help.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

#10 2021-06-23 20:03:17

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

Re: Detecting a sticky conky from config (in script)

unklar wrote:

^^No one can portray this better than the El Conkystador of the Internet.   big_smile   angel

Oh I'm sure others can do the same or better.

But thank you my friend.


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.
_______________________________
Debian 10 Buster = SharpBang ♯!

Offline

Board footer

Powered by FluxBB