|
Config { font = "xft:Bitstream Vera Sans Mono:size=14:antialias=true"
|
|
, bgColor = "darkgreen"
|
|
, fgColor = "grey"
|
|
, position = BottomW L 90
|
|
, lowerOnStart = False
|
|
|
|
-- Recent notes on weather data: https://p1k3.com/2019/2/16
|
|
|
|
-- Source of Weather plugin: https://github.com/jaor/xmobar/blob/master/src/Xmobar/Plugins/Monitors/Weather.hs
|
|
-- Weather stations are pulled from: https://tgftp.nws.noaa.gov/data/observations/metar/decoded/
|
|
-- HTML list of METAR stations: https://www.aviationweather.gov/metar/info
|
|
-- Text list of METAR stations: https://www.aviationweather.gov/docs/metar/stations.txt
|
|
|
|
-- Denver International Airport is KDEN; was using that previously.
|
|
-- KLMO is Vance Brand Airport in Longmont, CO.
|
|
-- If you change the station, remember that you also have to update the
|
|
-- template string belong to use the new station name, otherwise you'll
|
|
-- just get an "Updating..." notice instead of the temperature.
|
|
|
|
, commands = [ Run Weather "KLMO" ["-t", " <tempF>F/<skyCondition>", "-L", "64", "-H", "77", "--normal", "green", "--high", "red", "--low", "blue"] 36000
|
|
, Run Cpu ["-t", "c <total>%", "-L", "3", "-H", "50", "--normal", "green", "--high", "red"] 10
|
|
, Run Memory ["-t", "m <usedratio>%"] 10
|
|
, Run DynNetwork ["-L", "0", "-H", "32", "--normal", "green", "--high", "red"] 300
|
|
-- , Run Swap ["-t", "swap: <usedratio>%"] 10
|
|
, Run Date "%a %Y-%m-%d %l:%M (%s)" "date" 10
|
|
, Run BatteryP ["BAT0"] ["-t", "AC <acstatus> (<left>%)"] 500
|
|
, Run StdinReader
|
|
]
|
|
, sepChar = "%"
|
|
, alignSep = "}{"
|
|
, template = "%StdinReader% }{ %cpu% %memory% %dynnetwork% - %battery% - <fc=#a3ddf0>%date%</fc>%KLMO%"
|
|
}
|