I'm not familiar with xdg menu specification but I think extracting and building menu from desktop files shouldn't be hard for experienced coder, all the info is in desktop txt files like category, execute command, program name, you just reorganize it to suit your wm's specific menu format or a standalone menu like this one.

I don't know bash much, but I think this could be even done with bash and maybe some graphical dialog_________________puppy.b0x.me stuff mirrored HERE or HERE

if so (and i can't say if it's elegant) this goes to Chris Rouch who is the original author of the parser scrip i modified for my needs.

Quote:

Also, spm is a "liberation" in the sense that the aemenu can be constructed by spm from the *.desktop files directly rather than from the menu of another wm.

yes.

Quote:

Out of curiosity,
1) I wonder how the original author of aewm did it? I gather that his recipe was lost like an old Egyptian papyrus? Maybe I was not looking in the right places, but I could not find on the Web any menu creator for aemenu or aewm++ (aka sapphire).

the simple answer (afaik): you do it yourself with a text-editor. you'll find that concept on most wm, the user has full control (and i like that very much). but i always wanted to be able to have both...

Quote:

2) would your spm work in another distro which uses aemenu?

yes, buuttt... (there always has to be a but and the following is a typical puppy-but): the package and the spm-script is configured wrong for 'the outer world'. it used /root instead of $HOME, what is ok for puppy but not for the others... but maybe i'm able to correct this for an update...

Quote:

Finally, would it be much trouble to come up with an "spdm" (simple puppy disk menu) to show / access the mounted disks ? Then, one could reduce the number of puppy disk icons at the bottom left of the screen to one (the essential minimum). Users of smaller screens (eee computers, etc.) may find this handy.

this should be possible, but wouldn't one of the following 2 very simple solutions also work
a) make an item for "rox /mnt"
b) make an item for pmount

@dejan
If you want to look at some code that does this - see Barry's dir2pet script. It parses desktop files and does most of this (except for adding the markup/xml)... see fixmenus for the rest

btw jwm can have separate menus for left, middle and right click (root id of 1,2,3) in most Puppies it is set to 3 (right click) - and is also the one in the tray
if you set the one in the tray to 0 or 4-9 that would allow you to use all 3 others however you want - and set it up in /etc/xdg/templates so that it gets rebuilt with fixmenus - you don't really need aemenu if you already have jwm

Simple Puppy Menu is great aragon, and now customizable too, you did great job with it, well done, I'm just thinkering of different ways to parse desktop files, here's a really simple two liner launcher-like Xdialog combobox I've come up with

btw jwm can have separate menus for left, middle and right click (root id of 1,2,3) in most Puppies it is set to 3 (right click) - and is also the one in the tray
if you set the one in the tray to 0 or 4-9 that would allow you to use all 3 others however you want - and set it up in /etc/xdg/templates so that it gets rebuilt with fixmenus -you don't really need aemenu if you already have jwm
[...]

Well... that's a matter of opinion / conviction, I suppose. Once you get the knack of it, you'll want to create aemenus to have very easy access to your files / groupings / programs / directories / disks.

I use it in jwm too. I have added this line in my jwmrc-personal file:

You need a pianist's touch on the Ctrl-Escape key combination, but it does the job without having to change the root:n configuration, an alternate menu pops up on screen. (For the record, my particular aemenu script above doesn't duplicate the jwm puppy menu.)_________________musher0
~~~~~~~~~~
Siempre será canción nueva... (V. Jara, Manifiesto)

this should be possible, but wouldn't one of the following 2 very simple solutions also work
a) make an item for "rox /mnt"
b) make an item for pmount

but i will look into it, it seems to be a nice exercise...

Actually, I was only half serious. I have a bash script for that, so if you feel it's not essential, do not do it for me? Meaning: I have come up with a solution for myself. But if others think there is a need....

My solution is essentially based on parsing fstab (dynamic part), plus a static part that is concatenated to add rox /mnt and pmount, and various disk utilities, etc. as you mentioned._________________musher0
~~~~~~~~~~
Siempre será canción nueva... (V. Jara, Manifiesto)

Finally, would it be much trouble to come up with an "spdm" (simple puppy disk menu) to show / access the mounted disks ? Then, one could reduce the number of puppy disk icons at the bottom left of the screen to one (the essential minimum). Users of smaller screens (eee computers, etc.) may find this handy.

only half-serious meant but nevertheless here are possible solutions you might try

Code:

#!/bin/sh
## show filesystems that are mounted on /mnt with aemenu
## aragon, 2010.01.14

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum