Guest User

Polybar

a guest
Feb 9th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.16 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.  
  20. [global/wm]
  21. margin-top = 5
  22. margin-bottom = 5
  23.  
  24.  
  25. [settings]
  26. screenchange-reload = true
  27.  
  28.  
  29. [bar/example]
  30. enable-ipc = true
  31. bottom = false
  32. monitor = VGA-0
  33. width = 100%
  34. height = 27
  35.  
  36. modules-left = i3 xwindow
  37. modules-center = music moc
  38. modules-right =
  39.  
  40. ;background transparent
  41. ;background = #00000000
  42. ;Flatabulous Theme
  43. background = #2D2D2D
  44. ;Arc Theme
  45. ;background = #2F343F
  46. foreground = ${colors.foreground}
  47.  
  48. overline-size = 0
  49. overline-color = #f00
  50. underline-size = 0
  51. underline-colori = #00f
  52.  
  53. ;border-bottom-size = 1
  54. ;border-bottom-color = #BBBBBB
  55.  
  56. padding-left = 0
  57. padding-right = 2
  58. module-margin-left = 1
  59. module-margin-right = 2
  60.  
  61.  
  62. font-0 = terminus:pixelsize=11;1
  63. font-1 = unifont:size=8:heavy:fontformat=truetype;-2
  64. ;font-2 = Wunconsiji:pixelsize=10;0
  65. font-2 = FontAwesome:size=11;0
  66.  
  67. tray-position = right
  68. tray-padding = 0
  69. ;tray-transparent = true
  70.  
  71. ;scroll-up = i3wm-wsnext
  72. ;scroll-down = i3wm-wsprev
  73. click-left = i3wm-wsnext
  74. click-right = i3wm-wsprev
  75.  
  76.  
  77. [bar/bottom]
  78. monitor = VGA-0
  79. bottom = true
  80. width = 100%
  81. height = 27
  82.  
  83. modules-left = power
  84. modules-center = cpu coretemps memory filesystem eth
  85. modules-right = keys date
  86.  
  87. ;background transparente
  88. ;background = #00000000
  89. ;Flatabulous Master
  90. background = #2D2D2D
  91. ;background = #2F343F
  92. ;background = #2D2D2D
  93. foreground = ${colors.foreground}
  94.  
  95. overline-size = 0
  96. overline-color = #f00
  97. underline-size = 0
  98. underline-colori = #00f
  99.  
  100. spacing = 3
  101. padding-left = 0
  102. padding-right = 2
  103. module-margin-left = 1
  104. module-margin-right = 2
  105.  
  106. font-0 = terminus:pixelsize=11;0
  107. font-1 = unifont:size=8:heavy:fontformat=truetype;-2
  108. font-2 = Wunconsiji:pixelsize=10;0
  109. font-3 = FontAwesome:size=11;0
  110.  
  111.  
  112. [module/i3]
  113. type = internal/i3
  114. format = <label-state> <label-mode>
  115. index-sort = true
  116.  
  117. enable-click = true
  118. ;scroll-up = i3wm-wsnext
  119. ;scroll-down = i3wm-wsprev
  120. click-left = i3wm-wsprev
  121. click-right = i3wm-wsnext
  122.  
  123. label-active-underline = #BBBBBB
  124.  
  125. label-mode-padding = 2
  126. label-mode-foreground = #BBBBBB
  127.  
  128. label-focused = 
  129. ;label-focused = 
  130. label-focused-foreground = #BBBBBB
  131. label-focused-padding = 3
  132.  
  133. label-unfocused = 
  134. label-unfocused-foreground = #747474
  135. label-unfocused-padding = 1
  136.  
  137. label-visible = 
  138. ;label-visible = %icon% %name%
  139. label-visible-foregroud = #888888
  140. label-visible-padding = 2
  141.  
  142. label-urgent = 
  143. ;label-urgent = 
  144. ;label-urgent = 
  145. label-urgent-padding = 4
  146. label-urgent-foreground = #FF0000
  147.  
  148. label-dimmed-underline = ${BAR.background}
  149. label-focused-underline = #BBBBBB
  150.  
  151.  
  152. [module/spotify]
  153. interval = 0.1
  154. type = custom/script
  155. exec = /home/zack/.i3/i3blocks/mediaplayer
  156. tail = true
  157. label = %output:0:100:...%
  158. format-prefix = " "
  159. label-foreground = #BBBBBB
  160. format-underline = #2D2D2D
  161. format-foreground = ${colors.foreground}
  162. format-background = #2D2D2D
  163.  
  164.  
  165. [module/moc]
  166. interval = 0.1
  167. type = custom/script
  168. exec = ~/.i3/i3blocks/moc_title
  169. label = %output:0:100:...%
  170. ;format-prefix = "MOC "
  171. ;background transparent
  172. format-background = #0000000
  173. ;format-background = #2D2D2D
  174.  
  175.  
  176. [module/music]
  177. type = custom/script
  178. interval = 0.1
  179. label = %output:0:100:...%
  180. exec = ~/.config/polybar/mpris.sh
  181. ;Reference: https://github.com/jaagr/polybar/wiki/User-contributed-modules
  182.  
  183.  
  184. [module/xwindow]
  185. type = internal/xwindow
  186. label = %title:0:100:...% %{B- -o -u}
  187. label-foreground = #BBBBBB
  188.  
  189.  
  190. [module/keys]
  191. type = custom/script
  192. interval = 0.05
  193. exec = ~/.config/polybar/keyindicator -cns -B 2D2D2D-2D2D2D -F 7A0909-747474
  194. ; script keyindicator: https://goo.gl/hwCPcj
  195.  
  196. [module/filesystem]
  197. type = internal/fs
  198. interval = 0.1
  199. mount-0 = /home
  200.  
  201. format = <label-mounted> <ramp>
  202. label-mounted = " %percentage_used%%"
  203.  
  204.  
  205. [module/cpu]
  206. type = internal/cpu
  207. interval = 0.3
  208. format =  <bar-load>
  209. font-1 = Unifont:size=8;-3
  210.  
  211. bar-load-gradient = true
  212. bar-load-width = 10
  213. bar-load-foreground-0 = #BBBBBB
  214. bar-load-foreground-1 = #BBBBBB
  215. bar-load-foreground-2 = #FFFF00
  216. bar-load-foreground-3 = #FF0000
  217. bar-load-indicator = ■
  218. bar-load-indicator-font = 2
  219. bar-load-indicator-foreground = #55fdf6e3
  220. bar-load-fill = ■
  221. bar-load-fill-font = 0
  222. bar-load-empty = □
  223. bar-load-empty-font = 0
  224. ;bar-load-empty-foreground = #99586e75
  225. bar-load-empty-foreground = #747474
  226.  
  227.  
  228. [module/memory]
  229. type = internal/memory
  230. interval = 0.1
  231. format =  <bar-used>
  232.  
  233. bar-used-width = 20
  234. bar-used-foreground-0 = #BBBBBB
  235. bar-used-foreground-1 = #BBBBBB
  236. bar-used-foreground-2 = #FFFF00
  237. bar-used-foreground-3 = #FF0000
  238. bar-used-fill = |
  239. bar-used-fill-font = 3
  240. bar-used-empty = |
  241. bar-used-empty-font = 3
  242. bar-used-empty-foreground = #747474
  243. bar-used-indicator = |
  244.  
  245.  
  246. [module/eth]
  247. type = internal/network
  248. interval = 0.1
  249. interface = enp3s0
  250. format = <label>
  251.  
  252. udspeed-maxxwidth = 3
  253. downspeed-maxxwidth = 3
  254. label-connected =  %upspeed%  %downspeed%
  255.  
  256.  
  257. [module/date]
  258. type = internal/date
  259.  
  260. date =
  261. date-alt = " %d/%m/%Y |"
  262. time =  %d/%m/%Y  %H:%M:%S
  263. time-alt = %H:%M:%S
  264.  
  265. format-prefix = 
  266. format-prefix-foreground = ${colors.foreground-alt}
  267. format-underline = #0a6cf5
  268. label = %date% %time%
  269.  
  270.  
  271. [module/volume]
  272. type = internal/volume
  273.  
  274. ;format-volume =  <bar-volume>
  275. format-volume = <ramp-volume> <bar-volume>
  276. ;label-volume = 
  277. label-volume-foreground = ${root.foreground}
  278.  
  279. ;Control scroll mouse
  280. scroll-up = amixer set Master 2%+
  281. scroll-down = amixer set Master 2%-
  282.  
  283. label-muted =  
  284. label-muted-foreground = #FF0000
  285.  
  286. bar-volume-width = 8
  287. bar-volume-foreground-0 = #BBBBBB
  288. bar-volume-foreground-1 = #BBBBBB
  289. bar-volume-foreground-2 = #BBBBBB
  290. bar-volume-foreground-3 = #BBBBBB
  291. bar-volume-foreground-4 = #BBBBBB
  292. bar-volume-foreground-5 = #BBBBBB
  293. bar-volume-foreground-6 = #ff5555
  294. bar-volume-gradient = true
  295. bar-volume-indicator = 
  296. bar-volume-indicator-font = 3
  297. bar-volume-indicator-foreground = #44
  298. bar-volume-fill = 
  299. bar-volume-fill-font = 3
  300. bar-volume-empty = 
  301. bar-volume-empty-font = 3
  302. bar-volume-empty-foreground = ${colors.foreground-alt}
  303.  
  304. ramp-volume-0 = 
  305. ramp-volume-1 = 
  306. ramp-volume-2 = 
  307.  
  308.  
  309. [module/temperature]
  310. type = internal/temperature
  311. thermal-zone = 0
  312. warn-temperature = 60
  313.  
  314. format = <ramp> <label>
  315. format-underline = #BBBBBB
  316. format-warn = <ramp> <label-warn>
  317. format-warn-underline = ${self.format-underline}
  318.  
  319. label =  %temperature%
  320. label-warn =  %temperature%
  321. label-foreground = #FF0000
  322.  
  323. ramp-0 = 
  324. ramp-1 = 
  325. ramp-2 = 
  326. ramp-foreground = ${colors.foreground-alt}
  327.  
  328.  
  329. [module/coretemps]
  330. type = custom/script
  331. exec-if = sensors
  332. exec = sensors | grep Core | awk '{print substr($3, 2, 2)}' | tr '\n' ' ' | sed 's/ /°C /g' | sed 's/ $//'
  333. format-prefix = " "
  334. format-prefix-foreground = #BBBBBB
  335. ;Reference: https://github.com/jaagr/polybar/wiki/User-contributed-modules
  336.  
  337.  
  338. [module/power]
  339. type = custom/menu
  340.  
  341. format = <label-toggle> <menu>
  342. format-underline = ${colors.primary}
  343. format-padding = 2
  344.  
  345. menu-0-0 = Rofi
  346. menu-0-0-foreground = #BBBBBB
  347. menu-0-0-exec = exec rofi -sidebar-mode -show run -line 3 -eh 2 -width 70 -padding 100 -opacity "70" -bw 0 -bc -font "FontAwesome 11" -rnow -no-disable-history -no-levenshtein-sort -only-match -kb-mode-next Alt+Left
  348.  
  349. menu-0-1 = Menu
  350. menu-0-1-foreground = #BBBBBB
  351. menu-0-1-exec = exec ~/.i3/scripts/menu.sh
  352.  
  353. label-open = 
  354. label-close = 
  355. label-close-foreground = #FF0000
  356. label-separator = |
  357.  
  358.  
  359. [module/mail]
  360. type = custom/script
  361. interval = 0.1
  362. format = <label>
  363. format-prefix = " "
  364. format-prefix-foreground = #BBBBBB
  365. exec = ~/.config/polybar/mail
  366. ;Reference: https://github.com/jaagr/polybar/wiki/User-contributed-modules
  367.  
  368.  
  369. [module/weather]
  370. type = custom/script
  371. interval = 0.1
  372. format = <label>
  373. format-prefix = " "
  374. format-prefix-foreground = #BBBBBB
  375. exec = ~/.config/polybar/weather
  376. ;Reference: https://github.com/jaagr/polybar/wiki/User-contributed-modules
  377.  
  378. ; vim:ft=dosini
Add Comment
Please, Sign In to add comment