OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: pmf on June 14, 2004, 02:30:40 pm

Title: Pekwm update
Post by: pmf on June 14, 2004, 02:30:40 pm
I have recompiled PekWM (fresh form CVS) and made the default-configuration more Zaurus-friendly by:

- mapping the Goto-menu to the Mail-key, so that you can switch apps with one key, even between apps on different workspaces

- including a dynamic Sysinfo-menu entry with information about the battery-status and date-time (you can customize it by editing /usr/share/pekwm/scripts/pekwm_apm.sh)

- ignoring ROX-Panel/-Desktop-windows and PyPanel on the window-menus

PekWM is intended for users who prefer using the keyboard over the stylus. It is possible (and easy) to move/resize windows and to switch between applications in a consistent and intuitive way using only the keyboard.

Available at http://pmf.neominds.net/zfeed.php#pekwm (http://pmf.neominds.net/zfeed.php#pekwm) and in the pdaxrom-unstable-feed.

Additional tip: if you don\'t use matchbox-panel, but still want to be able to right/middle-tap, install pmonobut (http://pmf.neominds.net/zfeed.php#pmonobut) and include \'pmonobut -k 37 &\' in your .xinitrc. If you need right- and middle-clicks in portrait-mode, additionally include \'pmonobut -k 131 -m 132 &\', which makes the OK/Cancel-buttons on the side modify taps to right/middle-clicks (so that you don\'t have to open the Z to press the Menu-button). I don\'t know why this does not work with the default xmonobut.
Title: Pekwm update
Post by: CoreyC on June 15, 2004, 08:01:42 pm
Thank you pmf... this has been my wm for pdax ever since you first compiled it a couple months ago.  It uses less memory than open box and is more configurable.  The window grouping is a great feature too... I mapped \'ctrl right/ctrl left\'  to switch between grouped windows.
Title: Pekwm update
Post by: pnb on June 18, 2004, 04:05:59 am
I recently got pekwm working for pdaxrom and I really like it. However I have been having some trouble getting pypanel to work. After installing the required packages and running pypanel I get this error msg:
<
Traceback (most recent call last):
  File \"/usr/bin/pypanel\", line 586, in ?
    from Xlib import X, display, Xatom, Xutil
  File \"/usr/lib/python2.3/site-packages/Xlib/display.py\", line 25, in ?
    import error
  File \"/usr/lib/python2.3/site-packages/Xlib/error.py\", line 28, in ?
    from Xlib.protocol import rq
  File \"/usr/lib/python2.3/site-packages/Xlib/protocol/rq.py\", line 25, in ?
    import struct
ImportError: No module named struct
>

I have absolutely no python skills - what do I have to do to get it to work?

thx Peter
Title: Pekwm update
Post by: pmf on June 18, 2004, 01:09:38 pm
I traced the problem down as follows:

The struct module should be in /usr/lib/python2.3/lib-dynload/struct.so and was installed by the Python-package I use.

Apparently, the new python package at pdaxrom.org no longer contains the files in /usr/lib/python2.3/lib-dynload/

You can get the old python-package I use at http://zaurus.spy.org/feeds/cacko/x11/feed...n_2.3.2_arm.ipk (http://zaurus.spy.org/feeds/cacko/x11/feed/python_2.3.2_arm.ipk).
Title: Pekwm update
Post by: pnb on June 21, 2004, 06:05:15 am
That did it.
With both pekwm and pypanel running I\'m very satisfied with the look of my pdaxrom right now!
Thanks again!
Peter
Title: Pekwm update
Post by: zaai on June 24, 2004, 03:29:34 am
How do you run this thing?
I installed it without problems, but then what?

Running pekwm from the commandline reports the error
"Can not open display!
 Your DISPLAY variable current is set to :
"
Okay apparently it must be run from X.

Running pekwm from the shell window reports the error
"pekwm: root window unavailable. Can't start!"

The web page doesn't mention anything about any additional configuration. It looks like you're supposed to just install it.

Must be obvious to you guys, but please explain the obvious to a newbie.
Thanks
Title: Pekwm update
Post by: pnb on June 24, 2004, 03:58:22 am
Being a near-newbie myself, I got it working though, by editing the /home/root/.initrc file.
I commented the last lines mentioning matchbox out using a "#". Then I added "exec pekwm".

Furthermore I added "exec pypanel" to the pekwm start-script /home/root/.pekwm/start (just remember to "chmod +x /home/root/.pekwm/start" to make it executable.

For adding a desktop-image I used qiv. Installed
http://zaurus.spy.org/feeds/cacko/x11/feed...1.7-0.2_arm.ipk (http://zaurus.spy.org/feeds/cacko/x11/feed/qiv_1.7-0.2_arm.ipk)
and
http://zaurus.spy.org/feeds/cacko/x11/feed..._1.9.14_arm.ipk (http://zaurus.spy.org/feeds/cacko/x11/feed/imlib_1.9.14_arm.ipk)

then added "qiv -z /home/root/whateverimage.jpg" to the pekwm start-script

For customizing pekwm the files in /home/root/.pekwm/ are almost self-explaining.
So is the /home/root/.pypanelrc ....

Good luck -Peter!
Title: Pekwm update
Post by: zaai on June 25, 2004, 03:39:24 am
Thanks pnb. I tried that and it works.
I'm not sure everything is there though. Only pypanel shows up, and when clicking on the screen the menu. Thats it.
I though it had its own taskbar. Looks like it only comes from pypanel?
Title: Pekwm update
Post by: pnb on June 27, 2004, 07:05:42 am
Pekwm has no panel/taskbar - only floating menus. I configured the "home" key to bring up the root menu and the "menu" key to bring up the window menu. Moving windows is done by alt("Address") + Enter and arrows. Use shift + arrows for resizing. Accept window position and size by pressing Enter.

I also got the screen-rotation to work by running a small script that kills pypanel, runs "chkhinge"  and restarts pekwm when the screen is flipped over (the "Sys_Req" key).

You can try out yourself using "xev" to get the key-names and edit /home/root/.pekwm/keys.

I would have attached my own keys-file but apparently the new board does not allow that. I can email the file to you if you want.


Peter
Title: Pekwm update
Post by: CoreyC on June 27, 2004, 08:01:56 am
pnb,

If you want to email it to me I'll upload it somewhere and post a link to it.  coreync *at* mchsi.com

Great tips... pekwm is the perfect WM for pdaXrom.
Title: Pekwm update
Post by: pnb on June 27, 2004, 10:34:28 am
Hi CoreyC
I really like pekwm too - it's light and easy to configure
Just sent you a mail with some of my config-files.
Basically I just made small modifications to the standard-files in the packages. Nothing sophisticated. Would be happy to share it with others, though.

If you could find a way to host it and post a link that would be great.

Thanks,

Peter
Title: Pekwm update
Post by: deniscallies on June 27, 2004, 11:47:53 am
I have a problem starting pekwm too.
Have tha same problem like zaai, but i have no
file named .initrc in my /home/root directory.
Any suggestions?
i added a file called .initrc into this folder but nothing
happens. Tried to beboot, too.  

Thanks,

Denis
Title: Pekwm update
Post by: pmf on June 27, 2004, 02:15:52 pm
Quote
Have tha same problem like zaai, but i have no
file named .initrc in my /home/root directory.
Any suggestions?
i added a file called .initrc into this folder but nothing
happens.
The file is called .xinitrc
Title: Pekwm update
Post by: deniscallies on June 27, 2004, 04:33:09 pm
That works  

thank you very much

Denis
Title: Pekwm update
Post by: pnb on June 28, 2004, 11:41:58 am
You can download my config-files from here:

http://zaurus.hostnic.us/pekwm/configfiles.tar (http://zaurus.hostnic.us/pekwm/configfiles.tar)

Peter
Title: Pekwm update
Post by: bastichelaar on July 04, 2004, 02:35:19 pm
Maybe I did something wrong, but at my Zaurus, pekWM is much much slower than matchbox... Ko/Pi takes 30 seconds to load, and only 10 with matchbox... Is this normal?