-- http://projects.haskell.org/xmobar/
Config { font    = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true"
       , additionalFonts = [ "xft:Mononoki Nerd Font:pixelsize=11:antialias=true:hinting=true"
                           , "xft:Font Awesome 5 Free Solid:pixelsize=12"
                           , "xft:Font Awesome 5 Brands:pixelsize=12"
                           ]
       , bgColor = "#282c34"
       , fgColor = "#ff6c6b"
       , position = Static { xpos = 0, ypos = 0, width = 1920, height = 24 }
       , lowerOnStart = True
       , hideOnStart = False
       , allDesktops = True
       , persistent = True
       -- apparently there's no way to use env var or relpaths here
       , iconRoot = "/home/itsdrike/.config/xmobar/xpm"
       , commands = [
                    -- Time and date
                      Run Date "\xf017  %b %d %Y - (%H:%M) " "date" 50
                    -- Network up and down
                    , Run Network "wlp2s0" ["-t", "\xf0ab  kb  \xf0aa  kb"] 20
                    -- Cpu usage in percent
                    , Run Cpu ["-t", "\xf108  cpu: (%)","-H","50","--high","red"] 20
                    -- Ram used number and percent
                    , Run Memory ["-t", "\xf233  mem: M (%)"] 20
                    -- Disk space free
                    , Run DiskU [("/", "\xf0c7  hdd:  free")] [] 60
                    -- Runs a standard shell command 'uname -r' to get kernel version
                    , Run Com "uname" ["-r"] "" 3600
                    -- Add dynamic invisible XPM icon that resizes to accomodate trayer
                    -- this needs to be an absolute string path, env vars or relpaths aren't accepted
                    -- this should only be on 1 monitor (single file), so ignore this comment on others
                    , Run Com "/home/itsdrike/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 10
                    -- Allow mouse clicking by using unsafe stdin reader
                    , Run UnsafeStdinReader
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "    | %UnsafeStdinReader% }{ \
       \|     %uname%  \
       \|    %cpu%  \
       \|    %memory%  \
       \|    %disku%  \
       \|    %wlp2s0%  \
       \|    %date%  \
       \%trayerpad%\
       \ "
       }