Advertisement
Guest User

polybar config

a guest
Jun 29th, 2017
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 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 = #00ffffff
  12. background-alt = #444
  13. foreground = #c7a57c
  14. foreground-alt = #c7a57c
  15. primary = #c7a57c
  16. secondary = #131620
  17. underline = #131620
  18. alert = #c7a57c
  19.  
  20. [global/wm]
  21. margin-top = 5
  22. margin-bottom = 5
  23.  
  24. ;------------------------
  25. [bar/left]
  26. monitor = ${env:MONITOR:HDMI-1}
  27. width = 100%
  28. height = 23
  29. offset-x = 0
  30. offset-y = 0
  31.  
  32. background = ${colors.background}
  33. foreground = ${colors.foreground}
  34.  
  35. overline-size = 2
  36. overline-color = #f00
  37. underline-size = 2
  38. ;underline-color = ${colors.primary}
  39.  
  40. border-bottom = 3
  41. ;border-bottom-color = ${colors.primary}
  42.  
  43. spacing = 2
  44. padding-left = 2
  45. padding-right = 2
  46. module-margin-left = 2
  47. module-margin-right = 2
  48.  
  49. font-0 = fixed:pixelsize=8;0
  50. font-1 = unifont:size=6:heavy:fontformat=truetype;-2
  51. font-2 = siji:pixelsize=10;0
  52. font-3 = FontAwesome:pixelsize=10;0
  53.  
  54. modules-left = i3 xwindow
  55. modules-center = date
  56. modules-right = wlan cpu temperature battery volume
  57.  
  58. tray-position = right
  59. tray-padding = 2
  60. ;tray-transparent = true
  61. ;tray-background = #0063ff
  62.  
  63. wm-restack = i3
  64.  
  65. ;override-redirect = true
  66.  
  67.  
  68. scroll-up = i3wm-wsnext
  69. scroll-down = i3wm-wsprev
  70. pin-workspaces = true
  71. enable-click = false
  72. enable-scroll = false
  73.  
  74. ;------------------------------
  75. [bar/right]
  76. monitor = ${env:MONITOR:VGA1}
  77. width = 100%
  78. height = 23
  79. offset-x = 0
  80. offset-y = 0
  81.  
  82. ;background = ${xrdb:color9}
  83. background = ${colors.background}
  84. foreground = ${colors.foreground}
  85.  
  86. overline-size = 2
  87. overline-color = #f00
  88. underline-size = 2
  89. ;underline-color = ${colors.primary}
  90.  
  91. border-bottom = 3
  92. ;border-bottom-color = ${colors.primary}
  93.  
  94. spacing = 2
  95. padding-left = 2
  96. padding-right = 2
  97. module-margin-left = 2
  98. module-margin-right = 2
  99.  
  100. font-0 = fixed:pixelsize=8;0
  101. font-1 = unifont:size=6:heavy:fontformat=truetype;-2
  102. font-2 = siji:pixelsize=10;0
  103. font-3 = FontAwesome:pixelsize=10;0
  104.  
  105. modules-left = i3 xwindow
  106. modules-center = date
  107. modules-right = wlan temperature battery volume
  108.  
  109. ;tray-position = right
  110. ;tray-padding = 2
  111. ;tray-transparent = true
  112. ;tray-background = #0063ff
  113.  
  114. wm-restack = i3
  115.  
  116. scroll-up = i3wm-wsnext
  117. scroll-down = i3wm-wsprev
  118. pin-workspaces = true
  119. enable-click = false
  120. enable-scroll = false
  121.  
  122. [module/xwindow]
  123. type = internal/xwindow
  124. label = %title:0:30:...%
  125. format-underline = ${colors.underline}
  126.  
  127. [module/i3]
  128. type = internal/i3
  129. format = <label-state> <label-mode>
  130. index-sort = true
  131. wrapping-scroll = false
  132.  
  133. label-mode-padding = 2
  134. label-mode-foreground = #000
  135. label-mode-background = ${colors.primary}
  136.  
  137. label-focused = %index%
  138. label-focused-foreground = $(colors.underline)
  139. label-focused-background = ${colors.primary}
  140. ;label-focused-underline = ${colors.primary}
  141. label-focused-padding = 2
  142.  
  143. label-unfocused = %index%
  144. label-unfocused-padding = 2
  145.  
  146. label-urgent = %index%!
  147. label-urgent-background = ${colors.alert}
  148. label-urgent-padding = 2
  149.  
  150. label-visible = %index%
  151. label-visible-background = ${colors.background}
  152. ;label-visible-underline = #383a3b
  153. label-visible-padding = ${self.label-focused-padding}
  154.  
  155. [module/backlight]
  156. type = internal/xbacklight
  157.  
  158. format = <label> <bar>
  159. label = BL
  160.  
  161. bar-width = 10
  162. bar-indicator = │
  163. bar-indicator-foreground = #ff
  164. bar-indicator-font = 2
  165. bar-fill = ─
  166. bar-fill-font = 2
  167. bar-fill-foreground = #9f78e1
  168. bar-empty = ─
  169. bar-empty-font = 2
  170. bar-empty-foreground = ${colors.foreground-alt}
  171.  
  172.  
  173. [module/wlan]
  174. type = internal/network
  175. interface = wlp0s19f2u2
  176. interval = 1.0
  177. udspeed-minwidth = 3
  178.  
  179. format-connected = <ramp-signal> <label-connected>
  180. ;format-connected-underline = #ff5555
  181. ;format-disconnected-underline = ${self.format-connected-underline}
  182.  
  183. label-connected = %downspeed%  %upspeed% 
  184. label-disconnected = %ifname% disconnected
  185. label-disconnected-foreground = ${colors.foreground-alt}
  186.  
  187. ramp-signal-0 = 
  188. ramp-signal-1 = 
  189. ramp-signal-2 = 
  190. ramp-signal-3 = 
  191. ramp-signal-4 = 
  192. ramp-signal-foreground = ${colors.foreground-alt}
  193.  
  194. [module/date]
  195. type = internal/date
  196. interval = 1
  197.  
  198. date = " %a, %d %B "
  199. time = "%H:%M:%S "
  200.  
  201. format-prefix-foreground = ${colors.background}
  202. ;format-background = ${colors.primary}
  203. format-foreground = ${colors.foreground}
  204. format-underline = ${colors.underline}
  205. label = "%date% %time%"
  206.  
  207.  
  208. [module/volume]
  209. type = internal/volume
  210.  
  211. format-volume = <label-volume><bar-volume>
  212. label-volume = 
  213. label-volume-foreground = ${root.foreground}
  214.  
  215. format-muted-prefix = " "
  216. format-muted-foreground = ${colors.foreground-alt}
  217. label-muted = MUTED
  218.  
  219. bar-volume-width = 12
  220. bar-volume-foreground-0 = #55aa55
  221. bar-volume-foreground-1 = #55aa55
  222. bar-volume-foreground-2 = #55aa55
  223. bar-volume-foreground-3 = #55aa55
  224. bar-volume-foreground-4 = #55aa55
  225. bar-volume-foreground-5 = #f5a70a
  226. bar-volume-foreground-6 = #ff5555
  227. bar-volume-gradient = false
  228. bar-volume-indicator = │
  229. bar-volume-indicator-font = 2
  230. bar-volume-indicator-foreground = #ff
  231. bar-volume-fill = ─
  232. bar-volume-fill-font = 2
  233. bar-volume-empty = ─
  234. bar-volume-empty-font = 2
  235. bar-volume-empty-foreground = ${colors.foreground-alt}
  236.  
  237. [module/battery]
  238. type = internal/battery
  239. battery = BAT1
  240. adapter = ACAD
  241. full-at = 98
  242.  
  243. format-charging = <animation-charging><label-charging>
  244. ;format-charging-underline = #ff5555
  245.  
  246. format-discharging = <ramp-capacity><label-discharging>
  247. ;format-discharging-underline = ${self.format-charging-underline}
  248.  
  249. format-full-prefix = 
  250. format-full-prefix-foreground = ${colors.foreground}
  251. ;format-full-underline = ${self.format-charging-underline}
  252.  
  253. ramp-capacity-0 = 
  254. ramp-capacity-1 = 
  255. ramp-capacity-2 = 
  256.  
  257.  
  258. animation-charging-0 = 
  259. animation-charging-1 = 
  260. animation-charging-2 = 
  261. animation-charging-foreground = ${colors.foreground}
  262. animation-charging-framerate = 750
  263.  
  264. [module/temperature]
  265. type = internal/temperature
  266. thermal-zone = 0
  267. warn-temperature = 80
  268.  
  269. format = <ramp><label>
  270. ;format-underline = #ff5555
  271. format-warn = <ramp><label-warn>
  272. ;format-warn-underline = ${self.format-underline}
  273.  
  274. label = %temperature%
  275. label-warn = %temperature%
  276. label-warn-foreground = ${colors.secondary}
  277.  
  278. ramp-0 = 
  279. ramp-1 = 
  280. ramp-2 = 
  281.  
  282. [module/archupdates]
  283. type = custom/script
  284. interval = 1200
  285. format = <label>
  286. ;format-underline = #ff5555
  287. label = "%output:0:30%"
  288. exec = .config/polybar/pkg.sh
  289. exec-if = "ping -q -w 2 -c 1 176.34.135.167 > /dev/null"
  290.  
  291. [module/cpu]
  292. type = internal/cpu
  293. interval = 1
  294. label =  %percentage%%
  295. ;format-underline = #ff5555
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement