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