Like many other people, Ethan Schoonover's precision colours for machines and people, known as Solarized is my preferred colour pallet, especially as I spend most of my time in terminals.
I've "Solarized" most things in my work environment except my window manager, xmonad. Well to be more specific, the xmobar, trayer and dmenu applications that I use within xmonad.
The commits:
Modifications were made to xmonad.hs, .xmobarrc and trayer in .xsession that switches out the existing and default colours for those I've selected from the Solarized palette. I now have a fully Solarized window manager that fits in much better with the rest of my workspace.
Relevant code snippets:
xmonad.hs
, logHook = dynamicLogWithPP $ xmobarPP
{ ppOutput = hPutStrLn xmproc
, ppCurrent = xmobarColor "#859900" "" . wrap "[" "]"
, ppVisible = xmobarColor "#2aa198" "" . wrap "(" ")"
, ppLayout = xmobarColor "#2aa198" ""
, ppTitle = xmobarColor "#859900" "" . shorten 50
}
, modMask = mod4Mask -- Rebind Mod to the Windows key
--, borderWidth = 1
} `additionalKeys`
-- Custom dmenu launcher
[ ((mod4Mask, xK_p ), spawn "exe=`dmenu_path | dmenu -fn \"Open Sans-10\" -p \"λ:\" -nb \"#073642\" -nf \"#93a1a1\" -sb \"#002b36\" -sf \"#859900\"` && eval \"exec $exe\"")
.xmobarrc
-- Appearance
font = "xft:OpenSans:size=10:antialias=true"
, bgColor = "#073642"
, fgColor = "#93a1a1"
...
--Plugins
, commands =
-- CPU Activity Monitor
...
, "--low" , "#2aa198"
, "--normal" , "#859900"
, "--high" , "#dc322f"
...
-- cpu core temperature monitor
...
, "--low" , "#2aa198"
, "--normal" , "#859900"
, "--high" , "#dc322f"
...
-- Memory Usage Monitor
...
, "--low" , "#2aa198"
, "--normal" , "#859900"
, "--high" , "#dc322f"
...
-- Battery Monitor
...
, "--low" , "#dc322f"
, "--normal" , "#859900"
, "--high" , "#2aa198"
, "--" -- battery specific options
-- discharging status
, "-o" , "<left>% (<timeleft>)"
-- AC "on" status
, "-O" , "<fc=#2aa198>Charging</fc>"
-- charged status
, "-i" , "<fc=#859900>Charged</fc>"
...
-- Weather Monitor
...
, "--low" , "#2aa198"
, "--normal" , "#859900"
, "--high" , "#dc322f"
...
-- Network Activity Monitor
...
, "--low" , "#2aa198"
, "--normal" , "#859900"
, "--high" , "#dc322f"
...
-- Time and Date Display
, Run Date "<fc=#268bd2>%a %b %_d %H:%M</fc>" "date" 10
...
.xsession
exec /usr/bin/trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --transparent true --alpha 0 --tint 0x073642 --height 22 &
That at least implements the colours I selected from Solarized and should be a good starting point for anyone else.