-- Xmobar (http://projects.haskell.org/xmobar/) -- This is one of the xmobar configurations for DTOS. -- This config is packaged in the DTOS repo as 'dtos-xmobar' -- Color scheme: Solarized Dark -- Dependencies: -- otf-font-awesome -- ttf-mononoki -- ttf-ubuntu-font-family -- htop -- emacs -- pacman (Arch Linux) -- trayer -- 'dtos-local-bin' (from dtos-core-repo) Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:hinting=true" , additionalFonts = [ "xft:Mononoki:pixelsize=11:antialias=true:hinting=true" , "xft:Font Awesome 6 Free Solid:pixelsize=12" , "xft:Font Awesome 6 Brands:pixelsize=12" ] , bgColor = "#002b36" , fgColor = "#839496" -- Position TopSize and BottomSize take 3 arguments: -- an alignment parameter (L/R/C) for Left, Right or Center. -- an integer for the percentage width, so 100 would be 100%. -- an integer for the minimum pixel height for xmobar, so 24 would force a height of at least 24 pixels. -- NOTE: The height should be the same as the trayer (system tray) height. , position = TopSize L 100 24 , lowerOnStart = True , hideOnStart = False , allDesktops = True , persistent = True , iconRoot = ".xmonad/xpm/" -- default: "." , commands = [ -- Echos a "penguin" icon in front of the kernel output. Run Com "echo" ["\xf17c"] "penguin" 3600 -- Get kernel version (script found in .local/bin) , Run Com ".local/bin/kernel" [] "kernel" 36000 -- 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 -- Echos an "up arrow" icon in front of the uptime output. , Run Com "echo" ["\xf0aa"] "uparrow" 3600 -- Uptime , Run Uptime ["-t", "uptime: d h"] 360 -- Echos a "bell" icon in front of the pacman updates. , Run Com "echo" ["\xf0f3"] "bell" 3600 -- Check for pacman updates (script found in .local/bin) , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 -- Echos a "battery" icon in front of the pacman updates. , Run Com "echo" ["\xf242"] "baticon" 3600 -- Battery , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 -- Time and date , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. , Run Com ".config/xmobar/trayer-padding-icon.sh" [] "trayerpad" 20 -- Prints out the left side items such as workspaces, layout, etc. , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" , template = " %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" }