[openbox] Adding to an existing openbox menu
Russell Belair
russell.belair at dreamlan.biz
Mon Dec 12 11:50:50 EST 2022
Hi Jim,
You are correct, jgmenu is not part of openbox, it is a replacement used by some linux distros. Here is a link to an online tutorial that might help you: https://jgmenu.github.io/jgmenututorial.7.html.
I use it in my bspwm window manager setup. Basically, it generates a menu from *.desktop files found in /usr/share/applications. You can also create static entries using your own *.csv file.
What I do is call the menu with a keybinding:
/usr/bin/jgmenu --simple --config-file=~/.config/jgmenu/jgmenurc --csv-file=~/.config/jgmenu/bspwm-menu.csv
The jgmenurc is the configuration file, which contains formatting for the menu (colors, fonts, etc) and the *.csv file contains the static entries in the menu.
Personally, I don't like dynamic menus...they often contain a lot of "junk programs" which are found in the /usr/share/applications folder, which I don't find very useful, and only seem to pollute the menu with unnecessary items. I always setup my menus, whether it is with openbox's menu.xml or with 3-party programs like jgmenu.
With Regards,
Russ
-----Original message-----
From: Jim Anderson <jjanders at ptd.net>
Sent: Monday December 12th, 2022 11:35
To: openbox at icculus.org
Subject: Re: [openbox] Adding to an existing openbox menu
Yes, that is what I have always done in the past. Recently, the Linux
distribution that I use started using' jgmenu' to generate menus. Until
I received your response, I thought 'jgmenu' is part of openbox, but I
now think that is incorrect. I have to step back and figure out what the
current jgmenu flow is.
Apparently, jgmenu generates the menus on the system and feeds that to
openbox somehow. I have been trying to change menu.xml and I believe
that is not valid now.
On 12/12/22 09:44, General wrote:
> On Mon, 12 Dec 2022 08:46:31 -0500
> Jim Anderson <jjanders at ptd.net> wrote:
>
>> Hi,
>>
>> I'm have been using openbox for years. Going back a few years, it was
>> pretty easy to change openbox menus. The debian distribution I use now
>> uses jgmenu to generate menus. The jgmenu system appears fairly complex
>> and to be honest I have little interest in taking days or weeks to learn
>> the system. However, I would like to learn enough to:
>>
>> A) Add my own static menu items to the existing top level menu
>>
>> B) Add static sub-menus to the static menus that I create.
>>
>> Can anyone advise how to do this, point me to examples, or point me to
>> documentation that I should look it?
>>
>> I have looked at http://openbox.org/wiki/Openbox:Community_portal, but I
>> cannot find a simple answer to my questions there.
>>
>> Jim A.
> It's been a long time since I've done this, but I always just edited the
> entries directly.
>
> /home/will/.config/openbox/menu.xml
>
_______________________________________________
openbox mailing list
openbox at icculus.org
http://icculus.org/mailman/listinfo/openbox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20221212/b94cb3a8/attachment-0001.htm>
More information about the openbox
mailing list