Advertisement
Guest User

xmobarrc

a guest
May 8th, 2023
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. Config {
  2.  
  3. -- appearance
  4. font = "Monospace Regular 14"
  5. , bgColor = "black"
  6. , fgColor = "grey"
  7. , position = Top
  8. , borderColor = "#646464"
  9.  
  10. -- layout
  11. , sepChar = "%" -- delineator between plugin names and straight text
  12. , alignSep = "}{" -- separator between left-right alignment
  13. , template = " %StdinReader% }{ %battery% | : %myvolume% | %bright% | %dynnetwork% | %date% "
  14.  
  15. -- general behavior
  16. , lowerOnStart = True -- send to bottom of window stack on start
  17. , hideOnStart = False -- start with window unmapped (hidden)
  18. , allDesktops = True -- show on all desktops
  19. , overrideRedirect = True -- set the Override Redirect flag (Xlib)
  20. , pickBroadest = False -- choose widest display (multi-monitor)
  21. , persistent = True -- enable/disable hiding (True = disabled)
  22.  
  23. -- plugins
  24. -- Numbers can be automatically colored according to their value. xmobar
  25. -- decides color based on a three-tier/two-cutoff system, controlled by
  26. -- command options:
  27. -- --Low sets the low cutoff
  28. -- --High sets the high cutoff
  29. --
  30. -- --low sets the color below --Low cutoff
  31. -- --normal sets the color between --Low and --High cutoffs
  32. -- --High sets the color above --High cutoff
  33. --
  34. -- The --template option controls how the plugin is displayed. Text
  35. -- color can be set by enclosing in <fc></fc> tags. For more details
  36. -- see http://projects.haskell.org/xmobar/#system-monitor-plugins.
  37. , commands =
  38.  
  39. [ Run DynNetwork [ "--template" , ": <tx>kB/s <rx>kB/s"] 10
  40.  
  41. -- cpu activity monitor
  42. --, Run Cpu ["-L", "3", "-H", "50"] 10
  43.  
  44. -- StdinReader
  45. , Run StdinReader
  46.  
  47. -- memory usage monitor
  48. , Run Memory [ "--template" ,": <used> Gb", "-d", "1", "--", "--scale", "1024"] 10
  49.  
  50. -- battery monitor
  51. , Run Battery [ "--template" , ": <acstatus>"
  52. , "--Low" , "10" -- units: %
  53. , "--High" , "80" -- units: %
  54. , "--low" , "red"
  55. , "--normal" , "orange"
  56. , "--high" , "green"
  57.  
  58. , "--" -- battery specific options
  59. -- discharging status
  60. , "-o" , "<left>% (<timeleft>)"
  61. -- AC "on" status
  62. , "-O" , "<fc=#DAA520>Charging</fc>"
  63. -- charged status
  64. , "-i" , "<fc=#006000>Charged</fc>"
  65. ] 50
  66.  
  67. -- time and date indicator
  68. , Run Date ": %a, %b. %_d %Y (%H:%M)" "date" 10
  69.  
  70. , Run Com "/bin/bash" ["-c", "~/.xmonad/volume"] "myvolume" 10
  71.  
  72. , Run Brightness [ "-t", ": <percent>%", "--", "-D", "intel_backlight" ] 10
  73.  
  74. -- Kernel
  75. -- , Run Com "uname" ["-s", "-r"] "" 36000
  76.  
  77. ]
  78. }
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement