Skip to content

Instantly share code, notes, and snippets.

@pbrisbin
Created October 16, 2010 01:24
Show Gist options
  • Select an option

  • Save pbrisbin/629265 to your computer and use it in GitHub Desktop.

Select an option

Save pbrisbin/629265 to your computer and use it in GitHub Desktop.
--
-- Loghook
--
-- note: some of these colors may differ from what's in the
-- screenshot, it changes daily
--
myLogHook h = dynamicLogWithPP $ defaultPP -- the h here...
-- display current workspace as darkgrey on light grey (opposite of default colors)
{ ppCurrent = dzenColor "#303030" "#909090" . pad
-- display other workspaces which contain windows as a brighter grey
, ppHidden = dzenColor "#909090" "" . pad
-- display other workspaces with no windows as a normal grey
, ppHiddenNoWindows = dzenColor "#606060" "" . pad
-- display the current layout as a brighter grey
, ppLayout = dzenColor "#909090" "" . pad
-- if a window on a hidden workspace needs my attention, color it so
, ppUrgent = dzenColor "#ff0000" "" . pad . dzenStrip
-- shorten if it goes over 100 characters
, ppTitle = shorten 100
-- no separator between workspaces
, ppWsSep = ""
-- put a few spaces between each object
, ppSep = " "
, ppOutput = hPutStrLn h -- ... must match the h here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment