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