PekWM 1.15 Released

Window managers, icon programs, widgets, etc.
Message
Author
aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#21 Post 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
Attachments
spm2pwm.gz
(4.02 KiB) Downloaded 1166 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#22 Post 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! :)
Attachments
pekwm-menu-gen-5.jpg
As you can see here, pekwm has a rich, elaborate and efficient frame menu.
(11.94 KiB) Downloaded 1192 times
pekwm_menu_generator-0.1.pet
Another pekwm menu generator!
(15.71 KiB) Downloaded 1137 times
pekwm-menu-gen-4.jpg
Shows the familiar jwm "SESSION" heading and menu items under simply "Exit", at the very bottom or the pekwm menu. Replaces the original exit items provided by pekwm.
(14.09 KiB) Downloaded 1217 times
pekwm-menu-gen-3.jpg
Shows the menu generation script embedded in the pekwm sub-menu. To update your menu, click first on # 1), and wait til the process is complete; then, click on # 2) to activate your new pekwm menu. For convenience, I also added new menu items.
(24.36 KiB) Downloaded 1225 times
pekwm-menu-gen-2.jpg
Shows "my-documents" and "my-applications" as additional "Go to" places.
(10.37 KiB) Downloaded 1206 times
pekwm-menu-gen-1.jpg
Shows the integrated jwm menu.
(16.83 KiB) Downloaded 1035 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
stu91
Posts: 145
Joined: Mon 06 Aug 2012, 15:11
Location: England. Dpup. Dell Inspiron 1501

#23 Post 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.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#24 Post by aragon »

Hi stu,

Yes nice one, the bloody details are from technosaurus.

Aragon

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#25 Post 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.
Attachments
pekwm-menu-gen-6.jpg
Some like subddivisions like this in their menus!
(44.65 KiB) Downloaded 1228 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

PekWM 1.15 Released

#26 Post 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:

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#27 Post by aragon »

L18L,

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

Aragon

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#28 Post 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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#29 Post 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
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#30 Post 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

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#31 Post 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

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

PekWM 1.15 Released

#32 Post 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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: PekWM 1.15 Released

#33 Post 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
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#34 Post 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.
Attachments
menuS-in-pekwm.jpg
With this small change, the main menu, an apps menu and the windows list can be shown simultaneously in pekwm.
(60.49 KiB) Downloaded 1322 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: PekWM 1.15 Released

#35 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#36 Post 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!
Attachments
pekwm-and-friends640x512b.jpg
pekwm with "friends" ROX, urxvt, date, watch and aemenu
(59.77 KiB) Downloaded 1201 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: PekWM 1.15 Released

#37 Post 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:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#38 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#39 Post 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?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#40 Post 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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply