Re:Tinywm, a window manager in 50 lines of C
by mahmud on Monday December 14, 2009 @04:11PM
(#995106)
Stumpwm is in CL and you can read it. And while googling a second ago, I found this http://tronche.com/gui/x/gwm/html-manual/
Lispy window manager; gonna chase down the author's page and see if this gave birth to any research papers.
Re:Tinywm, a window manager in 50 lines of C
by silentbicycle on Monday December 14, 2009 @04:27PM
(#995148)
I've read through parts of Ratpoison, aewm, Awesome, XMonad, Blackbox, and other WMs over the years. Short source like this can be very helpful in other ways, though - seeing a very simple Scheme interpreter or minimal webserver in Python (or whatever) can make previously "hard" things more approachable. The "hey, you can do this too" energy or big picture insight from overly-simple-but-still-functional code can be just as helpful as deep references sometimes.
As WMs go, I've had an itch for a while to write a skeleton WM in C with hooks to script it in Lua. dwm continues to work just well enough for me, though, and I've already got too many projects. One of these days... (And no, Awesome and XMonad don't do it for me.)
Also, for anybody doing any kind of exploratory X WM programming, it's incredibly helpful to use a nested X server such as Xnest (http://www.xfree86.org/4.0/Xnest.1.html) for debugging. Something like this should work:
#!/bin/sh
# -ac allows connections
Xnest -ac :1 &
Then you can say e.g. "xeyes -display :1" to run things inside it.
Re:Tinywm, a window manager in 50 lines of C
by trapd00r on Tuesday December 15, 2009 @01:40AM
(#996062)
Thank you for the heads up with the -ac. Did not now about that. I agree that xnest or similiar is very useable in all kinds of situations.
Look at how many windowmanagers are based on aewm, too.