summaryrefslogtreecommitdiff
path: root/.config/polybar/config-reddit
blob: ab2d980e6ad65bc40ba71a478e237732fb8391e1 (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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
;  ______         __         __               
; |   __ \.-----.|  |.--.--.|  |--.---.-.----.
; |    __/|  _  ||  ||  |  ||  _  |  _  |   _|
; |___|   |_____||__||___  ||_____|___._|__|  
;                    |_____|              

; COLORS {{{
[colors]
background = ${xrdb:background}
foreground = ${xrdb:background}
foreground-alt = #A5ABB6
background-alt = ${xrdb:cursorColor} 
alert = ${xrdb:color1}
red = ${xrdb:color1}
green = ${xrdb:color2}
yellow = ${xrdb:color3}
blue = ${xrdb:color4}
magenta = ${xrdb:color5}
cyan = ${xrdb:color6}

; }}}

; BASE BAR {{{

[bar/base]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 22
offset-x = 0
offset-y = 0
radius = 0
fixed-center = true
enable-ipc = true

line-size = 2
line-color = #fff

background = ${colors.background}
foreground = ${colors.foreground}

border-size = 0
border-color = ${colors.background}

padding-left = 0
padding-right = 0

module-margin-left = 0
module-margin-right = 0

font-0 = Open Sans Condensed:style=Bold:size=10
font-1 = Font Awesome 5 Free Regular:style=Regular:size=9;1
font-2 = Font Awesome 5 Free Solid:style=Solid:size=9;1
font-3 = Font Awesome 5 Free Brand:style=Regular:size=9;1
font-4 = JetBrainsMono Nerd Font:size=13;3

modules-right = slash2 picom-toggle uptime pulseaudio cpu memory date 

tray-position = right
tray-padding = 4
tray-background = ${colors.background-alt}
tray-maxsize = 16

cursor-click = pointer
;cursor-scroll = ns-resize

wm-restack = bspwm

; }}}

; BSPWM-BAR {{{
[bar/bspwm-bar]
inherit = bar/base
modules-left = bspwm mpd slash1
wm-restack = bspwm

; }}}

; I3-BAR {{{
[bar/i3-bar]
inherit = bar/base

;override-redirect = true
modules-left = i3 mpd slash1
wm-restack = i3

; }}}

; HERBS-BAR {{{
[bar/herbs-bar]
inherit = bar/base
padding-left = 0
modules-left = xworkspaces mpd slash1 

; }}}

; XMONAD-BAR {{{
[bar/xmonad-bar]
inherit = bar/base
padding-left = 0
modules-left = xmonad

; }}}

; SLASH MODULES {{{

[module/slash1]
type = custom/text
content = "%{T6} %{T-}"
content-font = 2
content-foreground = ${colors.background-alt}
content-background = ${colors.background}

[module/slash2]
type = custom/text
content = "%{T6} %{T-}"
content-font = 2
content-foreground = ${colors.background-alt}
content-background = ${colors.background}


; }}}

; DUNST-TOOGLE {{{

[module/dunst-toggle]
type = custom/ipc
hook-0 = echo "%{T3}%{T-}"
hook-1 = echo "%{T3}%{T-}"
initial = 1
click-left = /home/dilip/.config/polybar/scripts/poly-dunst.sh &
format-padding = 2
format-background = ${colors.backlight-alt}

; }}}

; UPTIME {{{
[module/uptime]
type = custom/script
exec = uptime -p | cut -d' ' -f2,3  
format-prefix = 
format-padding = 2
format-prefix-padding = 2
format-background = ${colors.background-alt}
; exec-if = pgrep -x myservice
tail = true
interval = 60
; }}}

; PICOM-TOOGLE {{{

[module/picom-toggle]
type = custom/ipc
hook-0 = echo ""
hook-1 = echo ""
initial = 1
click-left = /home/dilip/.config/polybar/scripts/poly-picom.sh &
format-padding = 2
format-background = ${colors.background-alt}

; }}}

; XRESOURCES-TOGGLE {{{

[module/xresources-toggle]
type = custom/ipc
hook-0 = echo ""
hook-1 = echo ""
initial = 1
click-left = /home/dilip/.config/polybar/scripts/poly-xresources.sh &
format-padding = 2
format-background = ${colors.background-alt}

; }}}

; XWORKSPACES {{{

[module/xworkspaces]
type = internal/xworkspaces

inactive-color =
pin-workspaces = false
enable-click = true
enable-scroll = true
reverse-scroll = true

format = <label-state>
label-monitor = %name%

label-active = %name%
label-active-foreground = ${colors.background}
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.background}
label-active-padding = 2

label-occupied = %name%
label-occupied-underline= ${colors.background-alt}
label-occupied-background = ${colors.background-alt}
label-occupied-foreground = ${colors.background}
label-occupied-padding = 2

label-urgent = %name%
label-urgent-foreground = ${colors.foreground}
label-urgent-background = ${colors.background-alt}
label-urgent-underline = ${colors.alert}
label-urgent-padding = 2

label-empty = %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-background = ${colors.background-alt}
label-empty-padding = 2

; }}}

; XWINDOW {{{

[module/xwindow]
type = internal/xwindow
format-prefix = 
format-prefix-background = ${colors.background-alt}
format-prefix-padding = 2
label =  %title:0:30:...%
label-foreground = ${colors.foreground}
label-background = ${colors.background-alt}
label-padding = 1
;label-margin = 1

; }}}

; XMONAD {{{

[module/xmonad]
type = custom/script
exec = xmonad-log
tail = true
format-foreground = ${colors.background}
format-background = ${colors.background-alt}

; }}}

; BSPWM {{{

[module/bspwm]
type = internal/bspwm

label-focused = %name%
label-focused-foreground= ${colors.foreground}
label-focused-background=  ${colors.background-alt}
label-focused-underline= ${colors.foreground}
label-focused-padding = 2

label-occupied = %name%
label-occupied-underline= ${colors.background-alt}
label-occupied-padding = 2
label-occupied-background = ${colors.background-alt}
label-occupied-foreground = ${colors.foreground}

label-urgent =  %name%
label-urgent-foreground = ${colors.foreground}
label-urgent-background = ${colors.background-alt}
label-urgent-underline = ${colors.alert}
label-urgent-padding = 2

label-empty = %name%
label-empty-foreground = ${colors.foreground-alt}
label-empty-background = ${colors.background-alt}
label-empty-padding = 2

; Separator in between workspaces
; label-separator = |

; }}}

; I3 {{{

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

; Only show workspaces on the same output as the bar
;pin-workspaces = true

; focused = Active workspace on focused monitor
label-focused = %name%
label-focused-underline = ${colors.foreground} 
label-focused-foreground = ${colors.foreground}
label-focused-background = ${colors.background-alt}
label-focused-padding = 2

; unfocused = Inactive workspace on any monitor
label-unfocused = %name%
label-unfocused-underline = ${colors.background-alt} 
label-unfocused-padding = ${self.label-focused-padding}
label-unfocused-foreground = ${colors.foreground}
label-unfocused-background = ${colors.background-alt}

; visible = Active workspace on unfocused monitor
label-visible = %name%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}

; urgent = Workspace with urgency hint set
label-urgent = %name%
label-urgent-background = ${colors.background-alt}
label-urgent-foreground = ${colors.foreground}
label-urgent-underline = ${colors.alert}
label-urgent-padding = ${self.label-focused-padding}

; }}}

; BACKLIGHT {{{

[module/backlight]
type = internal/xbacklight

output = VGA1

format = <label>
format-prefix =  
label = %percentage%%
label-foreground = ${colors.foreground}
label-background = ${colors.background}

; }}}

; FILESYSTEM {{{

[module/filesystem]
type = internal/fs
mount-0 = /
interval = 10
fixed-values = true
spacing = 4

format-mounted = <label-mounted>
format-mounted-padding = 2
format-mounted-background = ${colors.background-alt}
format-mounted-prefix = %{T3}%{T-}
format-mounted-prefix-foreground = ${colors.foreground}
label-mounted = "  %mountpoint% : %percentage_used%%"

; }}}

; MPD {{{

[module/mpd]
type = internal/mpd

host = 127.0.0.1
port = 6600
password =

format-online = <icon-prev> <toggle> <icon-next> <icon-repeat> <label-song> <label-time>
format-online-background = ${colors.background-alt}
format-online-padding = 2
format-offline = <label-offline>
format-offline-background = ${colors.background-alt}
format-offline-prefix = 
format-offline-prefix-foreground = ${colors.alert}
format-offline-padding = 2

label-offline = " Mpd is offline"
label-song = %title%
label-song-margin = 3
label-time-margin = 2

;=== Icons ===
;        

icon-seekb = 
icon-seekb-margin = 1
icon-prev = 
icon-prev-margin = 1
icon-play = 
icon-play-margin = 1
icon-pause-margin = 1
icon-pause = 
icon-seekf = 
icon-seekf-margin = 1
icon-next = 
icon-next-margin = 1
icon-repeat = 
icon-repeat-margin = 1
icon-stop = 
icon-stop-margin = 1

toggle-on-foreground = ${colors.foreground}
toggle-off-foreground = ${colors.foreground-alt}

click-right = ncmpcpp &

; }}}

; CPU {{{

[module/cpu]
type = internal/cpu
interval = 2
format = <ramp-load> <label>
format-padding = 2
format-background = ${colors.background-alt}

ramp-load-0 = 
ramp-load-0-foreground = ${colors.foreground}
ramp-load-1 = 
ramp-load-1-foreground = ${colors.foreground}
ramp-load-2 = 
ramp-load-2-foreground = ${colors.foreground}
ramp-load-3 = 
ramp-load-3-foreground = ${colors.foreground}
ramp-load-4 = 
ramp-load-4-foreground = ${colors.foreground}
ramp-load-5 = 
ramp-load-5-foreground = ${colors.foreground}
ramp-load-6 = 
ramp-load-6-foreground = ${colors.foreground}
ramp-load-7 = 
ramp-load-7-foreground = ${colors.foreground}
ramp-load-8 = 
ramp-load-8-foreground = ${colors.foreground}
ramp-load-9 = 
ramp-load-9-foreground = ${colors.alert}

label = %percentage:2%%
label-foreground = ${colors.foreground}
label-padding = 1

click-right = htop &

; }}}

; MEMORY {{{

[module/memory]
type = internal/memory
interval = 2
format = <ramp-used> <label>
format-padding = 2
format-background = ${colors.background-alt}

ramp-used-0 = " "
ramp-used-0-foreground = ${colors.foreground}
ramp-used-1 = " "
ramp-used-1-foreground = ${colors.foreground}
ramp-used-2 = " "
ramp-used-2-foreground = ${colors.foreground}
ramp-used-3 = " "
ramp-used-3-foreground = ${colors.foreground}
ramp-used-4 = " "
ramp-used-4-foreground = ${colors.foreground}
ramp-used-5 = " "
ramp-used-5-foreground = ${colors.foreground}
ramp-used-6 = " "
ramp-used-6-foreground = ${colors.foreground}
ramp-used-7 = " "
ramp-used-7-foreground = ${colors.foreground}
ramp-used-8 = " "
ramp-used-8-foreground = ${colors.foreground}
ramp-used-9 = " "
ramp-used-9-foreground = ${colors.alert}

label = %percentage_used%%
label-foreground = ${colors.foreground}
label-padding = 1
;label-margin = 1

; }}}

; WLAN {{{

[module/wlan]
type = internal/network
interface = wlan0
interval = 1.0

format-connected = <label-connected>
;format-connected-underline = #55ff55
label-connected = WIFI: %essid% IP: %local_ip%
label-connected-foreground = ${colors.foreground}
label-connected-padding = 1
;label-connected-margin = 1

;format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = #ff5555
;label-disconnected = WIFI: disconnected IP: N/A
;label-disconnected-padding = 2
;label-disconnected-background = #3971ed
;label-disconned
;label-disconnected-foreground = #ff0000

; }}}

; DATE {{{

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

date = "%d %b"

time = %a %H:%M

format-prefix = 
format-prefix-foreground = ${colors.foreground}
format-prefix-background = ${colors.background-alt}
format-prefix-padding = 2

label =  %date%, %time%
label-foreground = ${colors.foreground}
label-background = ${colors.background-alt}
label-padding = 1
;label-margin = 1

; }}}

; PULSEAUDIO {{{

[module/pulseaudio]
type = internal/pulseaudio

format-volume = <ramp-volume> <label-volume>
format-volume-padding = 2
format-volume-background = ${colors.background-alt}
label-volume = %percentage%% 
label-volume-foreground = ${colors.foreground}
label-volume-padding = 1

ramp-volume-0 = 
ramp-volume-0-foreground = ${colors.foreground}
ramp-volume-1 = 
ramp-volume-1-foreground = ${colors.foreground}
ramp-volume-2 = 
ramp-volume-2-foreground = ${colors.foreground}
ramp-volume-3 = 
ramp-volume-3-foreground = ${colors.foreground}
ramp-volume-4 = 
ramp-volume-4-foreground = ${colors.foreground}
ramp-volume-5 = 
ramp-volume-5-foreground = ${colors.foreground}
ramp-volume-6 = 
ramp-volume-6-foreground = ${colors.foreground}
ramp-volume-7 = 
ramp-volume-7-foreground = ${colors.foreground}
ramp-volume-8 = 
ramp-volume-8-foreground = ${colors.foreground}
ramp-volume-9 = 
ramp-volume-9-foreground = ${colors.alert}

label-muted =  
label-muted-foreground = ${colors.alert}
label-muted-background = ${colors.background-alt}
label-muted-padding = 2

click-right = pavucontrol &

; }}}

; TEMPERATURE {{{

[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60

format = <ramp> <label>
format-padding = 2
format-background = ${colors.background-alt}
format-warn = <ramp> <label-warn>

ramp-0 = 
ramp-0-foreground = ${colors.foreground}
ramp-1 = 
ramp-1-foreground = ${colors.foreground}
ramp-2 = 
ramp-2-foreground = ${colors.foreground}
ramp-3 = 
ramp-3-foreground = ${colors.foreground}
ramp-4 = 
ramp-4-foreground = ${colors.alert}

label = %temperature-c%
label-foreground = ${colors.foreground}
label-padding = 1

; }}}

; OTHERS {{{

[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
;pseudo-transparency = false

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

; vim:ft=dosini

; }}}