
On Oct 16, 2007, at 9:22 , Valery V. Vorotyntsev wrote:
2) When xmonad quits, it forgets layout settings -- number of windows in master pane, current tiling algorithm, focused window, master/subordinate ratio, etc. Doesn't it?
We could save this information to `~/.xmonad' file and read it at next startup.
This is kinda tricky if the windows in question don't exist at startup, no? The correct way to handle it is to support session manager integration: on exit, save the serialized layout in the session manager as a -layout option; the session manager will then restart xmonad with the specified options, at the same time that it restores the other programs in the session so that all the windows in the layout are (hopefully) also recreated. But then xmonad needs to know to hold on to it until it at least has the windows explicitly mentioned... and, does -layout work by windowid, or by class/name/ role? windowid is a nonstarter across X11 server instances/ instantiations.
3) Can I define a key binding like, say, `Win-k 1'?
See XMonadContrib/SubMap.hs. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH