aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-05-10 20:23:19 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-05-10 20:23:19 +0530
commit8e541c652bb86bbf4b3cb7de744d700db142c0d7 (patch)
tree8eeae9d944837e445ee758cc551978161f7a2698
parent41cb70f0c34f263e56c2c9f62d9643dca8be64ba (diff)
fixed uptime formatting
-rw-r--r--.config/polybar/config.ini3
1 files changed, 1 insertions, 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