You are not logged in.

#21 2021-06-10 17:09:06

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Launching conky on a specific desktop.

@unklar   IIRC it was decided to use the default conky path because of the difficulty in knowing where else a user might keep their conky configs.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#22 2021-06-10 17:56:08

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

Re: Launching conky on a specific desktop.

^@damo, that is correct and is also fine. Thanks for your work. smile
My Conky's were just not in this standard path. big_smile

@john, in [beryllium] I have now cleaned the path and the configuration files. Still the mysterious syntax error remains, as shown above.
At the moment I don't know where else to look. I also replaced the conky -v1.11.6 with the predecessor 1.10.8. No success.

It works in lithium, not in [beryllium].  sad

Offline

#23 2021-06-11 05:03:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: Launching conky on a specific desktop.

@unklar thanks for the time you've put into this.
I've been doing most of my development and testing on Lithium - even though the scripts are meant for Beryllium. That syntax error... maybe Bash has changed in some subtle way on Bullseye? Definitely time for me to do some more testing on Beryllium.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#24 2021-06-11 06:14:50

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: Launching conky on a specific desktop.

OK I've found a couple of things:

1) The syntax error seems to be coming from incorrect escaping of single quotes. At least, you can reproduce it with grep, on Lithium or Beryllium:

grep -E -- '-c \'(.*(conky.*\.conf|conky|\.conkyrc))\'' ~/.config/conky/conky-sessionfile
bash: syntax error near unexpected token `('

The single quote needs to be escaped not like this

\'

but like this:

'\''

or else use double quotes outside the whole string:

grep -E -- "-c '(.*(conky.*\.conf|conky|\.conkyrc))'" ~/.config/conky/conky-sessionfile

But I still don't know @unklar why you get it when you run bl-conky-session on Beryllium. It runs OK for me (at least for the syntax thing).

2) Some BL scripts are writing conky-sessionfile with single quotes around the filepath, and some without. I'm not going to track it down right now because the new bl-conky-session won't need the quotes anyway (EDIT: think it's bl-conky-pipemenu), but CPATH_REGEX needs to cope with both cases in old-style files, so revised to:

CPATH_REGEX="-c '?(.*(conky.*\.conf|conky|\.conkyrc))'?([[:blank:]]+|$)"

The '? means the single quote is optional. The filepath part of the line is still well defined because it starts just after -c and space, and ends with one of those patterns with conky in: conkysomething.conf or conky or .conkyrc.

So I'll add those question marks to the regex above, but I still can't get the syntax error to appear when running bl-conky-session on Beryllium.

Last edited by johnraff (2021-06-11 06:48:50)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#25 2021-06-11 15:34:03

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

Re: Launching conky on a specific desktop.

@john,
both conky-sessionfile in lithium and beryllium have no single quotes in my case.
The only thing they have in common is that they were created by me by hand (with geany), not by a script.

Offline

#26 2021-06-11 23:54:35

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: Launching conky on a specific desktop.

@unklar - could you post the content of your beryllium conky-sessionfile?
I'l try running it on my VM.

The syntax error seems to come when BASH sees a bracket  (  which isn't properly quoted or escaped. That's because it has special significance to the shell. How that comes to happen for you but not for me is still not clear... smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#27 2021-06-12 07:04:37

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

Re: Launching conky on a specific desktop.

^This was this one: https://forums.bunsenlabs.org/viewtopic … 64#p115064
and the new one:

D[0] /home/unklar/.config/conky/data_conkyrc
D[1] /home/unklar/.config/conky/cmus_senk10

@john,
I will be traveling for 3 weeks starting tomorrow. [beryllium] I do not have with me for testing on the x40. There is "only" lithium installed on it.
I can not help you further with the problem for now.  smile

Offline

#28 2021-06-12 08:02:29

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: Launching conky on a specific desktop.

^Anyway, many thanks for your help so far!


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#29 2021-06-15 03:01:01

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,552
Website

Re: Launching conky on a specific desktop.

NOTE: if a conky is sent to a certain desktop by wmctrl or xdotool, then restarted, it will revert to the current desktop. Something to be aware of.

For a user that wants to set up a personal collection of conkys on various desktops and then leave it that way, PackRat's approach really makes the most sense:

PackRat wrote:

If you use the conky config settings to define the conky window; for example:

own_window = true,
own_window_colour = '#141414',
own_window_transparent = true,
own_window_type = 'normal' ,
own_window_hints = 'below,skip_taskbar,skip_pager',
own_window_class = 'Conkytzdata',
own_window_title = 'Conkytzdata',

The you can use the defined own_window_class and own_window_title in the openbox per app settings to have openbox place the conky window on the preferred desktop. Then it's just a matter of setting up a key binding or menu entry to launch the conky. No need to invoke wmctrl or xdotool.

I know this method works for openbox and fluxbox; it should work for any window manager that allows for per-application settings (i3, bspwm, awesome - most of the popular window managers).

That should survive conky restarts, reboots, whatever. smile


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB