Skip to content

Instantly share code, notes, and snippets.

@polachok
Created January 26, 2013 22:35
Show Gist options
  • Save polachok/4645103 to your computer and use it in GitHub Desktop.
Save polachok/4645103 to your computer and use it in GitHub Desktop.
iconDir = "/home/plhk/.xmobar/"
getIcon s = "<icon=" ++ iconDir ++ s ++ ".xbm" ++ ">"
------------------------------------------------------------------------
-- Now run xmonad with all the defaults we set up.
-- Run xmonad with the settings you specify. No need to modify this.
--
main = do
xmonad =<< statusBar "xmobar" myPP toggleStrutsKey defaults
myPP = defaultPP { ppCurrent = \d -> xmobarColor "#74D9EE" "#222222" . pad $ (getIcon d) ++ d,
ppHidden = \d -> (getIcon d) ++ d,
--ppTitle = xmobarColor "" "#222222",
ppSep = " ",
ppLayout = \l -> xmobarColor "#74d9ee" "#222222" . pad $ (getIcon l)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment