|
|
- Config { font = "xft:Bitstream Vera Sans Mono:size=18:antialias=true"
- , bgColor = "darkgreen"
- , fgColor = "white"
- , 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
- -- version with seconds:
- -- , Run Date "%a %Y-%m-%d %l:%M:%S %s" "date" 10
- , Run Date "%a %Y-%m-%d %l:%M %s" "date" 10
- -- This doesn't seem to work:
- -- , Run DateZone "%l:%M" "de_DE.UTF-8" "Etc/UTC" "utcTime" 10
- , Run BatteryP ["BAT0"] ["-t", "AC <acstatus> (<left>%)"] 500
- , Run StdinReader
- ]
- , sepChar = "%"
- , alignSep = "}{"
- -- battery template:
- , template = "%StdinReader% }{ %cpu% %memory% %dynnetwork% %battery% <fc=#a3ddf0>%date%</fc>%KLMO%"
- -- non battery template:
- -- , template = "%StdinReader% }{ %cpu% %memory% %dynnetwork% - <fc=#a3ddf0>%date%</fc>%KLMO%"
- }
|