diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini index 5304a1d..e9a966f 100644 --- a/.config/polybar/modules.ini +++ b/.config/polybar/modules.ini @@ -27,7 +27,7 @@ interval = 5 [module/memory_bar] type = internal/memory format = -format-prefix = "%{A1} %{A}" +format-prefix = "%{A1:$TERMINAL_CMD 'top -o RES' &:} %{A}" format-prefix-foreground = ${colors.foreground-alt} bar-used-width = 10 @@ -35,7 +35,7 @@ bar-used-gradient = false bar-used-indicator = bar-used-indicator-foreground = ${colors.foreground} bar-used-indicator-font = 0 -bar-used-fill = "%{A1}%{T5}_%{T-}%{A}" +bar-used-fill = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A}" bar-used-foreground-0 = ${colors.bn} bar-used-foreground-1 = ${colors.bn} bar-used-foreground-2 = ${colors.bn} @@ -45,7 +45,7 @@ bar-used-foreground-5 = ${colors.bm} bar-used-foreground-6 = ${colors.bd} bar-used-foreground-7 = ${colors.bd} bar-used-foreground-8 = ${colors.bd} -bar-used-empty = "%{A1}%{T5}_%{T-}%{A}" +bar-used-empty = "%{A1:$TERMINAL_CMD 'top -o RES' &:}%{T5}_%{T-}%{A}" bar-used-empty-foreground = ${colors.foreground-alt} [module/wireless]