[Xmonad] Issue 14 in project xmonad

codesite-noreply at google.com codesite-noreply at google.com
Fri Jun 1 05:02:45 EDT 2007

Issue 14: Workspace information to stdout

Comment #3 by dons00:
Example code to log state changes to stdout / stderr is in the repo now. It prints
the internal state as a haskell structure. you could read it, and hack it, with a
simple haskell script, e.g.:

    {-# OPTIONS -fglasgow-exts #-}

    import Data.List
    import StackSet
    import XMonad

    unW (W n) = n

    main = do
        s <- readIO =<< getLine :: IO ( StackSet W Integer S )
        let c   = map ( unW . tag ) $ workspace (current s)
            ws  = sort $ map ( unW . tag ) $ map workspace (visible s) ++ hidden s
        print c
        print ws

Issue attribute updates:
	Status: Started

You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:

More information about the Xmonad mailing list