1 ;=====================================================
3 ; To learn more about how to configure Polybar
4 ; go to https://github.com/jaagr/polybar
6 ; The README contains alot of information
8 ;=====================================================
11 ;background = ${xrdb:color0:#222}
14 ;foreground = ${xrdb:color7:#222}
22 ;monitor = ${env:MONITOR:HDMI-1}
30 background = ${colors.background}
31 foreground = ${colors.foreground}
37 border-color = #00000000
42 module-margin-left = 2
43 module-margin-right = 2
45 font-0 = Ubuntu:fontformat=truetype:antialias=true:pixelsize=9;1
46 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
47 font-2 = Wuncon Siji:pixelsize=10;1
48 font-3 = FontAwesome:pixelsize=10;1
50 modules-left = bspwm xwindow
52 modules-right = volume filesystem mail xkeyboard memory cpu temperature date powermenu
56 ;tray-transparent = true
57 ;tray-background = #0063ff
62 ;override-redirect = true
64 scroll-up = bspwm-desknext
65 scroll-down = bspwm-deskprev
68 type = internal/xwindow
69 label = %title:0:50:...%
72 type = internal/xkeyboard
73 blacklist-0 = num lock
76 format-prefix-foreground = ${colors.foreground-alt}
77 format-prefix-underline = ${colors.secondary}
79 label-layout = %layout%
80 label-layout-underline = ${colors.secondary}
82 label-indicator-padding = 2
83 label-indicator-margin = 1
84 label-indicator-background = ${colors.secondary}
85 label-indicator-underline = ${colors.secondary}
93 label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
94 label-unmounted = %mountpoint% not mounted
95 label-unmounted-foreground = ${colors.foreground-alt}
100 label-focused = %index%
101 label-focused-background = ${colors.background-alt}
102 label-focused-underline= ${colors.primary}
103 label-focused-padding = 2
105 label-occupied = %index%
106 label-occupied-padding = 2
108 label-urgent = %index%!
109 label-urgent-background = ${colors.alert}
110 label-urgent-padding = 2
112 label-empty = %index%
113 label-empty-foreground = ${colors.foreground-alt}
114 label-empty-padding = 2
118 format = <label-state> <label-mode>
120 wrapping-scroll = false
122 ; Only show workspaces on the same output as the bar
123 ;pin-workspaces = true
125 label-mode-padding = 2
126 label-mode-foreground = #000
127 label-mode-background = ${colors.primary}
129 ; focused = Active workspace on focused monitor
130 label-focused = %index%
131 label-focused-background = ${module/bspwm.label-focused-background}
132 label-focused-underline = ${module/bspwm.label-focused-underline}
133 label-focused-padding = ${module/bspwm.label-focused-padding}
135 ; unfocused = Inactive workspace on any monitor
136 label-unfocused = %index%
137 label-unfocused-padding = ${module/bspwm.label-occupied-padding}
139 ; visible = Active workspace on unfocused monitor
140 label-visible = %index%
141 label-visible-background = ${self.label-focused-background}
142 label-visible-underline = ${self.label-focused-underline}
143 label-visible-padding = ${self.label-focused-padding}
145 ; urgent = Workspace with urgency hint set
146 label-urgent = %index%
147 label-urgent-background = ${module/bspwm.label-urgent-background}
148 label-urgent-padding = ${module/bspwm.label-urgent-padding}
152 format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
160 label-song-maxlen = 25
161 label-song-ellipsis = true
164 type = internal/xbacklight
166 format = <label> <bar>
171 bar-indicator-foreground = #ff
172 bar-indicator-font = 2
175 bar-fill-foreground = #9f78e1
178 bar-empty-foreground = ${colors.foreground-alt}
180 [module/backlight-acpi]
181 inherit = module/xbacklight
182 type = internal/backlight
183 ;card = intel_backlight
184 card = mba6x_backlight
190 format-prefix-foreground = ${colors.foreground-alt}
191 format-underline = #f90000
192 label = %percentage%%
195 type = internal/memory
198 format-prefix-foreground = ${colors.foreground-alt}
199 format-underline = #4bffdc
200 label = %percentage_used%%
203 type = internal/network
207 format-connected = <ramp-signal> <label-connected>
208 format-connected-underline = #9f78e1
209 label-connected = %essid%
211 format-disconnected =
212 ;format-disconnected = <label-disconnected>
213 ;format-disconnected-underline = ${self.format-connected-underline}
214 ;label-disconnected = %ifname% disconnected
215 ;label-disconnected-foreground = ${colors.foreground-alt}
222 ramp-signal-foreground = ${colors.foreground-alt}
225 type = internal/network
229 format-connected-underline = #55aa55
230 format-connected-prefix = " "
231 format-connected-prefix-foreground = ${colors.foreground-alt}
232 label-connected = %local_ip%
234 format-disconnected =
235 ;format-disconnected = <label-disconnected>
236 ;format-disconnected-underline = ${self.format-connected-underline}
237 ;label-disconnected = %ifname% disconnected
238 ;label-disconnected-foreground = ${colors.foreground-alt}
245 date-alt = " %Y-%m-%d"
251 format-prefix-foreground = ${colors.foreground-alt}
252 format-underline = #0a6cf5
254 label = %date% %time%
257 type = internal/volume
259 format-volume = <label-volume> <bar-volume>
261 label-volume-foreground = ${root.foreground}
263 format-muted-prefix = " "
264 format-muted-foreground = ${colors.foreground-alt}
267 bar-volume-width = 10
268 bar-volume-foreground-0 = #55aa55
269 bar-volume-foreground-1 = #55aa55
270 bar-volume-foreground-2 = #55aa55
271 bar-volume-foreground-3 = #55aa55
272 bar-volume-foreground-4 = #55aa55
273 bar-volume-foreground-5 = #f5a70a
274 bar-volume-foreground-6 = #ff5555
275 bar-volume-gradient = false
276 bar-volume-indicator = |
277 bar-volume-indicator-font = 2
279 bar-volume-fill-font = 2
281 bar-volume-empty-font = 2
282 bar-volume-empty-foreground = ${colors.foreground-alt}
285 type = internal/battery
290 format-charging = <animation-charging> <label-charging>
291 format-charging-underline = #ffb52a
293 format-discharging = <ramp-capacity> <label-discharging>
294 format-discharging-underline = ${self.format-charging-underline}
296 format-full-prefix = " "
297 format-full-prefix-foreground = ${colors.foreground-alt}
298 format-full-underline = ${self.format-charging-underline}
303 ramp-capacity-foreground = ${colors.foreground-alt}
305 animation-charging-0 =
306 animation-charging-1 =
307 animation-charging-2 =
308 animation-charging-foreground = ${colors.foreground-alt}
309 animation-charging-framerate = 750
312 type = internal/temperature
314 warn-temperature = 66
316 format = <ramp> <label>
317 format-underline = #f50a4d
318 format-warn = <ramp> <label-warn>
319 format-warn-underline = ${self.format-underline}
321 label = %temperature%
322 label-warn = %temperature%
323 label-warn-foreground = ${colors.secondary}
328 ramp-foreground = ${colors.foreground-alt}
336 label-open-foreground = ${colors.secondary}
337 label-close = cancel
338 label-close-foreground = ${colors.secondary}
340 label-separator-foreground = ${colors.foreground-alt}
343 menu-0-0-exec = menu-open-1
345 menu-0-1-exec = menu-open-2
348 menu-1-0-exec = menu-open-0
350 menu-1-1-exec = sudo reboot
353 menu-2-0-exec = sudo poweroff
355 menu-2-1-exec = menu-open-0
362 format-prefix-foreground = ${colors.foreground-alt}
363 format-underline = #0a6cf5
364 exec = notmuch count tag:unread
367 screenchange-reload = true
368 ;compositing-background = xor
369 ;compositing-background = screen
370 ;compositing-foreground = source
371 ;compositing-border = over