You are not logged in.
Pages: 1
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
Offline
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
^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 )
Offline
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
^ Agreed, although this forum post is a good start.
Offline
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
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 )
Offline
Hmm. Once again the plot thickens.
Offline
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
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
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
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 )
Offline
Well, I have followed your advice and the menu is like this, thank you very much
Offline
Off Topic, but just in case anyone was worrying, I was wrong here, confusing the openbox rc file with the jgmenu config file.
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 )
Offline
Pages: 1