You are not logged in.

#1 2020-11-16 21:44:24

juancuyo
Member
Registered: 2017-11-17
Posts: 22

Menu openbox and windows

Good afternoon since I installed the latest version of Bunsenlabs, the menu never changes color depending on the chosen window, therefore when choosing Onyx the window changes but not the menu, I would appreciate some information to solve the problem

https://i.imgur.com/jIky4fX.png

Offline

#2 2020-11-16 22:24:36

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

Re: Menu openbox and windows

Did you do Menu > Preferences > jgmenu > Sync theme with Openbox ?


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

#3 2020-11-17 06:06:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,414
Website

Re: Menu openbox and windows

^That menu entry no longer exists.

jgmenu should now (I understand) auto-sync its colours with the GTK theme, watching for changes to ~/.config/gtk-3.0/settings.ini. Onyx, though, is an openbox, not GTK, theme, so the menu will not change to match it.

There used also to be a "sync with openbox" CLI option, but I don't know if it's still available.

We need input from @malm to take this discussion further, though.


...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

#4 2020-11-17 07:14:20

malm
jgmenu developer
Registered: 2016-10-13
Posts: 643
Website

Re: Menu openbox and windows

jgmenu_run obtheme

https://github.com/johanmalm/jgmenu/blo … -obtheme.c

We ought to write a man page for this.

Last edited by malm (2020-11-17 07:14:37)

Offline

#5 2020-11-17 07:21:05

hhh
Meep!
Registered: 2015-09-17
Posts: 10,755
Website

Re: Menu openbox and windows

^ Agreed, although this forum post is a good start. smile

Offline

#6 2020-11-17 09:24:08

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 750

Re: Menu openbox and windows

malm wrote:
jgmenu_run obtheme

https://github.com/johanmalm/jgmenu/blo … -obtheme.c

We ought to write a man page for this.

Or at least add it to Introduction to the Bunsenlabs Lithium Desktop
Under heading: "Main menu". At the same time, maybe rename that heading to "Main Menu - jgmenu".

-mod edit by hhh- Fixed "menu" for you and another typo or two. And +1 to those recommendations.


// Regards rbh

Offline

#7 2020-11-18 07:04:05

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,414
Website

Re: Menu openbox and windows

malm wrote:
jgmenu_run obtheme

While this short form seems to work for gtktheme, I found that in order for the Openbox theme to be changed I had to use:

jgmenu_run init --apply-obtheme

Using jgmenu 4.2.1+bl10-1


...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

#8 2020-11-18 16:47:13

hhh
Meep!
Registered: 2015-09-17
Posts: 10,755
Website

Re: Menu openbox and windows

Hmm. Once again the plot thickens.

Offline

#9 2020-11-18 19:06:11

malm
jgmenu developer
Registered: 2016-10-13
Posts: 643
Website

Re: Menu openbox and windows

johnraff wrote:
malm wrote:
jgmenu_run obtheme

While this short form seems to work for gtktheme, I found that in order for the Openbox theme to be changed I had to use:

jgmenu_run init --apply-obtheme

Using jgmenu 4.2.1+bl10-1

@johnraff - it just goes to show, you know it better than me smile

Although, just to clarify, `jgmenu_run init --apply-obtheme` is just a convenience wrapper for `jgmenu_run obtheme ~/.config/jgmenu/jgmenurc`, so we're saying the same thing.

Offline

#10 2020-11-18 21:37:02

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

Re: Menu openbox and windows

Is it also the same effect as

JGMENU_RCXML=$HOME/.config/openbox/bl-rc.xml jgmenu init --apply-obtheme

?


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

#11 2020-11-19 05:14:12

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,414
Website

Re: Menu openbox and windows

malm wrote:

Although, just to clarify, `jgmenu_run init --apply-obtheme` is just a convenience wrapper for `jgmenu_run obtheme ~/.config/jgmenu/jgmenurc`

Without passing a file, it should be looking for the rc file, but just outputs this help message:

john@lithium-RC5:~/.config/jgmenu$ jgmenu_run obtheme
Usage: jgmenu_run obtheme <jgmenu-config-filename>
Imitate look of current openbox menu by parsing current openbox theme and
setting variables in specified jgmenu config file. The theme name will be
obtained from the following list (in order of precedence):
  * ~/.config/openbox/bl-rc.xml
  * ~/.config/openbox/rc.xml
  * /etc/xdg/openbox/rc.xml
The above list can be overridden by setting environment variable JGMENU_RCXML.
Openbox theme files will be searched for in:
  * ~/.themes/
  * /usr/share/themes/

If you give it the file, it works:

john@lithium-RC5:~/.config/jgmenu$ jgmenu_run obtheme ~/.config/openbox/bl-rc.xml
info: detected theme 'BL-Lithium' from file '/home/john/.config/openbox/bl-rc.xml'
info: found '/usr/share/themes/BL-Lithium/openbox-3/themerc'

The long 'init' command will search among the default files by itself, but now the plot thickens yet more:

john@lithium-RC5:~/.config/jgmenu$ jgmenu_run init --apply-obtheme
Backing up config files...
/home/john/.config/openbox/bl-rc.xml:953: parser error : Extra content at the end of the document
menu_border = 0
^
fatal: error reading file '/home/john/.config/openbox/bl-rc.xml'

The bottom of bl-rc.xml holds this:

menu_border = 0
color_title_bg = #2B454F 100
color_title_fg = #d3dae3 100
sep_markup = 
sep_halign = right
color_menu_bg = #2B454F 100
color_norm_fg = #d3dae3 100
color_sel_bg = #bc4b4f 100
color_sel_border = #bc4b4f 100
color_sel_fg = #ffffff 100
color_sep_fg = #535353 100

which should not be there of course.
Delete it, and all is well:

john@lithium-RC5:~/.config/jgmenu$ jgmenu_run init --apply-obtheme
Backing up config files...
info: detected theme 'BL-Lithium' from file '/home/john/.config/openbox/bl-rc.xml'
info: found '/usr/share/themes/BL-Lithium/openbox-3/themerc'

Those extra lines at the end of bl-rc.xml appeared once yesterday too, but I still haven't pinned down what triggers the write.
Also, sometimes jgmenurc gets truncated down to

color_menu_bg = #22373f 100
color_sel_bg = #bc4b4f 100
color_sel_fg = #ffffff 100
color_norm_fg = #d3dae3 100

but I haven't yet found how to reliably reproduce that either.

But this is drifting away from the topic.
For now, @juancuyo I would suggest changing the menu colours via the GTK theme instead of the openbox theme, ie menu > Preferences > Appearance

@malm, if I find how to reproduce the above issues I'll post on GitHub.


...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

#12 2020-11-23 19:34:55

juancuyo
Member
Registered: 2017-11-17
Posts: 22

Re: Menu openbox and windows

Well, I have followed your advice and the menu is like this, thank you very much

https://i.imgur.com/ceZQuRp.png

Offline

#13 Yesterday 08:59:40

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,414
Website

Re: Menu openbox and windows

Off Topic, but just in case anyone was worrying, I was wrong here, confusing the openbox rc file with the jgmenu config file.

johnraff wrote:
malm wrote:

Although, just to clarify, `jgmenu_run init --apply-obtheme` is just a convenience wrapper for `jgmenu_run obtheme ~/.config/jgmenu/jgmenurc`

Without passing a file, it should be looking for the rc file, but just outputs this help message...
...
If you give it the file, it works:

john@lithium-RC5:~/.config/jgmenu$ jgmenu_run obtheme ~/.config/openbox/bl-rc.xml

I gave it the wrong file, which it then wrote to, thinking it was a jgmenu config file, hence:

The bottom of bl-rc.xml holds this:

menu_border = 0
color_title_bg = #2B454F 100
color_title_fg = #d3dae3 100
(etc)

which should not be there of course.

---
I still don't know what this is about though - it happened twice, but not since that last post:

Also, sometimes jgmenurc gets truncated down to

color_menu_bg = #22373f 100
color_sel_bg = #bc4b4f 100
color_sel_fg = #ffffff 100
color_norm_fg = #d3dae3 100

but I haven't yet found how to reliably reproduce that either.


...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

Board footer

Powered by FluxBB