xmobarrc 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Config {
  2. -- appearance
  3. font = "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
  4. , bgColor = "black"
  5. , fgColor = "#646464"
  6. , position = Top
  7. , border = BottomB
  8. , borderColor = "#646464"
  9. -- layout
  10. , sepChar = "%" -- delineator between plugin names and straight text
  11. , alignSep = "}{" -- separator between left-right alignment
  12. , template = "%battery% | %multicpu% | %coretemp% | %memory% | %dynnetwork% }{ %RJTT% | %date% || %kbd% "
  13. -- general behavior
  14. , lowerOnStart = True -- send to bottom of window stack on start
  15. , hideOnStart = False -- start with window unmapped (hidden)
  16. , allDesktops = True -- show on all desktops
  17. , overrideRedirect = True -- set the Override Redirect flag (Xlib)
  18. , pickBroadest = False -- choose widest display (multi-monitor)
  19. , persistent = True -- enable/disable hiding (True = disabled)
  20. -- plugins
  21. -- Numbers can be automatically colored according to their value. xmobar
  22. -- decides color based on a three-tier/two-cutoff system, controlled by
  23. -- command options:
  24. -- --Low sets the low cutoff
  25. -- --High sets the high cutoff
  26. --
  27. -- --low sets the color below --Low cutoff
  28. -- --normal sets the color between --Low and --High cutoffs
  29. -- --High sets the color above --High cutoff
  30. --
  31. -- The --template option controls how the plugin is displayed. Text
  32. -- color can be set by enclosing in <fc></fc> tags. For more details
  33. -- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
  34. , commands =
  35. -- weather monitor
  36. [ Run Weather "RJTT" [ "--template", "<skyCondition> | <fc=#4682B4><tempC></fc>°C | <fc=#4682B4><rh></fc>% | <fc=#4682B4><pressure></fc>hPa"
  37. ] 36000
  38. -- network activity monitor (dynamic interface resolution)
  39. , Run DynNetwork [ "--template" , "<dev>: <tx>kB/s|<rx>kB/s"
  40. , "--Low" , "1000" -- units: B/s
  41. , "--High" , "5000" -- units: B/s
  42. , "--low" , "darkgreen"
  43. , "--normal" , "darkorange"
  44. , "--high" , "darkred"
  45. ] 10
  46. -- cpu activity monitor
  47. , Run MultiCpu [ "--template" , "Cpu: <total0>%|<total1>%"
  48. , "--Low" , "50" -- units: %
  49. , "--High" , "85" -- units: %
  50. , "--low" , "darkgreen"
  51. , "--normal" , "darkorange"
  52. , "--high" , "darkred"
  53. ] 10
  54. -- cpu core temperature monitor
  55. , Run CoreTemp [ "--template" , "Temp: <core0>°C|<core1>°C"
  56. , "--Low" , "70" -- units: °C
  57. , "--High" , "80" -- units: °C
  58. , "--low" , "darkgreen"
  59. , "--normal" , "darkorange"
  60. , "--high" , "darkred"
  61. ] 50
  62. -- memory usage monitor
  63. , Run Memory [ "--template" ,"Mem: <usedratio>%"
  64. , "--Low" , "20" -- units: %
  65. , "--High" , "90" -- units: %
  66. , "--low" , "darkgreen"
  67. , "--normal" , "darkorange"
  68. , "--high" , "darkred"
  69. ] 10
  70. -- battery monitor
  71. , Run Battery [ "--template" , "Batt: <acstatus>"
  72. , "--Low" , "10" -- units: %
  73. , "--High" , "80" -- units: %
  74. , "--low" , "darkred"
  75. , "--normal" , "darkorange"
  76. , "--high" , "darkgreen"
  77. , "--" -- battery specific options
  78. -- discharging status
  79. , "-o" , "<left>% (<timeleft>)"
  80. -- AC "on" status
  81. , "-O" , "<fc=#dAA520>Charging</fc>"
  82. -- charged status
  83. , "-i" , "<fc=#006000>Charged</fc>"
  84. ] 50
  85. -- time and date indicator
  86. -- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
  87. , Run Date "<fc=#ABABAB>%F (%a) %T</fc>" "date" 10
  88. -- keyboard layout indicator
  89. , Run Kbd [ ("us(dvorak)" , "<fc=#00008B>DV</fc>")
  90. , ("us" , "<fc=#8B0000>US</fc>")
  91. ]
  92. ]
  93. }