Author Topic: Windowmaker & (x)vim For Pdaxrom?  (Read 28117 times)

tml

  • Full Member
  • ***
  • Posts: 105
    • View Profile
Windowmaker & (x)vim For Pdaxrom?
« on: November 29, 2005, 08:06:20 am »
Hi,

Yesterday I tried pdaxrom on my slc3100. Looks really great. What I didn't like so much about it was that many windows extended beyond screen limits and that i rather often had to use the stylus to relocate a window.

This made me wonder if there is a windowmaker ipk available? windowmaker can be fully controlled via keyboard and IIRC it doesn't need more resources than does blackbox.

Also, I saw that there is a vim6.3 package in the unstable feed. Can this one be used with rc12? Is a gtk-based version of vim included?

I rather hastly reflashed the original sharp rom (after testing cacko too). But if windowmaker & gvim are available I think I would rather prefer pdaxrom.

Cheers,
Thomas.
SL-C3100

iamphet

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://iamphet.nm.ru
Windowmaker & (x)vim For Pdaxrom?
« Reply #1 on: November 29, 2005, 09:00:00 am »
Once upon a time I built WindowMaker with a patch which allows to use single click instead of double click. Also I made some Z-specific tweaks.
Unfortunately I haven't managed to find time to pack these to ipks. You can download tarball from http://iamphet.nm.ru/zaurus. To uninstall it just issue
Code: [Select]
rm `tar tjf WindowMaker-0.92.0-bin.tar.bz2`Not quite perfect but it works.

Also I tried to use gvim (x11, gtk, gtk2). I compiled it myself too. It turned out that console vim is much more convenient (and responsive) for me on Z.

Here is the tarball. Site with screenshots isn't working at the moment.
« Last Edit: November 30, 2005, 05:45:14 am by iamphet »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #2 on: November 29, 2005, 12:52:31 pm »
There is a full vim 6.4 compiled by dtruchan not long ago.  I'm using it and it runs fast and great (despite its size)    
https://www.oesf.org/forums/index.php?showtopic=15722

As for WindowMaker, I also wanna give it a try.  The menus look great and very handy.  But why does the bottommost portrait screenshot look a bit weird as the lower part of it seems not to be displaying anything... or is it just my eye problem?  
« Last Edit: November 29, 2005, 12:59:00 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

iamphet

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://iamphet.nm.ru
Windowmaker & (x)vim For Pdaxrom?
« Reply #3 on: November 30, 2005, 01:41:47 am »
Quote
But why does the bottommost portrait screenshot look a bit weird as the lower part of it seems not to be displaying anything... or is it just my eye problem?   
Hey, this is just end of file  
Finally I've made IPKs.

Look below for some corrections of README as a result of this packaging.

Quote
If you'd like some Z friendliness, install wmaker_pdaxrom_0.1_all.ipk. Files contain some useful (for me) settings and hotkeys. For better results make sure you have /etc/X11/kb/corgi.xmodmap (optionally userdefined.xmodmap).
Note: wmaker can't bind several buttons on one action, so 'Menu' button doesn't work in portrait orientation, use 'E/J' button on your touchscreen instead (on C860 at least  

Finally to get dockable system monitor+clock+sound volume constrol, install wmzmon_0.1_armv5tel.ipk See wmzmon --help and /home/root/.wmzmon.xpm for customization directions. I like default "wmzmon -a" view
(wmzmon_0.1 has been removed to prevent confusion by the old version)
« Last Edit: February 01, 2006, 04:35:50 am by iamphet »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #4 on: November 30, 2005, 05:53:40 am »
I was thrilled.  WindowMaker rocks.  It's blazingly fast, intuitive and very functional.  I guess I will stick with it from now on.  Thanks for the packages, iamphet!  

I have one question: it seems WindowMaker has overwritten and replaced my original startup script for matchbox, so my question is: what shall I do in case I need to switch to matchbox?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

iamphet

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://iamphet.nm.ru
Windowmaker & (x)vim For Pdaxrom?
« Reply #5 on: November 30, 2005, 06:08:41 am »
OOPS.
All
Please, backup your /home/root/.xinitrc before installing wmaker-pdaxrom.
ZDevil
Something like that (or reinstall matchbox-pdaxrom) to restore default .xinitrc
Code: [Select]
cd
rm -f .xinitrc
ln -s /usr/bin/mbsession .xinitrc
I'll fix ipk to make a backup. I use wmaker for a long time so I've completely forgotten about default .xinitrc  

Fixed: now wmaker-pdaxrom should backup and restore ~root/.xniitrc. Thanks for feedback.
« Last Edit: November 30, 2005, 06:43:14 am by iamphet »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #6 on: November 30, 2005, 06:46:07 am »
Quote
OOPS.
All
Please, backup your /home/root/.xinitrc before installing wmaker-pdaxrom.
ZDevil
Something like that (or reinstall matchbox-pdaxrom) to restore default .xinitrc
Code: [Select]
cd
rm -f .xinitrc
ln -s /usr/bin/mbsession .xinitrc
I'll fix ipk to make a backup. I use wmaker for a long time so I've completely forgotten about default .xinitrc 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=105535\"][{POST_SNAPBACK}][/a][/div]

Nevermind and the trick works.  
Just went back to matchbox and backup the original .xinitrc, and headed right back to WindowMaker again.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #7 on: November 30, 2005, 08:16:56 am »
One more question: I found Fn and the japanese key to the left of ' - ' are both mapped to Mod1, while Mod2 seems to be missing somehow.  Any way to get Mod2 mapped?  Thanks!  
« Last Edit: November 30, 2005, 08:20:19 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

iamphet

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://iamphet.nm.ru
Windowmaker & (x)vim For Pdaxrom?
« Reply #8 on: November 30, 2005, 08:48:55 am »
Quote
I found Fn and the japanese key to the left of ' - ' are both mapped to Mod1, while Mod2 seems to be missing somehow.  Any way to get Mod2 mapped?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=105555\"][{POST_SNAPBACK}][/a][/div]
weird   wmaker has nothing with changing xmodmap
I can only guess your Z is not 860

Can you please replace
Code: [Select]
case "$MODEL" in
...
esac

in your ~root/.xinitrc.wmaker with

Code: [Select]
case "$MODEL" in
 Â   SL-C860|SL-C760|SL-C750|SL-7500|SL-C700)
    test -f /etc/X11/kb/corgi.xmodmap && xmodmap /etc/X11/kb/corgi.xmodmap
;;
 Â   SL-6000)
    test -f /etc/X11/kb/tosa.xmodmap && xmodmap /etc/X11/kb/tosa.xmodmap
;;
 Â   SL-C1000|SL-C3000|SL-C3100)
    test -f /etc/X11/kb/akita.xmodmap && xmodmap /etc/X11/kb/akita.xmodmap
;;
 Â   *)
    cat /proc/cpuinfo | grep 'Sharp-Collie' 2>/dev/null >/dev/null && test -f /etc/X11/kb/collie.xmodmap && xmodmap /etc/X11/kb/collie.xmodmap
;;
esac

and restart X11 (not only wmaker!). Also ensure you have corresponding xmodmaps

Or the problem might be in rxvt mapped to XF86LaunchB (Address).

If this won't help, be ready to match codes from xev output with those from /etc/X11/kb/*.xmodmap
« Last Edit: November 30, 2005, 09:30:49 am by iamphet »

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #9 on: November 30, 2005, 09:33:33 am »
Thanks!  
Mine is a C860 actually, which is for compiling things and all sorts of testing; the 'real' man is a C1000.  
I think I might have messed up the keyboard settings, perhaps did it in Keyboard Shortcut Preferences, just because I am being so excited about this fantastic wm and a bit too hard on the settings (I kept running through the Preferences over the last couple of hours, and got really surprised by the richness and depth of the settings ) .  Anyway I reinstalled the whole thing with your updated package and things are back to normal, and terrific, now.
Having read the man page plus the GNUstep/Library/WindowMaker/README, I am curious to know if there's any other useful and essential documentation.  Any good advice?
« Last Edit: November 30, 2005, 09:35:56 am by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

iamphet

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
    • http://iamphet.nm.ru
Windowmaker & (x)vim For Pdaxrom?
« Reply #10 on: November 30, 2005, 09:53:22 am »
There are several (somewhat outdated) pieces of the documentation on its official site. WindowMaker source tarball contains useful FAQ which I'm attaching here. Also you might want to turn on "Balloon Help" in WindowMaker Preferences to get an idea what it can suggest to you, if you haven't done so yet.

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #11 on: November 30, 2005, 10:05:36 am »
Quote
There are several (somewhat outdated) pieces of the documentation on its official site. WindowMaker source tarball contains useful FAQ which I'm attaching here. Also you might want to turn on "Balloon Help" in WindowMaker Preferences to get an idea what it can suggest to you, if you haven't done so yet.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=105565\"][{POST_SNAPBACK}][/a][/div]

Great.  I guess the FAQ will make a good bedtime reading tonight.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #12 on: December 01, 2005, 04:55:44 pm »
The latest issue of TUX (just came out today) has a very nice feature article on WindowMaker.  A must read!      (I remember the last issue talks about Xfce4 as welll  )

Edited: previously I carelessly typed WindowMaker as WindowManager.  I almost confused (or equated) WM and wm ...  
« Last Edit: December 01, 2005, 09:29:49 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

dtruchan

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #13 on: December 01, 2005, 08:53:01 pm »
Quote
There is a full vim 6.4 compiled by dtruchan not long ago.  I'm using it and it runs fast and great (despite its size)   
https://www.oesf.org/forums/index.php?showtopic=15722

As for WindowMaker, I also wanna give it a try.  The menus look great and very handy.  But why does the bottommost portrait screenshot look a bit weird as the lower part of it seems not to be displaying anything... or is it just my eye problem?   
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]


I know it's big.  
The vim binary alone is 1.2M
You can clean up some stuff, I packaged everything.

/usr/share/vim/vim64/tutor/   ~670K
/usr/share/vim/vim64/doc/     ~4.2M
/usr/share/vim/vim64/syntax/ ~3.5M
/usr/share/vim/vim64/lang/    ~780K

I get rid of tutor, doc and lang (make sure you keep the ones you need).  
I keep only the syntax files I need.

Thats quite a bit of space back, ~8M.

The packages is [a href=\"https://www.oesf.org/forums/index.php?showtopic=15722]here[/url].

Thanks for WindowMaker iamphet.

Quote
I have one question: it seems WindowMaker has overwritten and replaced my original startup script for matchbox, so my question is: what shall I do in case I need to switch to matchbox?

Here is what I do on my Desktop and Zaurus:

create an xinintrc for each window manager in /etc/X11/xinit
(create xinitrc.matchbox from the original ~/.xinitrc)
Code: [Select]
xinitrc.matchbox
xinitrc.fvwm
xinitrc.ratpoison
etc ...
copy your xmodmap line from xinitrc.matchbox into your other xinitrc files.
Put your window manager filename last

here is what my xinitrc files looks like:

xinitrc.matchbox
Code: [Select]
It looks just like yours, so I wont paste it here.
xinitrc.fvwm
Code: [Select]
xmodmap /etc/X11/kb/corgi.xmodmap
xset s off
fvwm

xinitrc.ratpoison
Code: [Select]
xmodmap /etc/X11/kb/corgi.xmodmap
xset s off
ratpoison

then create a a startx for each window manager in /usr/X11R6/bin.
Code: [Select]
startx.matchbox
startx.fvwm
startx.ratpoison
etc ...
edit each startx file and change the sysclientrc variable to point to the specific xinitrc file.
Here is the line from startx.fvwm
Code: [Select]
...
sysclientrc=/etc/X11/xinit/xinitrc.fvwm
...
Then remove ~/.xinitrc

That's all.

This way I can start any window manager by just running the appropriate startx.
 
860 Debian EABI
Lexar Cards
WCF11 v2.5
Mittoni SD-CF Adapter
Gentoo

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Windowmaker & (x)vim For Pdaxrom?
« Reply #14 on: December 01, 2005, 09:33:47 pm »
Thanks for your handy tips, dtruchan!  Now I feel much safer safe to plunge into different interesting wm.

BTW here is my screenshot mimicking the one in TUX.    

 [ Invalid Attachment ]
« Last Edit: December 01, 2005, 09:38:17 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]