From ac545c3be053197fff6b65bc698036567e13bd1f Mon Sep 17 00:00:00 2001 From: Elias Norrby Date: Wed, 7 Jul 2021 00:52:28 +0200 Subject: [PATCH] feat(polybar): add secondary-stats bar With CPU and RAM usage bars. --- panel/polybar/config | 43 ++++++++++++++++++++++++++++++++++++++++- panel/polybar/launch.sh | 40 +++++++++++++++++++++++++++++++------- 2 files changed, 75 insertions(+), 8 deletions(-) diff --git a/panel/polybar/config b/panel/polybar/config index a2f55684..e0327086 100644 --- a/panel/polybar/config +++ b/panel/polybar/config @@ -80,6 +80,11 @@ modules-left = bspwm modules-center = modules-right = +[bar/secondary-stats] +inherit = bar/secondary + +modules-center = memory-bar cpu-bar + [module/vpn] type = custom/script exec = if pgrep -x openfortivpn >/dev/null; then echo " "; else echo " "; fi @@ -145,12 +150,48 @@ format-prefix = " " format-prefix-foreground = ${colors.foreground-alt} label = %percentage:2%% +[module/cpu-bar] +type = internal/cpu +interval = 2 +format =