-
Notifications
You must be signed in to change notification settings - Fork 0
/
polybar
381 lines (307 loc) · 8.06 KB
/
polybar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
;=====================================================
;
; To learn more about how to configure Polybar
; go to https://github.com/jaagr/polybar
;
; The README contains alot of information
;
;=====================================================
;Various colour definitons taken from gruvbox
[colors]
;Dark blue
DKBL = #458588
;Dark red
DKRD = #cc241d
;Bright Red
BRRD = #fb4934
;Bright Yellow
BRYL = #fabd2f
;Dark Green
DKGR = #98971a
;Bright Green
BRGR = #b8bb26
;Bright Blue
BRBL = #83a598
;Background (Black-ish)
BKGD = #32302f
;Foreground (White-ish)
FRGD = #ebdbb2
;Bright Aqua
BRAQ = #8ec07c
;Dark Aqua
DKAQ = #689d6a
;Dark Orange
DKOR = #d65d0e
[bar/brightness]
;Change this to match monitor, find via xrandr -q
monitor = eDP1
;These will have to be adjusted to set position and size of brightness popup
width = 568
height = 45
offset-x = 3263
offset-y = 55
radius = 0
fixed-center = true
background = ${colors.BKGD}
foreground = ${colors.FRGD}
line-size = 3
line-color = #f00
border-size = 0
border-color = #FFFFFFFF
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0
;Make sure you have the fonts installed.
font-0 = xos4 Terminus:pixelsize=32;1
font-1 = FontAwesome:pixelsize=22;1
modules-left =
modules-center = xbacklight
modules-right =
tray-position =
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
;wm-restack = bspwm
;wm-restack = i3
override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
[bar/bar]
;Change this to match monitor, find via xrandr -q
monitor = eDP1
;These will have to be adjusted to set position and size of main bar
width = 3820
height = 45
offset-x = 10
offset-y = 10
radius = 6.0
fixed-center = true
background = ${colors.BKGD}
foreground = ${colors.FRGD}
line-size = 3
line-color = #f00
border-size = 0
border-color = #FFFFFFFF
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0
font-0 = xos4 Terminus:pixelsize=32;1
font-1 = FontAwesome:pixelsize=22;1
modules-left = bspwm
modules-center = xwindow
modules-right = date volume wlan battery
;tray-position = right
;tray-padding = 2
;tray-transparent = true
;tray-background = #0063ff
wm-restack = bspwm
;wm-restack = i3
override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
[module/xwindow]
type = internal/xwindow
label = %title:0:50:...%
label-foreground = ${colors.BRBL}
[module/bspwm]
type = internal/bspwm
format-prefix = " "
format-prefix-underline = ${colors.BRAQ}
format-suffix = " "
format-suffix-underline = ${colors.BRAQ}
format-underline = ${colors.BRAQ}
label-focused =
label-focused-foreground = ${colors.BRAQ}
label-focused-padding = 0
label-occupied =
label-occupied-foreground = ${colors.DKRD}
label-occupied-padding = 0
label-urgent =
label-urgent-foreground = ${colors.BRRD}
label-urgent-padding = 0
label-empty =
label-empty-foreground = ${colors.DKRD}
label-empty-padding = 0
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev =
icon-stop =
icon-play =
icon-pause =
icon-next =
label-song-maxlen = 25
label-song-ellipsis = true
[module/xbacklight]
type = internal/xbacklight
format-prefix = " "
format = <bar>
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #ff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.FRGD}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = ""
format-prefix-foreground = ${colors.FRGD}
format-underline = #f90000
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
;format-prefix =
;format-prefix-foreground = ${colors.FRGD}
format-underline = #4bffdc
label = %percentage_used%%
[module/wlan]
type = internal/network
;Change this to match your network device
interface = wlp2s0
interval = 3.0
format-connected-prefix = " "
format-connected-prefix-background = ${colors.DKOR}
format-connected-prefix-foreground = ${colors.BKGD}
format-connected = <label-connected>
format-connected-underline = ${colors.DKOR}
label-connected = " %signal% "
format-disconnected = " xx "
format-disconnected-prefix = " "
format-disconnected-underline = ${colors.DKRD}
format-disconnected-prefix-background = ${colors.DKRD}
format-disconnected-prefix-foreground = ${colors.BKGD}
[module/date]
type = internal/date
interval = 1
date =
date-alt = " %y-%m-%d"
time = %I:%M
time-alt = %I:%M:%S
format-prefix = " "
format-prefix-background = ${colors.DKAQ}
format-prefix-foreground = ${colors.BKGD}
format-underline = ${colors.DKAQ}
label = "%date% %time% "
[module/volume]
type = internal/volume
format-volume-underline = ${colors.BRGR}
format-volume = "<ramp-volume> <label-volume> "
label-volume = %percentage%
label-volume-foreground = ${colors.FRGD}
format-muted-prefix = " "
format-muted-prefix-background = ${colors.DKRD}
format-muted-prefix-foreground = ${colors.BKGD}
label-muted = " %percentage% "
format-muted-underline = ${colors.DKRD}
ramp-volume-0 = " "
ramp-volume-1 = " "
ramp-volume-background = ${colors.BRGR}
ramp-volume-foreground = ${colors.BKGD}
[module/battery]
type = internal/battery
;These should be the defaults, but may need to be changed
battery = BAT0
adapter = ADP1
full-at = 98
format-charging = "<animation-charging> <label-charging> "
format-charging-underline = ${colors.BRGR}
label-charging = %percentage%
format-discharging = "<ramp-capacity> <label-discharging> "
format-discharging-underline = ${colors.BRYL}
label-discharging = %percentage%
format-full-prefix = " "
format-full-prefix-background = ${colors.DKGR}
format-full-prefix-foreground = ${colors.BKGD}
format-full-underline = ${colors.DKGR}
format-full = "<label-full> "
label-full = " %percentage%"
ramp-capacity-0 = " "
ramp-capacity-1 = " "
ramp-capacity-2 = " "
ramp-capacity-3 = " "
ramp-capacity-4 = " "
ramp-capacity-0-background = ${colors.DKRD}
ramp-capacity-0-foreground = ${colors.BKGD}
ramp-capacity-1-background = ${colors.BRYL}
ramp-capacity-1-foreground = ${colors.BKGD}
ramp-capacity-2-background = ${colors.BRYL}
ramp-capacity-2-foreground = ${colors.BKGD}
ramp-capacity-3-background = ${colors.BRYL}
ramp-capacity-3-foreground = ${colors.BKGD}
ramp-capacity-4-background = ${colors.BRGR}
ramp-capacity-4-foreground = ${colors.BKGD}
animation-charging-0 = " "
animation-charging-1 = " "
animation-charging-2 = " "
animation-charging-3 = " "
animation-charging-4 = " "
animation-charging-background = ${colors.DKGR}
animation-charging-foreground = ${colors.BKGD}
animation-charging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature%
label-warn = %temperature%
label-warn-foreground = ${colors.secondary}
ramp-0 = ""
ramp-1 = ""
ramp-2 = ""
ramp-foreground = ${colors.FRGD}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = ""
label-open-foreground = ${colors.secondary}
label-close = ""
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.FRGD}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
[global/wm]
margin-top = 0
margin-bottom = 0
; vim:ft=dosini