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