Skip to content

Commit

Permalink
🔧 polybar[cpu]: add cpu-graph to vertical screen
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianmiranda committed Nov 18, 2024
1 parent 9970aa3 commit 2ba77d1
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions home/.config/polybar/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ primary = #C5C8C6
secondary = #8ABEB7
alert = #A54242
disabled = #707880
;
; ADAPTA Colors
;
adapta-cyan = #00BCD4
adapta-red = #FF5252
adapta-yellow = #C9BC0E
adapta-lightgreen = #4DB6AC
adapta-green = #009688
adapta-grey = #475359

[margin]
for-modules = 1

[settings]
screenchange-reload = true
Expand Down Expand Up @@ -84,9 +96,9 @@ height = 24pt
monitor = ${env:MONITOR:}
tray-position = ${env:TRAY_POS:}
dpi = 96
modules-left = logo i3 sxhkd-ipc hotkeys-ipc
modules-left = logo i3 sxhkd-ipc hotkeys-ipc spotify-now-playing
modules-center =
modules-right = trayseparator spotify github thunderbird vpn do-not-disturb trayseparator
modules-right = cpu-graph trayseparator spotify github thunderbird vpn do-not-disturb trayseparator

[bar/laptop]
inherit = section/base
Expand Down Expand Up @@ -314,7 +326,7 @@ interface-type = wired

; Seconds to sleep between updates
; Default: 1
interval = 1.0
interval = 0.5

label-connected-font = 1

Expand All @@ -335,6 +347,31 @@ format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = %percentage:3:3%%

[module/cpu-graph]
type = internal/cpu
interval = 0.1
format =  <ramp-coreload>
format-underline = ${colors.adapta-cyan}
format-margin = ${margin.for-modules}
format-padding = 1
ramp-coreload-0 = ▁
ramp-coreload-0-foreground = ${colors.adapta-cyan}
ramp-coreload-1 = ▂
ramp-coreload-1-foreground = ${colors.adapta-green}
ramp-coreload-2 = ▃
ramp-coreload-2-foreground = ${colors.adapta-lightgreen}
ramp-coreload-3 = ▄
ramp-coreload-3-foreground = ${colors.adapta-lightgreen}
ramp-coreload-4 = ▅
ramp-coreload-4-foreground = ${colors.adapta-yellow}
ramp-coreload-5 = ▆
ramp-coreload-5-foreground = ${colors.adapta-yellow}
ramp-coreload-6 = ▇
ramp-coreload-6-foreground = ${colors.adapta-red}
ramp-coreload-7 = █
ramp-coreload-7-foreground = ${colors.adapta-red}
ramp-coreload-font = 4

[module/battery]
type = internal/battery
interval = 10
Expand Down

0 comments on commit 2ba77d1

Please sign in to comment.