Refresh polybar's mail counter every minute
[~bandali/configs] / polybar / .config / polybar / config
CommitLineData
e6566456
AB
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 = ${xrdb:color0:#222}
12background = #222
13background-alt = #444
14;foreground = ${xrdb:color7:#222}
f0b88b19
AB
15foreground = #eee
16foreground-alt = #888
e6566456
AB
17primary = #ffb52a
18secondary = #e60053
19alert = #bd2c40
20
3e303e20 21[bar/main]
e6566456
AB
22;monitor = ${env:MONITOR:HDMI-1}
23width = 100%
24height = 27
25;offset-x = 1%
26;offset-y = 1%
3e303e20 27radius = 3.0
de4bd775 28fixed-center = true
e6566456
AB
29
30background = ${colors.background}
31foreground = ${colors.foreground}
32
33line-size = 3
34line-color = #f00
35
36border-size = 4
37border-color = #00000000
38
39padding-left = 0
40padding-right = 2
41
de4bd775 42module-margin-left = 2
e6566456
AB
43module-margin-right = 2
44
3e303e20 45font-0 = Ubuntu:fontformat=truetype:antialias=true:pixelsize=9;1
e6566456 46font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
3e303e20 47font-2 = Wuncon Siji:pixelsize=10;1
e0dcd28c 48font-3 = FontAwesome:pixelsize=10;1
e6566456 49
de4bd775
AB
50modules-left = bspwm xwindow
51modules-center =
30e96536 52modules-right = volume filesystem mail xkeyboard memory cpu temperature date powermenu
e6566456
AB
53
54tray-position = right
30e96536 55tray-padding = 1
e6566456
AB
56;tray-transparent = true
57;tray-background = #0063ff
3e303e20 58tray-maxsize = 18
e6566456 59
3e303e20 60wm-restack = bspwm
e6566456
AB
61
62;override-redirect = true
63
3e303e20
AB
64scroll-up = bspwm-desknext
65scroll-down = bspwm-deskprev
e6566456
AB
66
67[module/xwindow]
68type = internal/xwindow
3e303e20 69label = %title:0:50:...%
e6566456
AB
70
71[module/xkeyboard]
72type = internal/xkeyboard
73blacklist-0 = num lock
74
75format-prefix = " "
76format-prefix-foreground = ${colors.foreground-alt}
77format-prefix-underline = ${colors.secondary}
78
79label-layout = %layout%
80label-layout-underline = ${colors.secondary}
81
82label-indicator-padding = 2
83label-indicator-margin = 1
84label-indicator-background = ${colors.secondary}
85label-indicator-underline = ${colors.secondary}
86
87[module/filesystem]
88type = internal/fs
89interval = 25
90
91mount-0 = /
92
93label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
94label-unmounted = %mountpoint% not mounted
95label-unmounted-foreground = ${colors.foreground-alt}
96
97[module/bspwm]
98type = internal/bspwm
99
100label-focused = %index%
101label-focused-background = ${colors.background-alt}
102label-focused-underline= ${colors.primary}
103label-focused-padding = 2
104
105label-occupied = %index%
106label-occupied-padding = 2
107
108label-urgent = %index%!
109label-urgent-background = ${colors.alert}
110label-urgent-padding = 2
111
112label-empty = %index%
113label-empty-foreground = ${colors.foreground-alt}
114label-empty-padding = 2
115
116[module/i3]
117type = internal/i3
118format = <label-state> <label-mode>
119index-sort = true
120wrapping-scroll = false
121
122; Only show workspaces on the same output as the bar
123;pin-workspaces = true
124
125label-mode-padding = 2
126label-mode-foreground = #000
127label-mode-background = ${colors.primary}
128
129; focused = Active workspace on focused monitor
130label-focused = %index%
131label-focused-background = ${module/bspwm.label-focused-background}
132label-focused-underline = ${module/bspwm.label-focused-underline}
133label-focused-padding = ${module/bspwm.label-focused-padding}
134
135; unfocused = Inactive workspace on any monitor
136label-unfocused = %index%
137label-unfocused-padding = ${module/bspwm.label-occupied-padding}
138
139; visible = Active workspace on unfocused monitor
140label-visible = %index%
141label-visible-background = ${self.label-focused-background}
142label-visible-underline = ${self.label-focused-underline}
143label-visible-padding = ${self.label-focused-padding}
144
145; urgent = Workspace with urgency hint set
146label-urgent = %index%
147label-urgent-background = ${module/bspwm.label-urgent-background}
148label-urgent-padding = ${module/bspwm.label-urgent-padding}
149
150[module/mpd]
151type = internal/mpd
152format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
153
154icon-prev = 
155icon-stop = 
156icon-play = 
157icon-pause = 
158icon-next = 
159
160label-song-maxlen = 25
161label-song-ellipsis = true
162
163[module/xbacklight]
164type = internal/xbacklight
165
166format = <label> <bar>
167label = BL
168
169bar-width = 10
170bar-indicator = |
171bar-indicator-foreground = #ff
172bar-indicator-font = 2
173bar-fill = ─
174bar-fill-font = 2
175bar-fill-foreground = #9f78e1
176bar-empty = ─
177bar-empty-font = 2
178bar-empty-foreground = ${colors.foreground-alt}
179
180[module/backlight-acpi]
181inherit = module/xbacklight
182type = internal/backlight
3e303e20
AB
183;card = intel_backlight
184card = mba6x_backlight
e6566456
AB
185
186[module/cpu]
187type = internal/cpu
188interval = 2
189format-prefix = " "
190format-prefix-foreground = ${colors.foreground-alt}
191format-underline = #f90000
192label = %percentage%%
193
194[module/memory]
195type = internal/memory
196interval = 2
197format-prefix = " "
198format-prefix-foreground = ${colors.foreground-alt}
199format-underline = #4bffdc
200label = %percentage_used%%
201
202[module/wlan]
203type = internal/network
204interface =
205interval = 3.0
206
207format-connected = <ramp-signal> <label-connected>
208format-connected-underline = #9f78e1
209label-connected = %essid%
210
211format-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}
216
217ramp-signal-0 = 
218ramp-signal-1 = 
219ramp-signal-2 = 
220ramp-signal-3 = 
221ramp-signal-4 = 
222ramp-signal-foreground = ${colors.foreground-alt}
223
224[module/eth]
225type = internal/network
226interface =
227interval = 3.0
228
229format-connected-underline = #55aa55
230format-connected-prefix = " "
231format-connected-prefix-foreground = ${colors.foreground-alt}
232label-connected = %local_ip%
233
234format-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}
239
240[module/date]
241type = internal/date
242interval = 5
243
244date =
245date-alt = " %Y-%m-%d"
246
247time = %H:%M
248time-alt = %H:%M:%S
249
250format-prefix = 
251format-prefix-foreground = ${colors.foreground-alt}
252format-underline = #0a6cf5
253
254label = %date% %time%
255
256[module/volume]
257type = internal/volume
258
259format-volume = <label-volume> <bar-volume>
3e303e20 260label-volume = vol
e6566456
AB
261label-volume-foreground = ${root.foreground}
262
263format-muted-prefix = " "
264format-muted-foreground = ${colors.foreground-alt}
3e303e20 265label-muted = mute
e6566456
AB
266
267bar-volume-width = 10
268bar-volume-foreground-0 = #55aa55
269bar-volume-foreground-1 = #55aa55
270bar-volume-foreground-2 = #55aa55
271bar-volume-foreground-3 = #55aa55
272bar-volume-foreground-4 = #55aa55
273bar-volume-foreground-5 = #f5a70a
274bar-volume-foreground-6 = #ff5555
275bar-volume-gradient = false
276bar-volume-indicator = |
277bar-volume-indicator-font = 2
278bar-volume-fill = ─
279bar-volume-fill-font = 2
280bar-volume-empty = ─
281bar-volume-empty-font = 2
282bar-volume-empty-foreground = ${colors.foreground-alt}
283
284[module/battery]
285type = internal/battery
286battery = BAT0
287adapter = ADP1
3e303e20 288full-at = 64
e6566456
AB
289
290format-charging = <animation-charging> <label-charging>
291format-charging-underline = #ffb52a
292
293format-discharging = <ramp-capacity> <label-discharging>
294format-discharging-underline = ${self.format-charging-underline}
295
296format-full-prefix = " "
297format-full-prefix-foreground = ${colors.foreground-alt}
298format-full-underline = ${self.format-charging-underline}
299
300ramp-capacity-0 = 
301ramp-capacity-1 = 
302ramp-capacity-2 = 
303ramp-capacity-foreground = ${colors.foreground-alt}
304
305animation-charging-0 = 
306animation-charging-1 = 
307animation-charging-2 = 
308animation-charging-foreground = ${colors.foreground-alt}
309animation-charging-framerate = 750
310
311[module/temperature]
312type = internal/temperature
3e303e20
AB
313thermal-zone = 1
314warn-temperature = 66
e6566456
AB
315
316format = <ramp> <label>
317format-underline = #f50a4d
318format-warn = <ramp> <label-warn>
319format-warn-underline = ${self.format-underline}
320
321label = %temperature%
322label-warn = %temperature%
323label-warn-foreground = ${colors.secondary}
324
325ramp-0 = 
326ramp-1 = 
327ramp-2 = 
328ramp-foreground = ${colors.foreground-alt}
329
330[module/powermenu]
331type = custom/menu
332
333format-spacing = 1
334
335label-open = 
336label-open-foreground = ${colors.secondary}
337label-close =  cancel
338label-close-foreground = ${colors.secondary}
339label-separator = |
340label-separator-foreground = ${colors.foreground-alt}
341
342menu-0-0 = reboot
343menu-0-0-exec = menu-open-1
344menu-0-1 = power off
345menu-0-1-exec = menu-open-2
346
347menu-1-0 = cancel
348menu-1-0-exec = menu-open-0
349menu-1-1 = reboot
350menu-1-1-exec = sudo reboot
351
352menu-2-0 = power off
353menu-2-0-exec = sudo poweroff
354menu-2-1 = cancel
355menu-2-1-exec = menu-open-0
356
e0dcd28c
AB
357[module/mail]
358type = custom/script
07deb6a0 359interval = 60
e0dcd28c
AB
360format = <label>
361format-prefix = " "
362format-prefix-foreground = ${colors.foreground-alt}
363format-underline = #0a6cf5
364exec = notmuch count tag:unread
365
e6566456
AB
366[settings]
367screenchange-reload = true
368;compositing-background = xor
369;compositing-background = screen
370;compositing-foreground = source
371;compositing-border = over
372
373[global/wm]
de4bd775 374margin-top = 0
3e303e20 375margin-bottom = 0
e6566456
AB
376
377; vim:ft=dosini