From fb44fdfb5586dfd7eabf6a5fbe047a1b46417b7b Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Fri, 22 Mar 2024 16:11:13 +0100 Subject: [PATCH] Pad cpu usage to avoid moving the powerline around --- content/config/nushell/scripts/ide.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/config/nushell/scripts/ide.nu b/content/config/nushell/scripts/ide.nu index 24bb7fd..f931090 100755 --- a/content/config/nushell/scripts/ide.nu +++ b/content/config/nushell/scripts/ide.nu @@ -161,13 +161,13 @@ export def `zjstatus powerline_right` [] { let elements = ([ (ci status) { - text: ($sys.cpu.cpu_usage | math avg | math round -p 2 | $"($in) % ") + text: ($sys.cpu.cpu_usage | math avg | math round -p 2 | $"($in) % " | fill -a right -c ' ' -w 8) icon: "" bg: "cyan" fg: $ZELLIJ_BG } { - text: $"($sys.mem.used) " + text: ($"($sys.mem.used) " | fill -a right -c ' ' -w 8) icon: "" bg: "green" fg: $ZELLIJ_BG