I've been wanting to do something like this for a while. I've got various experiments using the RatPoision WM (which I use anyway) but I've never managed to get precise buffer dimensions out of emacs or deal properly with focus. How far along have you got?