summaryrefslogtreecommitdiff
path: root/.config/polybar/config
blob: 22508b82ff061be41cb0c36d017f2c3b6ecd7887 (plain)
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
; Danny's polybar config

[colors]
peach = #FFCD98
lime = #CADC79
salmon = #d97464
darkgrey = #2e2e2e
lightgrey = #444444
alert = #bd2c40

xcolor0 = ${xrdb:color0}
xcolor1 = ${xrdb:color1}
xcolor2 = ${xrdb:color2}
xcolor3 = ${xrdb:color3}
xcolor4 = ${xrdb:color4}
xcolor5 = ${xrdb:color5}
xcolor6 = ${xrdb:color6}
xcolor7 = ${xrdb:color7}
xcolor8 = ${xrdb:color8}
xcolor9 = ${xrdb:color9}
xcolor10 = ${xrdb:color10}
xcolor11 = ${xrdb:color11}
xcolor12 = ${xrdb:color12}
xcolor13 = ${xrdb:color13}
xcolor14 = ${xrdb:color14}
xcolor15 = ${xrdb:color15}
background = ${xrdb:background}
foreground = ${xrdb:foreground}

; Global

[global/wm]
margin-top = 5
margin-bottom = 5

[bar/main0]
;monitor = ${env:MONITOR:HDMI-0}
monitor = ${env:MONITOR:eDP1}
width = 100%
height = 24
bottom = false
offset-x = 0%
offset-y = 0%
fixed-center = true
background = ${colors.xcolor0}
foreground = ${colors.xcolor1}

overline-size = 0
overline-color = ${colors.xcolor7}
underline-size = 2
underline-color = ${colors.xcolor7}

border-bottom-size = 0
border-bottom-color = ${colors.xcolor7}
border-top-size = 0
border-top-color = ${colors.xcolor7}
border-color-foreground = ${colors.peach}

spacing = 0
padding-left = 0
padding-right = 0
module-margin-left = 0
module-margin-right = 0

; Fonts
font-0 = PowerlineSymbols:size=15;3
font-1 = xos4 Terminus:size=12;1
font-2 = FontAwesome:size=10;2
font-3 = xos4 Terminus:size=18;0
font-4 = Monospace:size=28;3
font-5 = FontAwesome:size=26;7

; System tray
tray-position = left
tray-padding = 2
tray-transparent = false
tray-background = ${colors.xcolor1}

; Module layouts
modules-left = RightArrow3 i3 RightArrow2 xwindow RightArrow1 RightStripe RightArrow1
modules-center = RightStripe date LeftStripe
modules-right = arrow1 LeftStripe arrow1 filesystem arrow2 xbacklight arrow3 battery arrow2 volume arrow3 cpu arrow2 memory arrow3 updates


[bar/main1]
inherit = bar/main0
monitor = ${env:MONITOR:DVI-I-1}
tray-position = none
modules-left = i3 RightArrow1 RightStripe RightArrow1

[bar/main2]
inherit = bar/main0
monitor = ${env:MONITOR:HDMI-1-2}
tray-position = none
modules-left = i3 RightArrow1 RightStripe RightArrow1

; Modules

[module/filesystem]
type = internal/fs
interval = 5
fixed-values = true

mount-0 = /
mount-1 = /home
;mount-2 = /boot

format-mounted = <label-mounted>
format-mounted-foreground = ${colors.xcolor7}
format-mounted-background = ${colors.xcolor1}
format-unmounted = <label-unmounted>
format-unmounted-foreground = ${colors.xcolor7}
format-unmounted-background = ${colors.xcolor1}

label-mounted = "%mountpoint%: %percentage_used%%"
label-mounted-foreground = ${colors.xcolor7}
label-mounted-background = ${colors.xcolor1}
label-unmounted = "%mountpoint% not mounted"
label-unmounted-foreground = ${colors.xcolor7}
label-unmounted-background = ${colors.xcolor1}

[module/i3]
type = internal/i3
format = <label-state><label-mode>
index-sort = true
wrapping-scroll = false
pin-workspaces = true
enable-scroll = true

label-focused = %index%
label-focused-foreground = ${colors.xcolor1}
label-focused-background = ${colors.xcolor7}
label-focused-underline = ${colors.xcolor4}
label-focused-padding = 2
label-focused-font = 3
label-unfocused = %index%
label-unfocused-padding = 2
label-unfocused-foreground = ${colors.xcolor1}
label-unfocused-background = ${colors.xcolor7}
label-occupied = %index%
label-occupied-foreground = ${colors.xcolor1}
label-occupied-background = ${colors.xcolor7}
label-occupied-padding = 2
label-occupied-font = 3
label-urgent = %index%
label-urgent-foreground = ${colors.xcolor4}
label-urgent-background = ${colors.xcolor7}
label-urgent-padding = 2
label-urgent-font = 3
label-empty = %index%
label-empty-foreground = ${colors.xcolor0}
label-empty-background = ${colors.xcolor1}
label-empty-padding = 2
label-empty-font = 3
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
label-mode-foreground = ${self.label-focused-foreground}
label-mode-background = ${self.label-focused-background}

[module/xwindow]
type = internal/xwindow

format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor1}
format-padding = 2

label = %title%
label-maxlen = 25

[module/xbacklight]
type = internal/xbacklight

format = <label>
label = Backlight %percentage%%

format-foreground = ${colors.xcolor1}
format-background = ${colors.xcolor7}
format-padding = 1

[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight

[module/cpu]
type = internal/cpu
interval = 2
format-prefix =
format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor1}
label = CPU %percentage%%

[module/memory]
type = internal/memory
interval = 2
format-prefix =
format-foreground = ${colors.xcolor1}
format-background = ${colors.xcolor7}
format-margin-top = -5

label = MEM %percentage_used%%

[module/date]
type = internal/date
interval = 1

date = "%Y/%m/%d"
date-alt = "%Y-%m-%d"

time = %H:%M
time-alt = " %I:%M:%S %p"

format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor1}
format-padding = 2

label = %date% %time%

[module/volume]
type = internal/volume

master-soundcard = default
speaker-soundcard = default
headphone-soundcard = default
mapping = true

format-volume = <label-volume>

label-volume = VOL %percentage%%
label-volume-foreground = ${colors.xcolor1}
label-volume-background = ${colors.xcolor7}
label-muted = "Muted"
label-muted-foreground = ${colors.xcolor1}
label-muted-background = ${colors.xcolor7}

ramp-volume-0 = "  "
ramp-volume-0-foreground = ${colors.xcolor1}
ramp-volume-0-background = ${colors.xcolor7}
ramp-volume-1 = "  "
ramp-volume-1-foreground = ${colors.xcolor1}
ramp-volume-1-background = ${colors.xcolor7}
ramp-volume-2 = "  "
ramp-volume-2-foreground = ${colors.xcolor1}
ramp-volume-2-background = ${colors.xcolor7}
ramp-volume-3 = "  "
ramp-volume-3-foreground = ${colors.xcolor1}
ramp-volume-3-background = ${colors.xcolor7}

bar-volume-width = 10
bar-volume-background = #495858
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = true
bar-volume-indicator = "|"
bar-volume-fill = ─
bar-volume-empty = ─

[module/battery]
type = internal/battery
; To list battery & adapter: $ ls -1 /sys/class/power_supply/
battery = BAT0
adapter = AC

format-charging = <label-charging>
format-charging-foreground = ${colors.xcolor7}
format-charging-background = ${colors.xcolor1}
format-discharging = <label-discharging>
format-discharging-foreground = ${colors.xcolor7}
format-discharging-background = ${colors.xcolor1}
format-full = <label-full>
format-full-foreground = ${colors.xcolor7}
format-full-background = ${colors.xcolor1}

label-charging = "Charging %percentage%%"
label-discharging = "Battery %percentage%%"
label-discharging-foreground = ${colors.xcolor7}
label-discharging-background = ${colors.xcolor1}
label-full = "Battery Full"

; Powerline

[module/pipe]
type = custom/text
content = "|"
content-foreground = ${colors.darkgrey}
content-background = ${colors.xcolor0}
content-padding = 1

[module/LeftStripe]
type = custom/text
content = ""
content-foreground = ${colors.xcolor0}
content-background = ${colors.xcolor1}

[module/arrow1]
type = custom/text
content = ""
content-foreground = ${colors.xcolor1}
content-background = ${colors.xcolor0}

[module/arrow2]
type = custom/text
content = " "
content-foreground = ${colors.xcolor7}
content-background = ${colors.xcolor1}

[module/arrow3]
type = custom/text
content = " "
content-foreground = ${colors.xcolor1}
content-background = ${colors.xcolor7}

[module/RightStripe]
type = custom/text
content = ""
content-foreground = ${colors.xcolor0}
content-background = ${colors.xcolor1}

[module/RightArrow1]
type = custom/text
content = ""
content-foreground = ${colors.xcolor1}
content-background = ${colors.xcolor0}

[module/RightArrow2]
type = custom/text
content = ""
content-foreground = ${colors.xcolor7}
content-background = ${colors.xcolor1}

[module/RightArrow3]
type = custom/text
content = ""
content-foreground = ${colors.xcolor1}
content-background = ${colors.xcolor7}

[module/MiddleArrowLeft]
type = custom/text
content = "◥"
content-foreground = ${colors.xcolor1}
content-background = ${colors.xcolor0}
;◥ ◤◢ ◣
[module/MiddleArrowRight]
type = custom/text
content = "◢"
content-foreground = ${colors.xcolor0}
content-background = ${colors.xcolor1}

[module/updates]
type = custom/script
exec = pacman -Qu | wc -l
format = <label>
format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor1}
format-padding = 1
label = Upd: %output%
interval = 90

[settings]
screenchange-reload = true