{config, ...}:
{
  programs.xmobar = {
    extraConfig = ''
    Config
    {
      font = "mononoki 12"
    , additionalFonts = ["xft:Inconsolata", "xft:FontAwesome"]
    , position = TopSize L 100 27
    , bgColor = "#${config.colorScheme.palette.base00}"
    , fgColor = "#${config.colorScheme.palette.base05}"
    , allDesktops = True
    , persistent = True
    , commands = [
          Run Cpu ["-t", " <total>%"] 10
        , Run Memory ["-t"," <used>m used"] 10
        , Run Date " %a %b %d - %r" "date" 10
        , Run BatteryP ["ACAD", "BAT0", "hidpp_battery_0"] ["-t", " <left>%"] 3
        , Run Uptime ["-t"," <days>d <hours>h <minutes>m"] 10
        , Run DiskU [("/"," <free> free")] [] 3000
        , Run UnsafeXMonadLog
        ]
    , sepChar = "%"
    , alignSep = "}{"
    --, template = "  %UnsafeXMonadLog% }{ <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0D}><fc=#${config.colorScheme.palette.base0D}>%memory%</fc></box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0B}><fc=#${config.colorScheme.palette.base0B}>%cpu%</fc></box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base08}><fc=#${config.colorScheme.palette.base08}>%uptime%</fc></box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0A}><fc=#${config.colorScheme.palette.base0A}>%disku%</fc></box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0C}><fc=#${config.colorScheme.palette.base0C}>%battery%</fc></box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0E}><fc=#${config.colorScheme.palette.base0E}>%date%</fc></box> "
    , template = "  %UnsafeXMonadLog% }{ <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0D}>%memory%</box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0B}>%cpu%</box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base08}>%uptime%</box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0A}>%disku%</box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0C}>%battery%</box> <box type=Bottom width=2 mb=1 color=#${config.colorScheme.palette.base0E}>%date%</box> "
}
    '';
  };
}
