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