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.

39 lines
2.2 KiB

13 years ago
13 years ago
13 years ago
  1. Config { font = "xft:Bitstream Vera Sans Mono:size=13: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. -- version with seconds:
  22. -- , Run Date "%a %Y-%m-%d %l:%M:%S %s" "date" 10
  23. , Run Date "%a %Y-%m-%d %l:%M %s" "date" 10
  24. -- This doesn't seem to work:
  25. -- , Run DateZone "%l:%M" "de_DE.UTF-8" "Etc/UTC" "utcTime" 10
  26. , Run BatteryP ["BAT0"] ["-t", "AC <acstatus> (<left>%)"] 500
  27. , Run StdinReader
  28. ]
  29. , sepChar = "%"
  30. , alignSep = "}{"
  31. -- battery template:
  32. , template = "%StdinReader% }{ %cpu% %memory% %dynnetwork% %battery% <fc=#a3ddf0>%date%</fc>%KLMO%"
  33. -- non battery template:
  34. -- , template = "%StdinReader% }{ %cpu% %memory% %dynnetwork% - <fc=#a3ddf0>%date%</fc>%KLMO%"
  35. }