Page 2 of 6

Posted: Thu 16 Aug 2012, 10:43
by aragon
Attached you'll find another dynamic menu-generator for pekwm (written in ash/bash).

How To use:
1. Download
2. Delete fake-extension ".gz"
3. make executable
4. move to a dir in the bin-path (e.g. /usr/bin)
5. Open /root/.pekwm/menu and insert
Submenu = "Applications" {
Entry { Actions = "Dynamic /path/to/spm2pwm" }
}
6. reload pekwm.

maybe you want to backup your menu-file first.

aragon

Posted: Fri 17 Aug 2012, 01:09
by musher0
Thanks much, aragon.

I guess pekwm users will be spoiled... Because, meanwhile... :D

Since stu's perl script was not working for me, I went back to work. Backtracking to the work I had done on pekwm for dpup-4.84, I re-discovered some ideas that I've put together here in a different manner.

So I came up with a pekwm menu generator based on the jwm menu, through jwm2pekwm, that was available at the time. (It still is.)

Basically, beforehand, I cut the pekwm menu in its essential pieces, and store them away safely. (This gives you also more freedom to edit/customize them.)

I then update my jwm menu with amigo & technosaurus' jwm menu utility.
You need this ! http://murga-linux.com/puppy/viewtopic. ... 26&t=70804 (It's not included in my pekwm menu-generation pet.)

I then run jwm2pekwm.

I then save the "SESSION" part of the resulting "jwm menu" separately, to reappend it at the end of the process/pekwm menu.

The more, tail and head utilties are most useful in this recreation.

You can see how it is done in more detail if you read the main script, "generate-pekwm-menu", and the "menugen" script.

I've included some illustrations.

It took me a while to refine the integration of the parts, but it works well now. Only problem: expect a delay of a little over a minute for the processing. Some messages will tell you when the new menu is ready.

To activate your updated menu, you use your existing pekwm menu (which has not gone out of memory). Click on to the "reload" menu item in the pekwm submenu and wait 2 seconds. Then, right-click on an empty part of the desktop, and there you go! You've updated your pekwm menu! :)

A summary of pekwm key combinations and a help file are included. They will show up when you hit the "Keys" and "Help" menu items in the "pekwm" area.

Enjoy! :)

Posted: Fri 17 Aug 2012, 12:42
by stu91
aragon wrote:Attached you'll find another dynamic menu-generator for pekwm (written in ash/bash).

How To use:
1. Download
2. Delete fake-extension ".gz"
3. make executable
4. move to a dir in the bin-path (e.g. /usr/bin)
5. Open /root/.pekwm/menu and insert
Submenu = "Applications" {
Entry { Actions = "Dynamic /path/to/spm2pwm" }
}
6. reload pekwm.

maybe you want to backup your menu-file first.

aragon
Nice script - after little mod works well with openbox as well.
thanks aragon.

Posted: Fri 17 Aug 2012, 13:54
by aragon
Hi stu,

Yes nice one, the bloody details are from technosaurus.

Aragon

Posted: Fri 17 Aug 2012, 14:43
by musher0
aragon wrote:Attached you'll find another dynamic menu-generator for pekwm (written in ash/bash).

How To use:
1. Download
2. Delete fake-extension ".gz"
3. make executable
4. move to a dir in the bin-path (e.g. /usr/bin)
5. Open /root/.pekwm/menu and insert
Submenu = "Applications" {
Entry { Actions = "Dynamic /path/to/spm2pwm" }
}
6. reload pekwm.

maybe you want to backup your menu-file first.

aragon
Hi, aragon.

Your script does work on my machine. Good work ! :)

Problem -- for me -- is the lack of subdivisions within the main categories. And I can't edit this menu if I want /need to. I must say I'm a bit of a maniac on this subject, but still.

This will sound childish, but I just need to have my subcategories. :oops:
(see picture)

But anyway, good job!

BFN.

PekWM 1.15 Released

Posted: Fri 17 Aug 2012, 15:29
by L18L
musher0 wrote:Should work on all Puppies from 4.31 on. Let me know?!
ready-made pet for it on http://limelinx.com/c1vub

Code: Select all

p# pekwm
pekwm: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
#
Racy 5.3 :cry:

Posted: Fri 17 Aug 2012, 15:58
by aragon
L18L,

Seach for another version of libjpeg in your system and symlink it. Maybe it works.

Aragon

Posted: Fri 17 Aug 2012, 16:23
by aragon
musher0 wrote:
Hi, aragon.

Your script does work on my machine. Good work ! :)

Problem -- for me -- is the lack of subdivisions within the main categories. And I can't edit this menu if I want /need to. I must say I'm a bit of a maniac on this subject, but still.

This will sound childish, but I just need to have my subcategories. :oops:
(see picture)
i mostly use an app-menu if i don't remember an app-name otherwise i simply use a terminal or an app-starter like gmrun or keyboard-shortcuts. so no timeconsuming menu-building for me, it just has to be there if i need it.

aragon

Posted: Mon 27 Aug 2012, 08:47
by musher0
Hello, aragon.

Thanks again for your script.

As to subcategories, I suppose everyone has a way of working he/she is most confortable with.

If someone wants to, he/she can output the result of your script to a file and refine that. Something like this:

Code: Select all

line 118: echo "$MENU" > menu.tmp
and then put manually (in a text editor) the programs in the "Other" submenu in a more precise category.

Also, as an execise, I've been trying to produce a menu directly for wmx from the *.desktop files, and it's hellish! :evil: I mean the categories in the *.desktop files... will give you a headache, guaranteed! Some of those entries have a list of categories and then a semi-colon at the end. It has almost no logic.

For example, how do you search for a "semi-colon + end of line" (or is it the "line feed character" in Linux) sequence and replace it with a simple end of line character? Hm... I'm still having fun!

So, in practice, given the awful state of the *.desktop files, I think your script has gone as far as it can get, until the category confusion is solved. big_bass said something about that towards the end of the "jwm-tools" thread.

The main thing we have to remember is that you and Stu91 (if one prefers the perl language) gave us a solid starting point. Much better, much less artisanal and much more complete than the procedure shown on the pekwm forum/site. Thanks for that.

TWYL

Posted: Thu 30 Aug 2012, 05:40
by aragon
hi christian,

in my opinion it makes more sense to correct the desktop-files than to manually change the entries in the menu-file every time you rerun the script.

And yes, the categories are not that 'streamlined' as they could be...

The logic how to extract the categories could be found in the upper part of my script. But i'm using only the first one.The other-cat is needed, es this items won't go to another cat...

If you need sub-subcategories, i could try to reimplement them, i think they are part of the original jwm_create_menu.

Please note: the 'genius' part of my script is by technosaurus, so all thanks should go to him.

aragon

Posted: Thu 30 Aug 2012, 06:37
by aragon
musher0 wrote:Also, as an execise, I've been trying to produce a menu directly for wmx from the *.desktop files, and it's hellish!
hi christian,

when i read this (from wmx readme)

Code: Select all

-- To start a new application of your choice: use the middle mouse
    button on the root window, anywhere other than the top-right
    corner of the root window.  If you have any executable programs in
    your $HOME/.wmx directory -- or other directory named in
    CONFIG_COMMAND_MENU -- they will be listed on a menu and you can
    choose one to be started up.  (You can add and remove programs
    while wmx is running.)  REMEMBER, $HOME/.wmx IS A DIRECTORY, not
    a file, so please don't write to me asking what the file format is.
i would say it's not hellish but makes no sense at all :wink:

aragon

PekWM 1.15 Released

Posted: Thu 30 Aug 2012, 07:26
by L18L
musher0 wrote:...
Should work on all Puppies from 4.31 on. Let me know?!...

Code: Select all

# pekwm
failed to open file 
pekwm: root window unavailable, can't start!
#
:cry:
Posting from another official puppy: Precise 5.2.71

Re: PekWM 1.15 Released

Posted: Thu 30 Aug 2012, 11:51
by musher0
L18L wrote:
musher0 wrote:...
Should work on all Puppies from 4.31 on. Let me know?!...

Code: Select all

# pekwm
failed to open file 
pekwm: root window unavailable, can't start!
#
:cry:
Posting from another official puppy: Precise 5.2.71
Thanks for the report, L18L.

Will check as soon as I can once the download of the most recent precise puppy (beta4), published earlier today, has finished.

BFN

Posted: Sat 01 Sep 2012, 19:49
by musher0
Hello.

Here's something neat in pekwm: the custom menus. This feature allows you to have a second and even a third menu, etc. The neat thing is that pekwm menus are sticky to a point, so you can display more than one menu for "consultation", so to speak, and the ones you displayed earlier only go away when you hit "escape".

In your menu file, change the "Apps" line to this: (where you would normally have the traditional menu with submenus, etc.)

Code: Select all

Entry = "Puppy Menu" { Actions = "ShowMenu PuppyMenu" }
After the very last line of the menu, add:

Code: Select all

PuppyMenu = "Apps" {
	 Entry = "" { Actions = "Dynamic ~/.pekwm/dynamique/spm2pwm" }
}
(As an example, I'm using aragon's dynamic script to generate an apps menu. You can download his script from the previous page.)

The result is this:

BFN.

Re: PekWM 1.15 Released

Posted: Sat 01 Sep 2012, 19:59
by musher0
L18L wrote:
musher0 wrote:...
Should work on all Puppies from 4.31 on. Let me know?!...

Code: Select all

# pekwm
failed to open file 
pekwm: root window unavailable, can't start!
#
:cry:
Posting from another official puppy: Precise 5.2.71
Hello again, L18L.

Last night I re-compiled pekwm for old yeller's version of puppy precise, and it works nicely on that version. Frankly, I'd rather wait until Barry has finalized his own version of Precise before I compile it for his Puppy.

Can you be more specific about why pekwm doesn't load on BK's Precise? Or maybe it just doesn't load, period?

In any case, I can make available to you the compile for oy's version of Puppy Precise. Nod if you're interested? :)

BFN.

Posted: Wed 05 Sep 2012, 03:34
by musher0
The most beautiful desktop!

Bottom left to top right :

Rox-panel with transparent icons as spacers
Rox-icons on pinboard
Month in transparent urxvt
pekwm menu
aemenu customized with xdotool to always pop up in top right corner, BeOS style
watch in urxvt titleless window.

Background borrowed from collection in pemasu's polarpup.
Coordinated themes for gtk and pekwm: slightly adapted by me to be more compatible between each other, from "aum"; originals are at
http://box-look.org/content/show.php/Au ... ent=143237

Soft on the eyes, no? :D Enjoy!

Re: PekWM 1.15 Released

Posted: Thu 06 Sep 2012, 08:00
by L18L
musher0 wrote:...Can you be more specific about why pekwm doesn't load on BK's Precise? Or maybe it just doesn't load, period?...
No, just a copy of console:
my console in precise5.2.91 wrote:# pekwm
failed to open file /usr/local/etc/pekwm/config_system
failed to open file
failed to open file /usr/local/etc/pekwm/mouse
pekwm: root window unavailable, can't start!
#
musher0 wrote:BFN.
:roll: :?: :roll:

Posted: Fri 07 Sep 2012, 00:57
by musher0
Oh. Probably my fault, when I created the pet.

stu91 had mentioned something about it. Try making a link from /etc/pekwm to /usr/local/etc/pekwm, to see if that solves the problem.

And let me know? Thanks in advance.

BFN.

Posted: Fri 07 Sep 2012, 07:19
by L18L
musher0 wrote:..making a link from /etc/pekwm to /usr/local/etc/pekwm...
my console wrote:# pekwm
failed to open file /usr/local/etc/pekwm/config_system
failed to open file
failed to open file /usr/local/etc/pekwm/mouse
pekwm: root window unavailable, can't start!
#
# ln -s /etc/pekwm /usr/local/etc/pekwm
# pekwm
pekwm: root window unavailable, can't start!
#
BFN, c'est quoi?

Posted: Fri 07 Sep 2012, 20:38
by musher0
Hello, L18L.

Sorry to read that.

BFN = Bye for now.

Sometimes I use TWYL = Talk with you later.

Ok, taking this pekwm bull by the horns! :) Back in a while with a new pekwm pet for precise. Stay tuned!

TWYL.