config 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. ;==========================================================
  2. ;
  3. ;
  4. ; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
  5. ; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
  6. ; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
  7. ; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
  8. ; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
  9. ; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
  10. ;
  11. ;
  12. ; To learn more about how to configure Polybar
  13. ; go to https://github.com/jaagr/polybar
  14. ;
  15. ; The README contains alot of information
  16. ;
  17. ;==========================================================
  18. [colors]
  19. ;background = ${xrdb:color0:#222}
  20. background = #000000
  21. background-alt = #444
  22. ;foreground = ${xrdb:color7:#222}
  23. foreground = #dfdfdf
  24. foreground-alt = #555
  25. primary = #ffb52a
  26. secondary = #e60053
  27. alert = #bd2c40
  28. [bar/example]
  29. ; https://github.com/polybar/polybar/wiki/Configuration
  30. enable-ipc = true
  31. ; override-redirect = false
  32. monitor = ${env:MONITOR:HDMI1}
  33. width = 100%
  34. height = 20
  35. ;offset-x = 1%
  36. ;offset-y = 1%
  37. radius = 0
  38. fixed-center = true
  39. background = ${colors.background}
  40. foreground = ${colors.foreground}
  41. line-size = 2
  42. line-color = #f00
  43. border-size = 4
  44. border-color = #00000000
  45. padding-left = 0
  46. padding-right = 2
  47. module-margin-left = 1
  48. module-margin-right = 2
  49. font-0 = DejaVu Sans Mono:size=10:style=Regular
  50. ; font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
  51. ; font-2 = siji:pixelsize=10;1
  52. modules-left = ewmh title
  53. modules-center = date
  54. modules-right = cpu memory eth filesystem pulseaudio xkeyboard
  55. ; powermenu
  56. tray-position = right
  57. tray-padding = 2
  58. ;tray-background = #0063ff
  59. ;wm-restack = bspwm
  60. ;wm-restack = i3
  61. ;override-redirect = true
  62. ;scroll-up = bspwm-desknext
  63. ;scroll-down = bspwm-deskprev
  64. ;scroll-up = i3wm-wsnext
  65. ;scroll-down = i3wm-wsprev
  66. cursor-click = pointer
  67. cursor-scroll = ns-resize
  68. [module/xkeyboard]
  69. type = internal/xkeyboard
  70. blacklist-0 = num lock
  71. format-prefix = "KEY "
  72. format-prefix-foreground = ${colors.foreground-alt}
  73. format-prefix-underline = ${colors.secondary}
  74. label-layout = %layout%
  75. label-layout-underline = ${colors.secondary}
  76. label-indicator-padding = 2
  77. label-indicator-margin = 1
  78. label-indicator-background = ${colors.secondary}
  79. label-indicator-underline = ${colors.secondary}
  80. [module/filesystem]
  81. type = internal/fs
  82. interval = 25
  83. mount-0 = /
  84. label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
  85. label-unmounted = %mountpoint% not mounted
  86. label-unmounted-foreground = ${colors.foreground-alt}
  87. [module/cpu]
  88. type = internal/cpu
  89. interval = 2
  90. format-prefix = "CPU; "
  91. format-prefix-foreground = ${colors.foreground-alt}
  92. format-underline = #f90000
  93. label = %percentage:2%%
  94. [module/memory]
  95. type = internal/memory
  96. interval = 2
  97. format-prefix = "RAM "
  98. format-prefix-foreground = ${colors.foreground-alt}
  99. format-underline = #4bffdc
  100. label = %percentage_used%%
  101. [module/eth]
  102. type = internal/network
  103. interface = br0
  104. interval = 3.0
  105. format-connected-underline = #55aa55
  106. format-connected-prefix = "LAN "
  107. format-connected-prefix-foreground = ${colors.foreground-alt}
  108. label-connected = %local_ip%
  109. format-disconnected =
  110. ;format-disconnected = <label-disconnected>
  111. ;format-disconnected-underline = ${self.format-connected-underline}
  112. ;label-disconnected = %ifname% disconnected
  113. ;label-disconnected-foreground = ${colors.foreground-alt}
  114. [module/date]
  115. type = internal/date
  116. interval = 5
  117. date =
  118. date-alt = " %Y-%m-%d"
  119. time = %H:%M
  120. time-alt = %H:%M:%S
  121. format-prefix = MSK
  122. format-prefix-foreground = ${colors.foreground-alt}
  123. format-underline = #0a6cf5
  124. label = %date% %time%
  125. [module/title]
  126. type = internal/xwindow
  127. ; label = %title:0:30:...%
  128. label-maxlen = 50
  129. [module/ewmh]
  130. type = internal/xworkspaces
  131. label-active-foreground = #ffffff
  132. label-active-underline = #fba922
  133. [module/pulseaudio]
  134. type = internal/pulseaudio
  135. format-volume = <label-volume> <bar-volume>
  136. label-volume = VOL %percentage%%
  137. label-volume-foreground = ${root.foreground}
  138. label-muted = muted
  139. label-muted-foreground = #666
  140. bar-volume-width = 10
  141. bar-volume-foreground-0 = #55aa55
  142. bar-volume-foreground-1 = #55aa55
  143. bar-volume-foreground-2 = #55aa55
  144. bar-volume-foreground-3 = #55aa55
  145. bar-volume-foreground-4 = #55aa55
  146. bar-volume-foreground-5 = #f5a70a
  147. bar-volume-foreground-6 = #ff5555
  148. bar-volume-gradient = false
  149. bar-volume-indicator = |
  150. bar-volume-indicator-font = 2
  151. bar-volume-fill = ─
  152. bar-volume-fill-font = 2
  153. bar-volume-empty = ─
  154. bar-volume-empty-font = 2
  155. bar-volume-empty-foreground = ${colors.foreground-alt}
  156. [settings]
  157. screenchange-reload = true
  158. ;compositing-background = xor
  159. ;compositing-background = screen
  160. ;compositing-foreground = source
  161. ;compositing-border = over
  162. ;pseudo-transparency = false
  163. [global/wm]
  164. margin-top = 0
  165. margin-bottom = 5
  166. ; vim:ft=dosini