My recipe for setting up Xmonad on Ubuntu GNU/Linux is here.
What is xmonad? Read this page to learn.
Some of these instructions were adapted from the Source Matters Blog. But I also depart from those instructions in certain ways.
My recipe for setting up Xmonad on Ubuntu GNU/Linux is here.
What is xmonad? Read this page to learn.
Some of these instructions were adapted from the Source Matters Blog. But I also depart from those instructions in certain ways.
For setting up Xmonad on OS X Lion, click here.
Install Xmonad with sudo apt-get install xmonad.
The following settings are adapted with modifications from http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_in_Gnome#Ubuntu_Oneiric.
Put this configuration in /usr/share/xsessions/xmonad-gnome-session.desktop:
| module SpecHelper | |
| def local_io(in_str) | |
| old_stdin, old_stdout = $stdin, $stdout | |
| $stdin = StringIO.new(in_str) | |
| $stdout = StringIO.new | |
| yield | |
| $stdout.string | |
| ensure | |
| $stdin, $stdout = old_stdin, old_stdout | |
| end |
| after :: String -> [String] -> [String] | |
| after _ [] = [] | |
| after target (x:xs) | |
| | isInfixOf target x = [x] ++ xs | |
| | otherwise = after target xs | |
| main = do | |
| contents <- readFile "the-lake-isle-of-innisfree.txt" | |
| putStr . unlines . after "glimmer" . lines $ contents |