Dynamic menus...
Am trying to get dynamic menus working in JWM.
<|Menu label="Apps"> <Include>exec: xdg_menu --format jwm --fullmenu</Include> <|/Menu>
EDIT: Had to change tags to allow them to show up,,,,,
This works but does not update when other applications are installed.
Created a script to call xdg_menu (as above) and added jwm -reload but it still wil not update root-menu.
Are dynamic menus possible in JWM?
I mean I need root menu to update once an application is added to system.
From the Root Menu configuration page
<RootMenu onroot="m" dynamic="exec:/path/to/thing" />
- dynamic A file to load for the root menu. If the name begins with "exec:", then the name of an executable can be provided that will output the root menu. Note that the root menu structure must have a JWM tag at the top level. New in JWM 2.3.7.
And later on under the Dynamic tag:
<RootMenu onroot="m">
<Dynamic>exec:/path/to/thing<Dynamic>
</RootMenu>
Maybe #577 fixes this. Dynamic menus update just fine now, in my case.
Or, you could just use JWMKIT:
https://codeberg.org/JWMKit/JWM_Kit
Trust me, this makes JWM, not just better, it makes it mega user-friendly and without adding significant bloat.
By this I mean, it doesn't really add much cpu usage, etc... and best of all, you get an application menu, logout, suspend, poweroff, are easier to trigger as well. Oh and keybindings are easier to add if you want to have more than one special key required:
Alt + Shift + t
as an example
:)