Page 1 of 6

PekWM 1.15 Released

Posted: Sun 05 Aug 2012, 21:16
by Gnuxo
PekWM after quite some time has been updated. It's smaller then openbox and easier to config.

https://www.pekwm.org/projects/pekwm/releases

Posted: Mon 06 Aug 2012, 06:17
by musher0
Great news! Thanks, Gnuxo!

Posted: Mon 06 Aug 2012, 06:29
by musher0
Hello, Puppy-ites!

Here's a ready-made pet for it!
~~~~~~~~~~~~~
Edit, May 22, 2014 -- The sharing site I was using at the time I wrote this message
has shut down. However, there are ready-made debian or ubuntu packages available
at http://pkgs.org/search/pekwm.

The following link is therefore useless. I am currently retracing the pekwm pets that I
packaged then. I should be able to re-upload them on a reliable sharing site shortly.

Thanks for your patience.

musher0

~~~~~~~~~~~~~
http://limelinx.com/c1vub <-- URL obsolete. Please see edit above.

Enjoy!

P.S.
Compiled on lupu 5.25 (older kernel), with the following characteristics:

* pekwm version 0.1.15 configured successfully.
*
* PREFIX: /usr/local
* FEATURES: XShape Xinerama Xft image-png image-jpeg image-xpm Xrandr
* CXXFLAGS: -g -O2 -I/usr/include/freetype2 -I/usr/include/libpng12
* LIBS: -lX11 -lXext -lXinerama -lXft -lpng12 -ljpeg -lXpm -lXrandr

Should work on all Puppies from 4.31 on. Let me know?!

BFN.

PS. Menu generation utilities for pekwm, by stu91, aragon and myself, are available in the posts below and on page 2 of this thread. Please read on.

PS2. I've also compiled another pet of pekwm 1.15 specifically for old_yeller's precise pup 5.3.0, which is at
http://murga-linux.com/puppy/viewtopic. ... 84&t=80431. You'll find this new compilation of pekwm on p. 3 of the present thread. This compile may -- or may not :shock: :) -- be more compatible with other puppy precise builds! Let us know?

Posted: Mon 06 Aug 2012, 17:28
by stu91
musher0 wrote:Hello, Puppy-ites!

Here's a ready-made pet for it!

http://limelinx.com/c1vub

Enjoy!

P.S.
Compiled on lupu 5.25 (older kernel), with the following characteristics:

* pekwm version 0.1.15 configured successfully.
*
* PREFIX: /usr/local
* FEATURES: XShape Xinerama Xft image-png image-jpeg image-xpm Xrandr
* CXXFLAGS: -g -O2 -I/usr/include/freetype2 -I/usr/include/libpng12
* LIBS: -lX11 -lXext -lXinerama -lXft -lpng12 -ljpeg -lXpm -lXrandr

Should work on all Puppies from 4.31 on. Let me know?!

BFN.
Hi musher0,
Just did a quick test on Exprimo puppy - had to move the /etc/pekwm directory to /usr/local/etc/ for pekwm to work correctly.

Here is a Perl Dynamic menu generator for pekwm - add below to the menu file and it will generate updated menus on the fly.

Code: Select all

Submenu = "Applications" {
			Entry { Actions = "Dynamic /path/to/pekwm-menu" }
			}
cheers.

Posted: Mon 06 Aug 2012, 23:03
by musher0
Manu thanks, stu91.

This menu utility is great news for pekwm fans !

Strange that you had to change the location of the /etc/pekwm directory to /usr/local/etc/ for pekwm to work correctly. On my lupu 5.25, on first run, pekwm created a /root/pekwm directory and ran just fine the first time. But I'm sure Exprimo users will be grateful to know that.

For those who are "fashion conscious" :) here's a link to a wide choice of pekwm themes: http://box-look.org/?xcontentmode=7403
Some of those themes can create stunning pekwm desktops!

BFN

P.S.
Stu, by menu file, I suppose you mean that one should add your 2-3 lines of code to the /root/.pekwm/menu file, right ?

Posted: Mon 06 Aug 2012, 23:28
by musher0
No joy, stu... Please help.

Code: Select all

[/initrd/mnt/...ations/bin]>pekwm-menu 
/root/my-applications/bin/pekwm-menu: ligne14: = : commande introuvable
/root/my-applications/bin/pekwm-menu: ligne17: = : commande introuvable
/root/my-applications/bin/pekwm-menu: ligne20: = : commande introuvable
/root/my-applications/bin/pekwm-menu: ligne21: = : commande introuvable
/root/my-applications/bin/pekwm-menu: ligne22: = : commande introuvable
/root/my-applications/bin/pekwm-menu: ligne30: Erreur de syntaxe près du symbole inattendu « ( »
/root/my-applications/bin/pekwm-menu: ligne30: `@CATEGORIES =('
Menu stays as it was.

In the above code,
"Commande introuvable" means "Command can't be found".
"Erreur de syntaxe près du symbole inattendu" means "Syntax error near unexpected symbol".

Also, where, in pekwm's menu file, do you insert your code lines?

Thanks in advance.

Posted: Tue 07 Aug 2012, 01:59
by musher0
Hello.

I have made available a selection of pekwm themes, with a couple of credits, here: http://limelinx.com/domij

Enjoy! :)

Posted: Tue 07 Aug 2012, 03:29
by stu91
Hi musher0,
Where do you see this error when run script in terminal?

Yes add to the /root/.pekwm/menu file - i have it like this at the top:

Code: Select all

# Menu config for pekwm

# Variables
INCLUDE = "vars"

RootMenu = "Pekwm" {
	Entry = "Terminal" { Actions = "Exec $TERM &" }
	Entry = "Run.." { Actions = "ShowCmdDialog" }

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

	Separator {}
Image

Posted: Sun 12 Aug 2012, 04:39
by musher0
:D Neat feature : you can have the date and time in the pekwm menu :

http://urukrama.wordpress.com/2008/01/0 ... kwms-menu/

Have fun! :)

Posted: Sun 12 Aug 2012, 05:08
by musher0
Hello, gang!

Here's possibly another neat feature in pekwm : aemenu is still accessible in pekwm. (The Puppy derivative was created by member "aragon" and entitled "pmenu". Look for the thread in this forum.) I say "possibly" because I actually just chanced upon it because I have aemenu installed.

This is where pekwm shows its roots! :) pekwm is a distant "grand-child" of aewm. For some reason, it still has the ability to call aemenu (aka pmenu) by left-clicking on an empty part of the desktop.

If you wish, you can therefore do away with the applications part in the pekwm menu to make it concentrated on the pekwm functions proper and have a regular applications menu separately. (See attached pic.)

Of course, this is not intended to diminish stu's great work on a dynamic menu for pekwm (see above). This is just to announce another feature of pekwm I just discovered.

As well, this would need confirmation... But it is real on this computer!

It should also be noted that the pekwm menu is persistent, which can come in handy at times. You have to re-click it or hit "escape" to close it.

I know I'll get flac for saying this, but... with all its features (documented and undocumented), IMHO, pekwm leaves jwm in the dust... :D

BFN.

Posted: Mon 13 Aug 2012, 05:40
by musher0
Hi, stu91!

The following is meant as a constructive critcicism -- to improve things.
It's already great that we have your menu generator. As well, I am not a programmer, mostly a "configuration guy", so I probably missed or misunderstood a few things in your script or your explanations -- for which I ask your forgiveness. That said...

I finally got your menu-creator to work, but not as a "dynamic" menu.
(Please see attached.)

It took me a little while to discover that this was a perl script.
And it didn't work as indicated, dynamically.

To create the menu, I had to issue, in console, the command

Code: Select all

perl pekwm-menu
and then it clobbered the existing menu.

So the ending of the original menu file was lost. Now this last part is important because that's where the "goto" and "pekwm" parts of the menu proper are located, and also below that, you have the long part that controls the behaviour of the program windows (when you right-click on the program border).

Since I am not a perl programmer, I had to reconstruct the menu manually by
1) adding an additional "Submenu" command below the "run" command
2) inserting the programs part of your generated menu, and then
3) adding the bottom of the original menu.

Furthermore, here are a few comments about lines 13 - 14. There are other *.desktop files at

/usr/local/share/applications

and at

/root/.local/share/applications
(these being the applications controled by wine)

So the created pekwm menu may not be complete.

Also, I could not get the script to generate the menu a second time.

Again, I am posting this with a view to improve things, and in a spirit of collaboration. Hopefully, you will know how to proccess these remarks in order to make your generator script even better.

Because we definitely need one for the wonderful window manager that is pekwm! :D

Best regards.

Posted: Mon 13 Aug 2012, 16:31
by stu91
musher0 wrote:Hi, stu91!

The following is meant as a constructive critcicism -- to improve things.
It's already great that we have your menu generator. As well, I am not a programmer, mostly a "configuration guy", so I probably missed or misunderstood a few things in your script or your explanations -- for which I ask your forgiveness. That said...

I finally got your menu-creator to work, but not as a "dynamic" menu.
(Please see attached.)

It took me a little while to discover that this was a perl script.
And it didn't work as indicated, dynamically.

To create the menu, I had to issue, in console, the command

Code: Select all

perl pekwm-menu
and then it clobbered the existing menu.

So the ending of the original menu file was lost. Now this last part is important because that's where the "goto" and "pekwm" parts of the menu proper are located, and also below that, you have the long part that controls the behaviour of the program windows (when you right-click on the program border).

Since I am not a perl programmer, I had to reconstruct the menu manually by
1) adding an additional "Submenu" command below the "run" command
2) inserting the programs part of your generated menu, and then
3) adding the bottom of the original menu.

Furthermore, here are a few comments about lines 13 - 14. There are other *.desktop files at

/usr/local/share/applications

and at

/root/.local/share/applications
(these being the applications controled by wine)

So the created pekwm menu may not be complete.

Also, I could not get the script to generate the menu a second time.

Again, I am posting this with a view to improve things, and in a spirit of collaboration. Hopefully, you will know how to proccess these remarks in order to make your generator script even better.

Because we definitely need one for the wonderful window manager that is pekwm! :D

Best regards.
Hi musher0,
Thanks for your reply and testing.

I am not very good at explaining my self, nor do i know / use pekwm much - so probably best to start again at the beginning and go on from there. :)

First thing we need to establish if the perl pekwm-menu script works on your puppy version.

if you open a terminal and paste/type the path to the pekwm-menu perl script.

If it works you should see similar to this in terminal:
Image

Posted: Mon 13 Aug 2012, 17:11
by aragon
If it helps, i can upload a bash-script for dynamic menu the next day.

Aragon

Posted: Mon 13 Aug 2012, 17:30
by stu91
aragon wrote:If it helps, i can upload a bash-script for dynamic menu the next day.

Aragon
Hi aragon,
Sure thing a bash version would be great - this perl script does work, i use a similar one with openbox as well but then most/all of my puppy installs are dpup / Exprimo based so i can't say if they work with other pups or not?

Posted: Tue 14 Aug 2012, 12:01
by stu91
Hi Musher0,

I am unsure if this worked for you or not? http://murga-linux.com/puppy/viewtopic. ... 276#646276

For testing purposes:
I attach below pekwm-test download this to your /root directory - then extract there - so you should end with /root/pekwm-test directory.

Now open a terminal and run command:
/root/pekwm-test/test --backup
This will back up your /root/.pekwm/menu and copy a pre-configured menu file - set up with a dynamic "AppS" pekwm-menu.
Then go to pekwm right click menu and reload.

To revert back to your previous /root/.pekwm/menu file - run command in Terminal:
/root/pekwm-test/test --restore
Then go to pekwm right click menu and reload.

Posted: Wed 15 Aug 2012, 01:10
by musher0
Hi, stu!

Will do just that in a moment!

For now, just a word tell everyone that I've solved my own riddle :shock:
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: Select all

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

Code: Select all

	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

Posted: Wed 15 Aug 2012, 01:23
by musher0
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.

Posted: Wed 15 Aug 2012, 04:31
by stu91
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?

Posted: Wed 15 Aug 2012, 16:15
by musher0
Hi. stu.

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

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

BFN.

Posted: Thu 16 Aug 2012, 09:38
by aragon
stu, christian,

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

it works as expected.

Code: Select all

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
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