Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.9 KiB

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