From 8e541c652bb86bbf4b3cb7de744d700db142c0d7 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 10 May 2023 20:23:19 +0530 Subject: fixed uptime formatting --- .config/polybar/config.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index 7191b4c..638ba9a 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -278,8 +278,7 @@ label = %{A3:#uptime.module_toggle:}%time%%{A3} type = custom/script click-left = module_toggle interval = 100 -;exec = "uptime | awk -F, '{sub(".*up ",x,$1);sub(" min","M",$1);print $1}'" -exec = "uptime | awk -F, '{sub(".*up ",x,$1);sub(" min","M",$1);sub(":","H ",$1);print $1"M"}'" +exec = "uptime | awk -F, '{sub(".*up ",x,$1);sub(" min","",$1);sub(":","H ",$1);print $1"M"}'" label = "/ UP:%output% " hidden = true -- cgit v1.2.3