blob: 7726dac97df6b8a966d3424b7d0b7a454391867b (
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
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
|
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
foreground = #fafafa
foreground-alt = #aaCECCC9
background = #aa000000
;background = #aa101212
;background = #00000000
background-alt = #aaCECCC9
disabled = #707880
altblend = #282e49
;primary = #aaCECCC9
;secondary = #aaCECCC9
;non = #aaCECCC9
blue = #61afef
dark_blue = #42A5F5
nord = #81a1c1
light_blue = #ADD8E6
purple = #c882e7
orange = #E57C46
gray = #676E95
red = #EC7875
pink = #EC407A
yellow = #FDD835
amber = #FBC02D
indigo = #6C77BB
green = #61C766
lime = #B9C244
cyber = #53E2AE
alert = #ff8989
[fonts]
font0 = "SF Pro Mono:style=Display Bold:size=10;2"
; Font for crypto, dunst
font1 = "Material Design Icons:style=Bold:size=11.5;2"
; Font for menu
font2 = "Material Design Icons:style=Bold:size=13.5;2"
; Font for controlCenter
font3 = "SF Pro:style=Medium:size=10.5;2"
; Font for search
font4 = "SF Pro:style=Regular:size=13;2"
; Font for bspwm/workspaces
font5 = "UbuntuMono Nerd font:size=11;2"
font6="Feather:style=Regular:size=15;4"
font7="Font Awesome 6 Pro Solid:style=Solid:size=14;4"
font8 ="JetBrainsMono Nerd Font:size=9;2"
[bar/top-left]
#monitor = ${env:MONITOR1}
monitor = ${env:MONITOR:}
#monitor = ${env:MONITOR:HDMI-1}
width = 260px
offset-x = 1%
offset-y = 1%
height = 22pt
radius = 10.0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = ${fonts.font0}
font-1 = ${fonts.font1}
font-2 = ${fonts.font2}
font-3 = ${fonts.font3}
font-4 = ${fonts.font4}
font-5 = ${fonts.font5}
font-6 = ${fonts.font6}
font-7 = ${fonts.font7}
font-8 = ${fonts.font8}
line-size = 1pt
enable-ipc = true
wm-restack = generic
modules-left = space space menu space bspwm space space
[bar/top-middle-left]
#monitor = ${env:MONITOR1}
monitor = ${env:MONITOR:}
#monitor = ${env:MONITOR:HDMI-1}
width = 220px
offset-x = 25%
offset-y = 1%
height = 22pt
radius = 10.0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = ${fonts.font0}
font-1 = ${fonts.font1}
font-2 = ${fonts.font2}
font-3 = ${fonts.font3}
font-4 = ${fonts.font4}
font-5 = ${fonts.font5}
font-6 = ${fonts.font6}
font-7 = ${fonts.font7}
font-8 = ${fonts.font8}
line-size = 1pt
enable-ipc = true
wm-restack = generic
modules-center = space space cpu space sep space memory space sep space temperature space space
[bar/top-middle]
#monitor = ${env:MONITOR1}
monitor = ${env:MONITOR:}
#monitor = ${env:MONITOR:HDMI-1}
width = 220px
offset-x = 42%
offset-y = 1%
height = 22pt
radius = 10.0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 1pt
font-0 = "RobotoMono Nerd Font:weight=bold:size=9;2"
font-1 = "RobotoMono Nerd Font:size=10;3"
font-2 = "RobotoMono Nerd Font:size=11;3"
enable-ipc = true
wm-restack = generic
modules-center = space space day space sep space date space sep space time space space
[bar/top-middle-right]
#monitor = ${env:MONITOR1}
monitor = ${env:MONITOR:}
# Tray
#tray-position = ${env:TRAY_POSITION:right}
#monitor = ${env:MONITOR:HDMI-1}
width = 220px
offset-x = 59%
offset-y = 1%
height = 22pt
radius = 10.0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = ${fonts.font0}
font-1 = ${fonts.font1}
font-2 = ${fonts.font2}
font-3 = ${fonts.font3}
font-4 = ${fonts.font4}
font-5 = ${fonts.font5}
font-6 = ${fonts.font6}
font-7 = ${fonts.font7}
font-8 = ${fonts.font8}
line-size = 1pt
enable-ipc = true
wm-restack = generic
modules-center = space space wireless-network netspeed space space
[bar/top-right]
#monitor = ${env:MONITOR1}
monitor = ${env:MONITOR:}
#monitor = ${env:MONITOR:HDMI-1}
width = 260px
offset-x = 80%
offset-y = 1%
height = 22pt
radius = 10.0
fixed-center = true
background = ${colors.background}
foreground = ${colors.foreground}
font-0 = ${fonts.font0}
font-1 = ${fonts.font1}
font-2 = ${fonts.font2}
font-3 = ${fonts.font3}
font-4 = ${fonts.font4}
font-5 = ${fonts.font5}
font-6 = ${fonts.font6}
font-7 = ${fonts.font7}
font-8 = ${fonts.font8}
line-size = 1pt
padding-left = 2
;padding-right = 2
enable-ipc = true
wm-restack = generic
modules-right = space space mic space sep space volume space sep space backlight space sep space inbox space space systray space space control space space
;[bar/top-left2]
;;monitor = ${env:MONITOR2}
;monitor = ${env:MONITOR:}
;;monitor = ${env:MONITOR:HDMI-1}
;width = 15%
;offset-x = 1%
;offset-y = 1%
;height = 22pt
;radius = 10.0
;fixed-center = true
;background = ${colors.background}
;foreground = ${colors.foreground}
;font-0 = ${fonts.font0}
;font-1 = ${fonts.font1}
;font-2 = ${fonts.font2}
;font-3 = ${fonts.font3}
;font-4 = ${fonts.font4}
;font-5 = ${fonts.font5}
;font-6 = ${fonts.font6}
;font-7 = ${fonts.font7}
;font-8 = ${fonts.font8}
;line-size = 1pt
;enable-ipc = true
;wm-restack = generic
;modules-center = space space menu space bspwm space space
[module/xworkspaces]
type = internal/xworkspaces
label-active =
label-active-padding = 1
label-occupied =
label-occupied-padding = 1
label-empty =
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/bspwm]
type = internal/bspwm
format = <label-state>
format-padding = 2
format-foreground = ${colors.foreground}
index-sort = true
enable-click = true
reverse-scroll = false
label-focused = ●
label-focused-padding = 1
label-occupied = "%name%"
label-occupied-padding = 1
;label-empty = ○
label-empty="%name%"
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
format-font = 5
[module/xwindow]
type = internal/xwindow
format = <label>
format-background = ${colors.Mantle}
format-foreground = ${colors.Lavender}
format-padding = 2
label = %title%
label-maxlen = 40
label-empty = ~/
label-empty-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = " "
format-volume = <label-volume>
click-right = pavucontrol
label-volume = "%percentage%%"
label-muted = " muted"
label-muted-foreground = ${colors.disabled}
[module/volume]
type = internal/pulseaudio
format-volume = <ramp-volume> <label-volume>
format-volume-font = 9
format-volume-padding = 0
;ramp-volume-foreground = ${colors.foreground}
label-volume = %percentage:2%%
label-volume-padding = 1
;label-muted-foreground = ${colors.foreground}
;format-volume-foreground = ${colors.purple}
format-muted-foreground = ${colors.red}
format-muted-underline = ${colors.red}
ramp-volume-foreground = ${colors.foreground}
label-muted = "muted"
label-muted-foreground = ${colors.disabled}
ramp-volume-0 = " "
ramp-volume-1 = " "
ramp-volume-2 = " "
ramp-volume-3 = " "
ramp-volume-4 = " "
ramp-volume-5 = " "
ramp-volume-6 = " "
click-right = "pavucontrol"
[module/inbox]
type = custom/text
content-foreground = ${colors.foreground}
;content-padding = 1
content =
;
click-left = "dunstctl history-pop"
[module/day]
type = internal/date
interval = 1
date = %A
label = %date:8%
label-foreground = ${colors.foreground}
[module/date]
type = internal/date
interval = 1
date = %d-%m-%Y
label = %date%
label-foreground = ${colors.foreground}
format = %{A1:$HOME/.config/eww/scripts/popup calendar &:}<label>%{A}
[module/calendar]
type = custom/text
content =
;content-font = 1
content-padding = 1
content-foreground = ${colors.primary}
enable-click = true
click-left = ~/.config/eww/scripts/popup calendar &
[module/time]
type = internal/date
interval = 1
date = %H:%M:%S
label = %date%
label-foreground = ${colors.foreground}
[module/battery]
type = internal/battery
full-t = 99
time-format = %H:%M
battery = BAT1
adapter = ACAD
format-padding = 1
format-charging = <animation-charging> <label-charging>
format-charging-background =
label-charging = %percentage%%
format-discharging = <ramp-capacity> <label-discharging>
format-discharging-background =
label-discharging = %percentage%%
format-full = <label-full>
format-full-prefix = " "
format-full-prefix-foreground = ${colors.green}
;format-foreground = ${colors.green}
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
ramp-capacity-5 =
ramp-capacity-6 =
ramp-capacity-7 =
ramp-capacity-8 =
ramp-capacity-9 =
ramp-capacity-0-foreground = ${colors.red}
ramp-capacity-1-foreground = ${colors.red}
ramp-capacity-foreground = ${colors.green}
;ramp-capacity-foreground = ${colors.foreground}
bar-capacity-width = 10
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-5 =
animation-charging-6 =
animation-charging-foreground = ${colors.green}
animation-charging-framerate = 750
[module/memory]
type=internal/memory
interval=5
format=<label>
format-font=8
format-prefix=""
;
format-foreground=${colors.foreground}
format-prefix-foreground=${colors.foreground}
label-font=2
label-foreground=${colors.foreground}
label="%{A1:alacritty -e btop &:} %gb_used%%{A}"
[module/cpu]
type=internal/cpu
interval=5
format-prefix-font=4
format-prefix=" "
format-padding=0
;format-prefix-foreground=${colors.green}
format-prefix-foreground=${colors.foreground}
format-foreground=${colors.foreground}
;format-background=${colors.altblend}
label="%percentage%%"
label-foreground=${colors.foreground}
label-font=2
[module/temperature]
type=internal/temperature
; Seconds to sleep between updates
; Default: 1
interval=10
; Thermal zone to use
; To list all the zone types, run
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
; Default: 0
thermal-zone=0
; Full path of temperature sysfs path
; Use `sensors` to find preferred temperature source, then run
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
; to find path to desired file
; Default reverts to thermal zone setting
hwmon-path=/sys/devices/platform/dell_smm_hwmon/hwmon/hwmon1/temp1_input
; Base temperature for where to start the ramp (in degrees celsius)
; Default: 0
base-temperature=20
warn-temperature=60
; Threshold temperature to display warning label (in degrees celsius)
; Default: 80
format-prefix=" "
format-warn-prefix=" "
format-warn-foreground=${colors.red}
format-foreground=${colors.foreground}
format-font=4
format-warn-font=4
label-warn-font=2
label-foreground=${colors.foreground}
format = "<label>"
label-font=2
[module/xbacklight]
type = internal/xbacklight
enable-scroll = true
[module/backlight]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
format-backlight = <label>
;format-backlight = <ramp-backlight> <label>
format-padding = 0
format-prefix = ""
format-prefix-forejround = ${colors.foreground}
;ramp-backlight = %percentage:4%%
label = %percentage:4%%
;label-foreground = ${colors.foreground}
[module/bluetooth]
type = custom/text
content = ""
format = <label>
content-foreground = ${colors.foreground}
; click-middle = bspc rule -a '*' -o state=floating rectangle=400x120+775+48 && kitty -e sudo polybarblue.sh
click-left = blueman-manager
[module/control]
type = custom/script
exec = echo
format = <label>
format-padding = 1
label-padding =
content-background =
format-foreground = ${colors.foreground}
click-left = $HOME/.scripts/toggle-control &
[module/wireless-network]
type = internal/network
interface = wlan0
interval = 3.0
unknown-as-up = true
format-connected-background = ${colors.background}
format-connected-foreground = ${colors.foreground}
format-connected-padding = 1
format-connected = %{A1:$HOME/.scripts/rofi-network-manager.sh:}<ramp-signal> <label-connected>%{A}
label-connected = "%essid:03:5%/%local_ip% |"
format-disconnected-background = ${colors.background}
format-disconnected-foreground = ${colors.foreground}
format-disconnected-padding = 1
format-disconnected = %{A1:$HOME/.scripts//rofi-network-manager.sh:}<label-disconnected>%{A}
;label-disconnected ="Network Disconnected ......"
label-disconnected =" Network Disconnected"
ramp-signal-0 = ""
ramp-signal-1 = ""
ramp-signal-2 = ""
ramp-signal-3 = ""
ramp-signal-4 = ""
ramp-signal-foreground = ${colors.white}
enable-click = true
click-left = $HOME/.scripts/rofi-network-manager.sh &
[module/wifi]
type = custom/script
tail = true
interval = 1
format = <label>
format-prefix = " "
wifi = wifi
wifi-alt = iwgetid -r
exec = iwgetid -r
click-left = kitty nmtui
click-right = nm-connection-editor
label-disconnected = %{A1:nm-connection-editor:}%essid%%{A}
[module/wlan-signal]
type = custom/script
label = %output%
exec = awk 'NR==3 {print $4 "00 dBm"}' /proc/net/wireless
format-prefix = "ﴽ "
format-prefix-foreground = ${colors.yellow}
format-background = ${colors.background}
format-foreground = ${colors.foreground}
interval = 1
[module/netspeed]
type = internal/network
;interface = ${system.sys_network_interface}
interface-type = wireless
interval = 3.0
accumulate-stats = true
unknown-as-up = true
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = ""
format-disconnected-prefix = ""
format-connected-prefix = ""
speed-unit = ""
label-connected = "%netspeed:6%B/s"
[module/upspeed]
type = internal/network
interface-type = wireless
interval = 1
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = ""
format-disconnected-prefix = ""
format-connected-prefix = " "
label-connected = " %upspeed:8%"
[module/downspeed]
type = internal/network
interface-type = wireless
interval = 1
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = ""
format-disconnected-prefix = ""
format-connected-prefix = ""
label-connected = " %downspeed:8%"
[module/spotify]
type = custom/script
tail = true
interval = 1
format-prefix = " "
format = <label>
exec = ~/.config/polybar/scripts/get_spotify_status.sh
[module/tray]
type = internal/tray
format-margin = 8px
tray-spacing = 8px
[module/menu]
type = custom/text
content =
;
content-font = 3
content-padding = 1
content-foreground = ${colors.foreground}
enable-click = true
click-left = $HOME/.scripts/menu.sh
click-right = $HOME/.scripts/menu_full.sh
[module/power]
type = custom/text
content =
;content = 襤
content-foreground = ${colors.Red}
content-padding = 1
label-margin = 3
click-left = ~/.scripts/sysmenu.sh
[module/systray]
type=custom/ipc
hook-0=echo " "
hook-1=echo " "
click-left=systray
initial=2
format-font=2
format-foreground=${colors.blue}
[module/weather]
type = custom/script
exec = "sh ~/.config/polybar/weather.sh"
interval = 700
[module/updates]
type = custom/script
tail = true
interval = 1
format-prefix = " "
format = <label>
exec = checkupdates | wc -l
click-left = kitty yay -Syu --noconfirm
[module/mic]
type = custom/script
interval = 0.5
exec = $HOME/.config/polybar/scripts/microphone.sh
format = <label>
format-font = 9
click-left = pamixer --source 1 -t
scroll-up = pamixer --source 1 -i 5
scroll-down = pamixer --source 1 -d 5
; decor
[module/sep]
type = custom/text
content = "|"
content-foreground = ${colors.disabled}
[module/space]
type = custom/text
content = " "
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini
|