-- http://projects.haskell.org/xmobar/ -- I use Font Awesome 5 fonts in this config for unicode "icons". On Arch Linux, -- install this package from the AUR to get these fonts: otf-font-awesome-5-free Config { font = "xft:Source Code Pro:weight=bold:pixelsize=13:antialias=true:hinting=true,WenQuanYi Zen Hei Mono:pixelsize=13:antialias=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 = 1920 , ypos = 0, width = 1920, height = 24 } , position = Bottom , lowerOnStart = True , hideOnStart = False , allDesktops = True , persistent = True , commands = [ -- Time and date Run Date "%b %d %Y - (%H:%M) " "date" 50 -- Network up and down , Run Network "wlp7s0" ["-t", "\xf0ab kb \xf0aa kb"] 20 -- Cpu usage in percent , Run Cpu ["-t", "cpu: (%)","-H","50","--high","red"] 20 -- Ram used number and percent , Run Memory ["-t", "mem: M (%)"] 20 -- Disk space free , Run DiskU [("/", "hdd: ")] [] 60 -- Runs custom script to check for pacman updates. -- This script is in my dotfiles repo in .local/bin. , Run Com "/home/shrik3/scripts/pacupdates" [] "pacupdate" 36000 -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. , Run Com "/home/shrik3/.config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 -- Prints out the left side items such as workspaces, layout, etc. -- The workspaces are 'clickable' in my configs. , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" , template = " %UnsafeStdinReader% }{ | %cpu% | %memory% | %disku% | %wlp7s0% | PKGs:%pacupdate% | %date%| %trayerpad%" }