aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-02 12:05:09 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-08-02 12:05:09 +0530
commit31be34e3af6bc28b265f143784382cbf335c72ee (patch)
treefb66f58732875b69ec2f30e4f1ba05842b0f2c73
parent244575c2cbbad8d5ea45ddef560b542cf4aa668b (diff)
added H and M labels in uptime
-rw-r--r--.config/polybar/config.ini5
1 files changed, 3 insertions, 2 deletions
diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini
index 49614a6..5e4bcb8 100644
--- a/.config/polybar/config.ini
+++ b/.config/polybar/config.ini
@@ -230,8 +230,9 @@ 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}'"
-label = "/ UP: %output% "
+;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"}'"
+label = "/ UP:%output% "
hidden = true
format-foreground = ${colors.uptime-fg}