summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2022-10-18 09:08:09 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2022-10-18 09:08:09 +0200
commit747b37f09b2c1e92785fe8cb862706a818b2a55e (patch)
tree7725cfa2d2a29a536b79cb0b7f1b0686f3846921
parente10991a690727c050d4d36d5ec229f7f14866743 (diff)
downloaddotfiles-747b37f09b2c1e92785fe8cb862706a818b2a55e.tar.gz
dotfiles-747b37f09b2c1e92785fe8cb862706a818b2a55e.zip
Add Polybar config
-rw-r--r--.config/polybar/config.ini126
-rw-r--r--Desktop.org132
2 files changed, 258 insertions, 0 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
new file mode 100644
index 0000000..8e79a12
--- /dev/null
+++ b/.config/polybar/config.ini
@@ -0,0 +1,126 @@
1[settings]
2screenchange-reload = true
3pseudo-transparency = true
4
5[colors]
6background = #F20d1017
7background-alt = #131721
8foreground = #C5C8C6
9primary = #7fd962
10secondary = #bfbdb6
11alert = #A54242
12disabled = #707880
13
14[bar/example]
15width = 100%
16height = 18pt
17
18background = ${colors.background}
19foreground = ${colors.foreground}
20
21line-size = 1.5pt
22
23padding-left = 0
24padding-right = 1
25
26module-margin = 1
27
28separator = |
29separator-foreground = ${colors.disabled}
30
31font-0 = "sourcecodepro:size=11"
32font-1 = "FontAwesome"
33
34modules-left = xworkspaces
35modules-right = memory cpu battery date
36
37cursor-click = pointer
38cursor-scroll = ns-resize
39
40enable-ipc = true
41
42tray-position = right
43
44[module/xworkspaces]
45type = internal/xworkspaces
46
47icon-0 = 1;0
48icon-1 = 2;1
49icon-2 = 3;2
50icon-3 = 4;3
51icon-4 = 5;4
52icon-5 = 6;5
53icon-6 = 7;6
54icon-7 = 8;7
55icon-8 = 9;8
56icon-9 = 10;9
57
58label-active = %icon%
59label-active-background = ${colors.background-alt}
60label-active-underline= ${colors.primary}
61label-active-padding = 1
62
63label-occupied = %icon%
64label-occupied-padding = 1
65
66label-urgent = %icon%
67label-urgent-background = ${colors.alert}
68label-urgent-padding = 1
69
70label-empty = %icon%
71label-empty-foreground = ${colors.disabled}
72label-empty-padding = 1
73
74[module/battery]
75type = internal/battery
76battery = BAT0
77adapter = ADP1
78
79format-charging = <animation-charging> <label-charging>
80format-discharging = <ramp-capacity> <label-discharging>
81format-low = <ramp-capacity> <label-low>
82format-full = <ramp-capacity> <label-full>
83
84label-charging = %percentage%%
85label-discharging = %percentage%%
86label-low = LOW %percentage%%
87label-full = FULL %percentage%%
88
89ramp-capacity-0 = 
90ramp-capacity-1 = 
91ramp-capacity-2 = 
92ramp-capacity-3 = 
93ramp-capacity-4 = 
94ramp-capacity-foreground = ${colors.primary}
95
96animation-charging-0 = 
97animation-charging-1 = 
98animation-charging-2 = 
99animation-charging-3 = 
100animation-charging-4 = 
101animation-charging-foreground = ${colors.primary}
102animation-charging-framerate = 750
103
104[module/memory]
105type = internal/memory
106interval = 2
107format-prefix = "RAM "
108format-prefix-foreground = ${colors.primary}
109label = %percentage_used:2%%
110
111[module/cpu]
112type = internal/cpu
113interval = 2
114format-prefix = "CPU "
115format-prefix-foreground = ${colors.primary}
116label = %percentage:2%%
117
118[module/date]
119type = internal/date
120interval = 1
121
122date = %H:%M
123date-alt = %Y-%m-%d %H:%M:%S
124
125label = %date%
126label-foreground = ${colors.primary}
diff --git a/Desktop.org b/Desktop.org
index d1a9188..04d6be3 100644
--- a/Desktop.org
+++ b/Desktop.org
@@ -345,3 +345,135 @@
345 # Icon for notifications with critical urgency, uncomment to enable 345 # Icon for notifications with critical urgency, uncomment to enable
346 #icon = /path/to/icon 346 #icon = /path/to/icon
347#+end_src 347#+end_src
348
349* Polybar
350#+begin_src conf :tangle .config/polybar/config.ini
351
352 [settings]
353 screenchange-reload = true
354 pseudo-transparency = true
355
356 [colors]
357 background = #F20d1017
358 background-alt = #131721
359 foreground = #C5C8C6
360 primary = #7fd962
361 secondary = #bfbdb6
362 alert = #A54242
363 disabled = #707880
364
365 [bar/example]
366 width = 100%
367 height = 18pt
368
369 background = ${colors.background}
370 foreground = ${colors.foreground}
371
372 line-size = 1.5pt
373
374 padding-left = 0
375 padding-right = 1
376
377 module-margin = 1
378
379 separator = |
380 separator-foreground = ${colors.disabled}
381
382 font-0 = "sourcecodepro:size=11"
383 font-1 = "FontAwesome"
384
385 modules-left = xworkspaces
386 modules-right = memory cpu battery date
387
388 cursor-click = pointer
389 cursor-scroll = ns-resize
390
391 enable-ipc = true
392
393 tray-position = right
394
395 [module/xworkspaces]
396 type = internal/xworkspaces
397
398 icon-0 = 1;0
399 icon-1 = 2;1
400 icon-2 = 3;2
401 icon-3 = 4;3
402 icon-4 = 5;4
403 icon-5 = 6;5
404 icon-6 = 7;6
405 icon-7 = 8;7
406 icon-8 = 9;8
407 icon-9 = 10;9
408
409 label-active = %icon%
410 label-active-background = ${colors.background-alt}
411 label-active-underline= ${colors.primary}
412 label-active-padding = 1
413
414 label-occupied = %icon%
415 label-occupied-padding = 1
416
417 label-urgent = %icon%
418 label-urgent-background = ${colors.alert}
419 label-urgent-padding = 1
420
421 label-empty = %icon%
422 label-empty-foreground = ${colors.disabled}
423 label-empty-padding = 1
424
425 [module/battery]
426 type = internal/battery
427 battery = BAT0
428 adapter = ADP1
429
430 format-charging = <animation-charging> <label-charging>
431 format-discharging = <ramp-capacity> <label-discharging>
432 format-low = <ramp-capacity> <label-low>
433 format-full = <ramp-capacity> <label-full>
434
435 label-charging = %percentage%%
436 label-discharging = %percentage%%
437 label-low = LOW %percentage%%
438 label-full = FULL %percentage%%
439
440 ramp-capacity-0 = 
441 ramp-capacity-1 = 
442 ramp-capacity-2 = 
443 ramp-capacity-3 = 
444 ramp-capacity-4 = 
445 ramp-capacity-foreground = ${colors.primary}
446
447 animation-charging-0 = 
448 animation-charging-1 = 
449 animation-charging-2 = 
450 animation-charging-3 = 
451 animation-charging-4 = 
452 animation-charging-foreground = ${colors.primary}
453 animation-charging-framerate = 750
454
455 [module/memory]
456 type = internal/memory
457 interval = 2
458 format-prefix = "RAM "
459 format-prefix-foreground = ${colors.primary}
460 label = %percentage_used:2%%
461
462 [module/cpu]
463 type = internal/cpu
464 interval = 2
465 format-prefix = "CPU "
466 format-prefix-foreground = ${colors.primary}
467 label = %percentage:2%%
468
469 [module/date]
470 type = internal/date
471 interval = 1
472
473 date = %H:%M
474 date-alt = %Y-%m-%d %H:%M:%S
475
476 label = %date%
477 label-foreground = ${colors.primary}
478
479#+end_src