all repos — nixfiles @ 35a852935e3c7cf53e6bbbcf03b775f2b9958ac9

System and user configuration, managed by nix and home-manager

Xmonad: Add initial configuration
Alan Pearce alan@alanpearce.co.uk
Fri, 18 Jul 2014 20:32:23 +0100
commit

35a852935e3c7cf53e6bbbcf03b775f2b9958ac9

parent

9b5c894c35aa17a28163ff523e00a1d36e53d9d3

1 files changed, 19 insertions(+), 0 deletions(-)

jump to
A tag-xmonad/xmonad/xmonad.hs
@@ -0,0 +1,19 @@+import XMonad
+import XMonad.Hooks.DynamicLog
+import XMonad.Hooks.ManageDocks
+import XMonad.Util.Run(spawnPipe)
+import XMonad.Util.EZConfig(additionalKeys)
+import System.IO
+
+main = do
+  xmproc <-spawnPipe "/usr/bin/xmobar /home/alan/.xmobarrc"
+  xmonad $ defaultConfig {
+    manageHook = manageDocks <+> manageHook defaultConfig,
+    layoutHook = avoidStruts  $  layoutHook defaultConfig,
+    logHook = dynamicLogWithPP xmobarPP {
+      ppOutput = hPutStrLn xmproc,
+      ppTitle  = xmobarColor "green" "" . shorten 50
+    },
+    terminal = "urxvt",
+    modMask = mod4Mask
+  }