xmobarrc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Config {
  2. -- appearance
  3. font = "xft:SFNS Display:size=11,FontAwesome:size=11"
  4. , bgColor = "black"
  5. , fgColor = "#A8A8A8"
  6. , position = TopW L 90
  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 = "%StdinReader% }{ %battery% | %cpu% | %memory% | %dynnetwork% | %date%"
  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 = False -- 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", "<fc=#4682B4><tempF></fc>°F"
  37. ] 36000
  38. -- network activity monitor (dynamic interface resolution)
  39. , Run DynNetwork [ "--template" , "<dev>: ⬇️<rx>kB/s, ⬆️<tx>kB/s"
  40. , "--Low" , "1000" -- units: B/s
  41. , "--High" , "5000" -- units: B/s
  42. , "--low" , "green"
  43. , "--normal" , "darkorange"
  44. , "--high" , "red"
  45. ] 10
  46. -- cpu activity monitor
  47. , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
  48. , Run MultiCpu [ "--template" , "Cpu: <total0>%|<total1>%"
  49. , "--Low" , "50" -- units: %
  50. , "--High" , "85" -- units: %
  51. , "--low" , "green"
  52. , "--normal" , "orange"
  53. , "--high" , "red"
  54. ] 10
  55. -- memory usage monitor
  56. , Run Memory [ "--template" ,"Mem: <usedratio>%"
  57. , "--Low" , "20" -- units: %
  58. , "--High" , "90" -- units: %
  59. , "--low" , "green"
  60. , "--normal" , "orange"
  61. , "--high" , "red"
  62. ] 10
  63. -- battery monitor
  64. , Run Battery [ "--template" , "<acstatus>"
  65. , "--Low" , "10" -- units: %
  66. , "--High" , "80" -- units: %
  67. , "--low" , "red"
  68. , "--normal" , "orange"
  69. , "--high" , "green"
  70. , "--" -- battery specific options
  71. -- discharging status
  72. , "-o" , "⚇ <left>% (<timeleft>)"
  73. -- AC "on" status
  74. , "-O" , "⚡ <left>% (<timeleft>)"
  75. -- charged status
  76. , "-i" , "<left>%"
  77. ] 50
  78. -- time and date indicator
  79. -- (%F = y-m-d date, %a = day of week, %T = h:m:s time)
  80. , Run Date "<fc=#ABABAB>%F (%a) %T</fc>" "date" 10
  81. , Run StdinReader
  82. ]
  83. }