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 = 1
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
50 modules-center = xwindow
51 modules-right = volume filesystem xkeyboard memory cpu battery temperature date powermenu
55 ;tray-transparent = true
56 ;tray-background = #0063ff
61 ;override-redirect = true
63 scroll-up = bspwm-desknext
64 scroll-down = bspwm-deskprev
67 type = internal/xwindow
68 label = %title:0:50:...%
71 type = internal/xkeyboard
72 blacklist-0 = num lock
75 format-prefix-foreground = ${colors.foreground-alt}
76 format-prefix-underline = ${colors.secondary}
78 label-layout = %layout%
79 label-layout-underline = ${colors.secondary}
81 label-indicator-padding = 2
82 label-indicator-margin = 1
83 label-indicator-background = ${colors.secondary}
84 label-indicator-underline = ${colors.secondary}
92 label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
93 label-unmounted = %mountpoint% not mounted
94 label-unmounted-foreground = ${colors.foreground-alt}
99 label-focused = %index%
100 label-focused-background = ${colors.background-alt}
101 label-focused-underline= ${colors.primary}
102 label-focused-padding = 2
104 label-occupied = %index%
105 label-occupied-padding = 2
107 label-urgent = %index%!
108 label-urgent-background = ${colors.alert}
109 label-urgent-padding = 2
111 label-empty = %index%
112 label-empty-foreground = ${colors.foreground-alt}
113 label-empty-padding = 2
117 format = <label-state> <label-mode>
119 wrapping-scroll = false
121 ; Only show workspaces on the same output as the bar
122 ;pin-workspaces = true
124 label-mode-padding = 2
125 label-mode-foreground = #000
126 label-mode-background = ${colors.primary}
128 ; focused = Active workspace on focused monitor
129 label-focused = %index%
130 label-focused-background = ${module/bspwm.label-focused-background}
131 label-focused-underline = ${module/bspwm.label-focused-underline}
132 label-focused-padding = ${module/bspwm.label-focused-padding}
134 ; unfocused = Inactive workspace on any monitor
135 label-unfocused = %index%
136 label-unfocused-padding = ${module/bspwm.label-occupied-padding}
138 ; visible = Active workspace on unfocused monitor
139 label-visible = %index%
140 label-visible-background = ${self.label-focused-background}
141 label-visible-underline = ${self.label-focused-underline}
142 label-visible-padding = ${self.label-focused-padding}
144 ; urgent = Workspace with urgency hint set
145 label-urgent = %index%
146 label-urgent-background = ${module/bspwm.label-urgent-background}
147 label-urgent-padding = ${module/bspwm.label-urgent-padding}
151 format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
159 label-song-maxlen = 25
160 label-song-ellipsis = true
163 type = internal/xbacklight
165 format = <label> <bar>
170 bar-indicator-foreground = #ff
171 bar-indicator-font = 2
174 bar-fill-foreground = #9f78e1
177 bar-empty-foreground = ${colors.foreground-alt}
179 [module/backlight-acpi]
180 inherit = module/xbacklight
181 type = internal/backlight
182 ;card = intel_backlight
183 card = mba6x_backlight
189 format-prefix-foreground = ${colors.foreground-alt}
190 format-underline = #f90000
191 label = %percentage%%
194 type = internal/memory
197 format-prefix-foreground = ${colors.foreground-alt}
198 format-underline = #4bffdc
199 label = %percentage_used%%
202 type = internal/network
206 format-connected = <ramp-signal> <label-connected>
207 format-connected-underline = #9f78e1
208 label-connected = %essid%
210 format-disconnected =
211 ;format-disconnected = <label-disconnected>
212 ;format-disconnected-underline = ${self.format-connected-underline}
213 ;label-disconnected = %ifname% disconnected
214 ;label-disconnected-foreground = ${colors.foreground-alt}
221 ramp-signal-foreground = ${colors.foreground-alt}
224 type = internal/network
228 format-connected-underline = #55aa55
229 format-connected-prefix = " "
230 format-connected-prefix-foreground = ${colors.foreground-alt}
231 label-connected = %local_ip%
233 format-disconnected =
234 ;format-disconnected = <label-disconnected>
235 ;format-disconnected-underline = ${self.format-connected-underline}
236 ;label-disconnected = %ifname% disconnected
237 ;label-disconnected-foreground = ${colors.foreground-alt}
244 date-alt = " %Y-%m-%d"
250 format-prefix-foreground = ${colors.foreground-alt}
251 format-underline = #0a6cf5
253 label = %date% %time%
256 type = internal/volume
258 format-volume = <label-volume> <bar-volume>
260 label-volume-foreground = ${root.foreground}
262 format-muted-prefix = " "
263 format-muted-foreground = ${colors.foreground-alt}
266 bar-volume-width = 10
267 bar-volume-foreground-0 = #55aa55
268 bar-volume-foreground-1 = #55aa55
269 bar-volume-foreground-2 = #55aa55
270 bar-volume-foreground-3 = #55aa55
271 bar-volume-foreground-4 = #55aa55
272 bar-volume-foreground-5 = #f5a70a
273 bar-volume-foreground-6 = #ff5555
274 bar-volume-gradient = false
275 bar-volume-indicator = |
276 bar-volume-indicator-font = 2
278 bar-volume-fill-font = 2
280 bar-volume-empty-font = 2
281 bar-volume-empty-foreground = ${colors.foreground-alt}
284 type = internal/battery
289 format-charging = <animation-charging> <label-charging>
290 format-charging-underline = #ffb52a
292 format-discharging = <ramp-capacity> <label-discharging>
293 format-discharging-underline = ${self.format-charging-underline}
295 format-full-prefix = " "
296 format-full-prefix-foreground = ${colors.foreground-alt}
297 format-full-underline = ${self.format-charging-underline}
302 ramp-capacity-foreground = ${colors.foreground-alt}
304 animation-charging-0 =
305 animation-charging-1 =
306 animation-charging-2 =
307 animation-charging-foreground = ${colors.foreground-alt}
308 animation-charging-framerate = 750
311 type = internal/temperature
313 warn-temperature = 66
315 format = <ramp> <label>
316 format-underline = #f50a4d
317 format-warn = <ramp> <label-warn>
318 format-warn-underline = ${self.format-underline}
320 label = %temperature%
321 label-warn = %temperature%
322 label-warn-foreground = ${colors.secondary}
327 ramp-foreground = ${colors.foreground-alt}
335 label-open-foreground = ${colors.secondary}
336 label-close = cancel
337 label-close-foreground = ${colors.secondary}
339 label-separator-foreground = ${colors.foreground-alt}
342 menu-0-0-exec = menu-open-1
344 menu-0-1-exec = menu-open-2
347 menu-1-0-exec = menu-open-0
349 menu-1-1-exec = sudo reboot
352 menu-2-0-exec = sudo poweroff
354 menu-2-1-exec = menu-open-0
357 screenchange-reload = true
358 ;compositing-background = xor
359 ;compositing-background = screen
360 ;compositing-foreground = source
361 ;compositing-border = over