jwm icon indicating copy to clipboard operation
jwm copied to clipboard

Dynamic menus...

Open mrgreen3 opened this issue 3 years ago • 5 comments

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?

mrgreen3 avatar Mar 08 '22 15:03 mrgreen3

I mean I need root menu to update once an application is added to system.

mrgreen3 avatar Mar 10 '22 08:03 mrgreen3

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>

1sra3l avatar Mar 23 '22 20:03 1sra3l

Maybe #577 fixes this. Dynamic menus update just fine now, in my case.

dimkr avatar Jun 27 '22 12:06 dimkr

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

:)

FrostKnight avatar Aug 21 '22 14:08 FrostKnight