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 = fixed:pixelsize=10;1
46 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
47 font-2 = siji:pixelsize=10;1
51 modules-right = filesystem xbacklight volume 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
66 ;scroll-up = i3wm-wsnext
67 ;scroll-down = i3wm-wsprev
70 type = internal/xwindow
71 label = %title:0:30:...%
74 type = internal/xkeyboard
75 blacklist-0 = num lock
78 format-prefix-foreground = ${colors.foreground-alt}
79 format-prefix-underline = ${colors.secondary}
81 label-layout = %layout%
82 label-layout-underline = ${colors.secondary}
84 label-indicator-padding = 2
85 label-indicator-margin = 1
86 label-indicator-background = ${colors.secondary}
87 label-indicator-underline = ${colors.secondary}
95 label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
96 label-unmounted = %mountpoint% not mounted
97 label-unmounted-foreground = ${colors.foreground-alt}
100 type = internal/bspwm
102 label-focused = %index%
103 label-focused-background = ${colors.background-alt}
104 label-focused-underline= ${colors.primary}
105 label-focused-padding = 2
107 label-occupied = %index%
108 label-occupied-padding = 2
110 label-urgent = %index%!
111 label-urgent-background = ${colors.alert}
112 label-urgent-padding = 2
114 label-empty = %index%
115 label-empty-foreground = ${colors.foreground-alt}
116 label-empty-padding = 2
120 format = <label-state> <label-mode>
122 wrapping-scroll = false
124 ; Only show workspaces on the same output as the bar
125 ;pin-workspaces = true
127 label-mode-padding = 2
128 label-mode-foreground = #000
129 label-mode-background = ${colors.primary}
131 ; focused = Active workspace on focused monitor
132 label-focused = %index%
133 label-focused-background = ${module/bspwm.label-focused-background}
134 label-focused-underline = ${module/bspwm.label-focused-underline}
135 label-focused-padding = ${module/bspwm.label-focused-padding}
137 ; unfocused = Inactive workspace on any monitor
138 label-unfocused = %index%
139 label-unfocused-padding = ${module/bspwm.label-occupied-padding}
141 ; visible = Active workspace on unfocused monitor
142 label-visible = %index%
143 label-visible-background = ${self.label-focused-background}
144 label-visible-underline = ${self.label-focused-underline}
145 label-visible-padding = ${self.label-focused-padding}
147 ; urgent = Workspace with urgency hint set
148 label-urgent = %index%
149 label-urgent-background = ${module/bspwm.label-urgent-background}
150 label-urgent-padding = ${module/bspwm.label-urgent-padding}
154 format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
162 label-song-maxlen = 25
163 label-song-ellipsis = true
166 type = internal/xbacklight
168 format = <label> <bar>
173 bar-indicator-foreground = #ff
174 bar-indicator-font = 2
177 bar-fill-foreground = #9f78e1
180 bar-empty-foreground = ${colors.foreground-alt}
182 [module/backlight-acpi]
183 inherit = module/xbacklight
184 type = internal/backlight
185 card = intel_backlight
191 format-prefix-foreground = ${colors.foreground-alt}
192 format-underline = #f90000
193 label = %percentage%%
196 type = internal/memory
199 format-prefix-foreground = ${colors.foreground-alt}
200 format-underline = #4bffdc
201 label = %percentage_used%%
204 type = internal/network
208 format-connected = <ramp-signal> <label-connected>
209 format-connected-underline = #9f78e1
210 label-connected = %essid%
212 format-disconnected =
213 ;format-disconnected = <label-disconnected>
214 ;format-disconnected-underline = ${self.format-connected-underline}
215 ;label-disconnected = %ifname% disconnected
216 ;label-disconnected-foreground = ${colors.foreground-alt}
223 ramp-signal-foreground = ${colors.foreground-alt}
226 type = internal/network
230 format-connected-underline = #55aa55
231 format-connected-prefix = " "
232 format-connected-prefix-foreground = ${colors.foreground-alt}
233 label-connected = %local_ip%
235 format-disconnected =
236 ;format-disconnected = <label-disconnected>
237 ;format-disconnected-underline = ${self.format-connected-underline}
238 ;label-disconnected = %ifname% disconnected
239 ;label-disconnected-foreground = ${colors.foreground-alt}
246 date-alt = " %Y-%m-%d"
252 format-prefix-foreground = ${colors.foreground-alt}
253 format-underline = #0a6cf5
255 label = %date% %time%
258 type = internal/volume
260 format-volume = <label-volume> <bar-volume>
262 label-volume-foreground = ${root.foreground}
264 format-muted-prefix = " "
265 format-muted-foreground = ${colors.foreground-alt}
266 label-muted = sound muted
268 bar-volume-width = 10
269 bar-volume-foreground-0 = #55aa55
270 bar-volume-foreground-1 = #55aa55
271 bar-volume-foreground-2 = #55aa55
272 bar-volume-foreground-3 = #55aa55
273 bar-volume-foreground-4 = #55aa55
274 bar-volume-foreground-5 = #f5a70a
275 bar-volume-foreground-6 = #ff5555
276 bar-volume-gradient = false
277 bar-volume-indicator = |
278 bar-volume-indicator-font = 2
280 bar-volume-fill-font = 2
282 bar-volume-empty-font = 2
283 bar-volume-empty-foreground = ${colors.foreground-alt}
286 type = internal/battery
291 format-charging = <animation-charging> <label-charging>
292 format-charging-underline = #ffb52a
294 format-discharging = <ramp-capacity> <label-discharging>
295 format-discharging-underline = ${self.format-charging-underline}
297 format-full-prefix = " "
298 format-full-prefix-foreground = ${colors.foreground-alt}
299 format-full-underline = ${self.format-charging-underline}
304 ramp-capacity-foreground = ${colors.foreground-alt}
306 animation-charging-0 =
307 animation-charging-1 =
308 animation-charging-2 =
309 animation-charging-foreground = ${colors.foreground-alt}
310 animation-charging-framerate = 750
313 type = internal/temperature
315 warn-temperature = 60
317 format = <ramp> <label>
318 format-underline = #f50a4d
319 format-warn = <ramp> <label-warn>
320 format-warn-underline = ${self.format-underline}
322 label = %temperature%
323 label-warn = %temperature%
324 label-warn-foreground = ${colors.secondary}
329 ramp-foreground = ${colors.foreground-alt}
337 label-open-foreground = ${colors.secondary}
338 label-close = cancel
339 label-close-foreground = ${colors.secondary}
341 label-separator-foreground = ${colors.foreground-alt}
344 menu-0-0-exec = menu-open-1
346 menu-0-1-exec = menu-open-2
349 menu-1-0-exec = menu-open-0
351 menu-1-1-exec = sudo reboot
354 menu-2-0-exec = sudo poweroff
356 menu-2-1-exec = menu-open-0
359 screenchange-reload = true
360 ;compositing-background = xor
361 ;compositing-background = screen
362 ;compositing-foreground = source
363 ;compositing-border = over