Config { font = "xft:Ubuntu:weight=bold:pixelsize=20:antialias=true:hinting=true"
, additionalFonts = [ "xft:Mononoki:pixelsize=18:antialias=true:hinting=true"
, "xft:Font Awesome 6 Free Solid:pixelsize=22"
, "xft:Font Awesome 6 Brands:pixelsize=22"
]
, bgColor = "#282c34"
, fgColor = "#ff6c6b"
, alpha = 255
, position = TopSize L 100 24
, textOffset = -1
, iconOffset = -1
, lowerOnStart = True
, persistent = True
, hideOnStart = False
, iconRoot = "."
, allDesktops = True
, overrideRedirect = True
, commands = [
-- Echos a "penguin" icon in front of the kernel output.
Run Com "echo" ["\xf17c"] "penguin" 36000
-- Get kernel version (script found in .local/bin)
, Run Com "/home/key/.config/xmobar/get_kernel.sh" [] "kernel" 36000
-- Echos a "rj45" icon in front of the ip output.
, Run Com "echo" ["\xf796"] "rj" 36000
-- Get the Current IP address
, Run Com "/home/key/.config/xmobar/ip.sh" [] "myip" 150
-- Dy Newtoek consumption
, Run DynNetwork [ "--template" , ": kB/s|kB/s"
, "--Low" , "5000" -- units: kB/s
, "--High" , "50000" -- units: kB/s
, "--low" , "darkgreen"
, "--normal" , "darkorange"
, "--high" , "darkred"
] 10
-- 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
-- Prints out the left side items such as workspaces, layout, etc.
, Run UnsafeStdinReader
]
, sepChar = "%"
, alignSep = "}{"
, template = "%penguin% %kernel% %rj% %dynnetwork% IP:%myip%}{%cpu% %date%"
}