Advertisement
Guest User

Polybar

a guest
Jan 16th, 2017
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 KB | None | 0 0
  1. ;=====================================================
  2. ;
  3. ; To learn more about how to configure Polybar
  4. ; go to https://github.com/jaagr/polybar
  5. ;
  6. ; The README contains alot of information
  7. ;
  8. ;=====================================================
  9.  
  10. [colors]
  11. background = #222
  12. background-alt = #444
  13. foreground = #dfdfdf
  14. foreground-alt = #55
  15. primary = #ffb52a
  16. secondary = #e60053
  17. alert = #bd2c40
  18.  
  19. [global/wm]
  20. margin-top = 5
  21. margin-bottom = 5
  22.  
  23. [bar/example]
  24. monitor = VGA-0
  25. width = 100%
  26. height = 27
  27. offset-x = 0
  28. offset-y = 0
  29.  
  30. ;background = ${xrdb:color9}
  31. ;background = #00000000
  32. background = #2F343F
  33. foreground = ${colors.foreground}
  34.  
  35. overline-size = 0
  36. overline-color = #f00
  37. underline-size = 0
  38. underline-color = #00f
  39.  
  40. border-bottom-size = 0
  41. border-bottom-color = #333
  42.  
  43. padding-left = 0
  44. padding-right = 2
  45. module-margin-left = 1
  46. module-margin-right = 2
  47.  
  48. font-0 = hack:pixelsize=12;1
  49. font-1 = unifont:size=6:heavy:fontformat=truetype;-2
  50. font-2 = siji:pixelsize=10;0
  51. font-3 = Bitocra:pixelsize=12;0
  52.  
  53. modules-left = i3 xwindow
  54. modules-center = cpu memory eth
  55. modules-right = date volume
  56.  
  57. tray-position = right
  58. tray-padding = 0
  59. ;tray-transparent = true
  60.  
  61. ;wm-restack = i3
  62.  
  63. scroll-up = i3wm-wsnext
  64. scroll-down = i3wm-wsprev
  65.  
  66. ;bottom = true
  67.  
  68. [module/xwindow]
  69. type = internal/xwindow
  70. label = %title:0:30:...%
  71.  
  72. [module/xtitle]
  73. type = custom/script
  74. exec = xwindowname tail
  75. tail = true
  76. format = %{T3} <output> %{T-}
  77.  
  78. [module/xkeyboard]
  79. type = internal/xkeyboard
  80. blacklist-0 = num lock
  81. label-layout = %{F#55}%{F-} %layout%
  82. label-layout-underline = ${colors.secondary}
  83. label-indicator-padding = 2
  84. label-indicator-margin = 1
  85. label-indicator-background = ${colors.secondary}
  86. label-indicator-underline = ${colors.secondary}
  87.  
  88. [module/filesystem]
  89. type = internal/fs
  90. interval = 0.5
  91. mount-0 = /
  92.  
  93. label-mounted =  %mountpoint%: %percentage_free%
  94. label-unmounted = %mountpoint%: not mounted
  95. label-unmounted-foreground = ${colors.foreground-alt}
  96.  
  97. [module/i3]
  98. type = internal/i3
  99. format = <label-state> <label-mode>
  100. index-sort = true
  101. wrapping-scroll = true
  102.  
  103. strip-wsnumbers = true
  104. pin-workspaces = true
  105.  
  106. label-mode-padding = 1
  107. label-mode-foreground = #0088CC
  108.  
  109. label-unfocused-foreground = #555555
  110. label-unfocused-padding = 1
  111.  
  112. label-visible-foregroud = #888888
  113. label-visible-padding = 1
  114.  
  115. label-focused-foreground = #0088CC
  116. label-focused-padding = 2
  117.  
  118. label-urgent-padding = 1
  119.  
  120. label-dimmed-underline = ${BAR.background}
  121. label-focused-underline = #0088CC
  122.  
  123. [module/cpu]
  124. type = internal/cpu
  125. interval = 0.5
  126.  
  127. format = <label> <ramp-coreload>
  128.  
  129. label = CPU:
  130. label-font = 3
  131. label-foreground = #99
  132.  
  133. ramp-coreload-0 = ▁
  134. ramp-coreload-0-font = 4
  135. ramp-coreload-0-foreground = #0088CC
  136. ramp-coreload-1 = ▂
  137. ramp-coreload-1-font = 4
  138. ramp-coreload-1-foreground = #0088CC
  139. ramp-coreload-2 = ▃
  140. ramp-coreload-2-font = 4
  141. ramp-coreload-2-foreground = #0088CC
  142. ramp-coreload-3 = ▄
  143. ramp-coreload-3-font = 4
  144. ramp-coreload-3-foreground = #0088CC
  145.  
  146. [module/memory]
  147. type = internal/memory
  148. format = <label> <bar-used>
  149. label = RAM: [%gb_used%]
  150.  
  151. bar-used-width = 10
  152. bar-used-gradient = true
  153. bar-used-foreground-0 = #449f3d
  154. bar-used-foreground-1 = #2f8419
  155. bar-used-foreground-2 = #f5a70a
  156. bar-used-foreground-3 = #ed5456
  157. bar-used-indicator = █
  158. bar-used-indicator-font = 3
  159. bar-used-indicator-foreground = #fff
  160. bar-used-fill = █
  161. bar-used-fill-font = 3
  162. bar-used-empty = █
  163. bar-used-empty-font = 3
  164. bar-used-empty-foreground = #44
  165.  
  166. [module/eth]
  167. type = internal/network
  168. interface = enp3s0
  169. interval = 0.5
  170.  
  171. ;format-connected-underline = #0088CC
  172. label-connected = NET [Up: %upspeed% | Down: %downspeed%]
  173.  
  174. ;format-disconnected-underline = ${self.format-connected-underline}
  175. ;label-disconnected = NET %ifname% disconnected
  176. ;label-disconnected-foreground = NET ${colors.foreground-alt}
  177.  
  178. ;Required if <bar-progress> is used
  179. bar-progress-width = 5
  180. bar-progress-format = %{+u}%{+o}%fill%%{-u}%{-o}%indicator%%{+u}%{+o}%empty%%{-u}%{-o}
  181. bar-progress-indicator = |
  182. bar-progress-indicator-foreground = ${BAR.foreground}
  183. bar-progress-indicator-font = 3
  184. bar-progress-fill = █
  185. bar-progress-fill-foreground = #5a5
  186. bar-progress-fill-font = 3
  187. bar-progress-empty = █
  188. bar-progress-empty-foreground = #555
  189. bar-progress-empty-font = 3
  190.  
  191. [module/date]
  192. type = internal/date
  193. interval = 0.5
  194.  
  195. date =
  196. date-alt = " %d/%m/%Y |"
  197.  
  198. time = %H:%M
  199. time-alt = %H:%M:%S
  200.  
  201. format-prefix = 
  202. format-prefix-foreground = ${colors.foreground-alt}
  203. format-underline = #0a6cf5
  204.  
  205. label = %date% %time%
  206.  
  207. [module/volume]
  208. type = internal/volume
  209.  
  210. format-volume = <label-volume> <bar-volume>
  211. label-volume = VOL
  212. label-volume-foreground = ${root.foreground}
  213.  
  214. format-muted-prefix = " "
  215. format-muted-foreground = ${colors.foreground-alt}
  216. label-muted = sound muted
  217.  
  218. bar-volume-width = 10
  219. bar-volume-foreground-0 = #55aa55
  220. bar-volume-foreground-1 = #55aa55
  221. bar-volume-foreground-2 = #55aa55
  222. bar-volume-foreground-3 = #55aa55
  223. bar-volume-foreground-4 = #55aa55
  224. bar-volume-foreground-5 = #f5a70a
  225. bar-volume-foreground-6 = #ff5555
  226. bar-volume-gradient = false
  227. bar-volume-indicator = │
  228. bar-volume-indicator-font = 2
  229. bar-volume-indicator-foreground = #ff
  230. bar-volume-fill = ─
  231. bar-volume-fill-font = 2
  232. bar-volume-empty = ─
  233. bar-volume-empty-font = 2
  234. bar-volume-empty-foreground = ${colors.foreground-alt}
  235.  
  236. [module/temperature]
  237. type = internal/temperature
  238. thermal-zone = 0
  239. warn-temperature = 60
  240.  
  241. format = <ramp> <label>
  242. format-underline = #0088CC
  243. format-warn = <ramp> <label-warn>
  244. format-warn-underline = ${self.format-underline}
  245.  
  246. label = TEMP: %temperature%
  247. label-warn = %temperature%
  248. label-warn-foreground = ${colors.secondary}
  249.  
  250. ramp-0 = 
  251. ramp-1 = 
  252. ramp-2 = 
  253. ramp-foreground = ${colors.foreground-alt}
  254.  
  255. [module/powermenu]
  256. type = custom/menu
  257.  
  258. format-spacing = 1
  259.  
  260. label-open =  power
  261. label-open-foreground = ${colors.secondary}
  262. label-close =  cancel
  263. label-close-foreground = ${colors.secondary}
  264. label-separator = |
  265. label-separator-foreground = ${colors.foreground-alt}
  266.  
  267. menu-0-0 = reboot
  268. menu-0-0-exec = menu-open-1
  269. menu-0-1 = power off
  270. menu-0-1-exec = menu-open-2
  271.  
  272. menu-1-0 = cancel
  273. menu-1-0-exec = menu-open-0
  274. menu-1-1 = reboot
  275. menu-1-1-exec = sudo reboot
  276.  
  277. menu-2-0 = power off
  278. menu-2-0-exec = sudo poweroff
  279. menu-2-1 = cancel
  280. menu-2-1-exec = menu-open-0
  281.  
  282. ; vim:ft=dosini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement