[xmonad] Issue 523 in xmonad: Too small remembered pids hooks in XMonad.Actions.SpawnOn

codesite-noreply at google.com codesite-noreply at google.com
Mon Jan 14 02:57:46 CET 2013


Updates:
	Status: Fixed
	Owner: vogt.a... at gmail.com
	Labels: Component-Contrib Type-Defect

Comment #2 on issue 523 by vogt.a... at gmail.com: Too small remembered pids  
hooks in XMonad.Actions.SpawnOn
http://code.google.com/p/xmonad/issues/detail?id=523

I've pushed patch adding a slightly incorrectly named:

manageSpawnWithGC :: ([(ProcessID, ManageHook)] -> X [(ProcessID,  
ManageHook)]) -> ManageHook

Some options for the first argument are:

f1 = return -- never delete anything old

f2 = return . take 100 -- keep 100

f3 xs = do -- keep roughly the number of processes you have
   ps <- readProcess "ps" ["u"] ""
   return (take (length (lines ps)) xs)





More information about the xmonad mailing list