Config {
  -- font =         "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
  font = "Hack 7"
  , bgColor = "black"
  -- , fgColor = "#646464"
  , fgColor = "#ffffff"
  -- , position = Top
  , position = OnScreen 0 (TopW L 90)
  -- , border = BottomB
  -- , borderColor = "#646464"
  , sepChar = "%"   -- delineator between plugin names and straight text
  , alignSep = "}{"  -- separator between left-right alignment
  , template = "%StdinReader% }{ %multicpu%   %thermal0%   %memory%   %dynnetwork%   %battery%   %kbd%   %parisTime% "
  , lowerOnStart = True -- send to bottom of window stack on start
  , hideOnStart = False -- start with window unmapped (hidden)
  , allDesktops = True -- show on all desktops
  , overrideRedirect = True -- set the Override Redirect flag (Xlib)
  , pickBroadest = False -- choose widest display (multi-monitor)
  , persistent = True -- enable/disable hiding (True = disabled)
  , commands =
    [ Run StdinReader
    , Run MultiCpu
      [ "--template", "CPU:<autototal>%"
      , "--Low", "50" -- units: %
      , "--High", "85" -- units: %
      , "--low", "green"
      , "--normal", "orange"
      , "--high", "red"
      ] 10
    , Run ThermalZone 0
      [ "--template", "Temp:<temp>°C"
      , "--Low", "70" -- units: °C
      , "--High", "80" -- units: °C
      , "--low", "green"
      , "--normal", "orange"
      , "--high", "red"
      ] 30
    , Run Memory
      [ "--template","Mem:<usedratio>%"
      , "--Low", "20" -- units: %
      , "--High", "90" -- units: %
      , "--low", "green"
      , "--normal", "orange"
      , "--high", "red"
      ] 10
    -- Note that reloading xmonad is needed (Win+End)
    -- to detect network interfaces brought
    -- after xmonad has started (eg. over USB).
    , Run DynNetwork
      [ "--template", "<dev>:Tx:<tx>|Rx:<rx>kB/s"
      , "--Low", "20000" -- units: B/s
      , "--High", "1000000" -- units: B/s
      , "--low", "green"
      , "--normal", "orange"
      , "--high", "red"
      ] 10
    , Run Battery
      [ "--template", "Batt:<acstatus>"
      , "--Low", "20" -- units: %
      , "--High", "80" -- units: %
      , "--low", "red"
      , "--normal", "orange"
      , "--high", "green"
      , "--" -- battery specific options
        -- discharging status
        , "-o", "<left>% (<timeleft>)"
        -- AC "on" status
        , "-O", "<fc=#dAA520>Charging</fc>"
        -- charged status
        , "-i", "<fc=green>Charged</fc>"
      ] 50
    , Run Kbd
      [ ("fr", "Kbd:<fc=white>FR</fc>")
      , ("us", "Kbd:<fc=white>US</fc>")
      ]
    , Run DateZone "%A %d %b %H:%M:%S" "fr_FR.UTF-8" "Europe/Paris" "parisTime" 1
    ]
  }