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