Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 24 Oct 2014, 19:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
PekWM 1.15 Released
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 2 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
musher0


Joined: 04 Jan 2009
Posts: 4256
Location: Gatineau (Qc), Canada

PostPosted: Tue 14 Aug 2012, 21:10    Post_subject:  

Hi, stu!

Will do just that in a moment!

For now, just a word tell everyone that I've solved my own riddle Shocked
regarding the left-click on background activating aemenu.

Sorry to say, it's not there by default... I had changed line 161 of the "mouse" config. to do it in pekwm 1.13... That was 3 years back, so I had forgotten about it.

Here's my code:

Code:
   ButtonRelease = "1" { Actions = "Exec /root/my-applications/ae/aemenu.sh &" }


The original is :
Code:
   ButtonRelease = "1" { Actions = "HideAllMenus" }


Originally, in pekwm, the left-click is used to hide the menu. However, hitting "escape" will do just as well, so you lose nothing by calling a menu utility (or whatever) with the left-click.

Further, that means that anyone can change line 161 of pekwm's mouse configuration file and introduce an alternate menu there.

Now to test your brand new menu generator!

BFN

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
musher0


Joined: 04 Jan 2009
Posts: 4256
Location: Gatineau (Qc), Canada

PostPosted: Tue 14 Aug 2012, 21:23    Post_subject:  

Hello again, stu.

Hm... your script does change and restore the menu, but the "AppS" part remains inactive: no submenu appears...

Do I need to activate or modify perl in a particular way for your script to work? I'm not familiar at all with perl.

BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
stu91


Joined: 06 Aug 2012
Posts: 145
Location: England. Dpup. Dell Inspiron 1501

PostPosted: Wed 15 Aug 2012, 00:31    Post_subject:  

musher0 wrote:
Hello again, stu.

Hm... your script does change and restore the menu, but the "AppS" part remains inactive: no submenu appears...

Do I need to activate or modify perl in a particular way for your script to work? I'm not familiar at all with perl.

BFN.


Hi musher0,
I guess running the pekwm-menu script in terminal also failed?

As far as im aware you dont need to activate or modify anything for perl script to work.

I just installed lucid-lite-525 a stripped down version of original Lucid 525 - along with a fresh Lupu 528 install as well.
On both - installed pekwm > copied pekwm-test directory to /root > ran test --backup script > reload pekwm - and dynamic AppS menu worked.

Note: (For both installs i needed to symlink libjpeg.so to libjpeg.so.8 otherwise pekwm would not start)

What puppy version are you running?
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4256
Location: Gatineau (Qc), Canada

PostPosted: Wed 15 Aug 2012, 12:15    Post_subject:  

Hi. stu.

I'm running a lupu 5.25 with the older kernel.

I guess I'll have to figure that one out...

BFN.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Thu 16 Aug 2012, 05:38    Post_subject:  

stu, christian,

i've now tested stu's menu-generator in puppy 4.31.

it works as expected.

Code:
perl pekwm-menu

is needed if the script is not made executable.

@christian
i've looked at your example "menu.tar.gz" but can't find that you've added stu's code

Quote:
Submenu = "Applications" {
Entry { Actions = "Dynamic /path/to/pekwm-menu" }
}


if i add this code to the menu-file and adjust the path to the pekwm-menu-script it works as expected (after a reload).

aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send_private_message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Thu 16 Aug 2012, 06:43    Post_subject:  

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

Quote:
Submenu = "Applications" {
Entry { Actions = "Dynamic /path/to/spm2pwm" }
}


6. reload pekwm.

maybe you want to backup your menu-file first.

aragon
spm2pwm.gz
Description 
gz

 Download 
Filename  spm2pwm.gz 
Filesize  4.02 KB 
Downloaded  540 Time(s) 

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4256
Location: Gatineau (Qc), Canada

PostPosted: Thu 16 Aug 2012, 21:09    Post_subject:  

Thanks much, aragon.

I guess pekwm users will be spoiled... Because, meanwhile... Very Happy

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.php?search_id=1986021226&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! Smile

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! Smile
pekwm-menu-gen-5.jpg
 Description   As you can see here, pekwm has a rich, elaborate and efficient frame menu.
 Filesize   11.94 KB
 Viewed   729 Time(s)

pekwm-menu-gen-5.jpg

pekwm_menu_generator-0.1.pet
Description  Another pekwm menu generator!
pet

 Download 
Filename  pekwm_menu_generator-0.1.pet 
Filesize  15.71 KB 
Downloaded  514 Time(s) 
pekwm-menu-gen-4.jpg
 Description   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.
 Filesize   14.09 KB
 Viewed   732 Time(s)

pekwm-menu-gen-4.jpg

pekwm-menu-gen-3.jpg
 Description   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.
 Filesize   24.36 KB
 Viewed   758 Time(s)

pekwm-menu-gen-3.jpg

pekwm-menu-gen-2.jpg
 Description   Shows "my-documents" and "my-applications" as additional "Go to" places.
 Filesize   10.37 KB
 Viewed   754 Time(s)

pekwm-menu-gen-2.jpg

pekwm-menu-gen-1.jpg
 Description   Shows the integrated jwm menu.
 Filesize   16.83 KB
 Viewed   717 Time(s)

pekwm-menu-gen-1.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
stu91


Joined: 06 Aug 2012
Posts: 145
Location: England. Dpup. Dell Inspiron 1501

PostPosted: Fri 17 Aug 2012, 08:42    Post_subject:  

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

Quote:
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.
Back to top
View user's profile Send_private_message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 17 Aug 2012, 09:54    Post_subject:  

Hi stu,

Yes nice one, the bloody details are from technosaurus.

Aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4256
Location: Gatineau (Qc), Canada

PostPosted: Fri 17 Aug 2012, 10:43    Post_subject:  

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

Quote:
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 ! Smile

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. Embarassed
(see picture)

But anyway, good job!

BFN.
pekwm-menu-gen-6.jpg
 Description   Some like subddivisions like this in their menus!
 Filesize   44.65 KB
 Viewed   704 Time(s)

pekwm-menu-gen-6.jpg


_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
L18L

Joined: 19 Jun 2010
Posts: 2530
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Fri 17 Aug 2012, 11:29    Post_subject: PekWM 1.15 Released  

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:
p# pekwm
pekwm: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory
#

Racy 5.3 Crying or Very sad
Back to top
View user's profile Send_private_message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 17 Aug 2012, 11:58    Post_subject:  

L18L,

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

Aragon

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send_private_message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Fri 17 Aug 2012, 12:23    Post_subject:  

musher0 wrote:


Hi, aragon.

Your script does work on my machine. Good work ! Smile

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. Embarassed
(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

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send_private_message 
musher0


Joined: 04 Jan 2009
Posts: 4256
Location: Gatineau (Qc), Canada

PostPosted: Mon 27 Aug 2012, 04:47    Post_subject:  

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:
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 or Very Mad 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

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send_private_message Visit_website 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: Thu 30 Aug 2012, 01:40    Post_subject:  

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

_________________
PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0978s ][ Queries: 13 (0.0053s) ][ GZIP on ]