From 31be34e3af6bc28b265f143784382cbf335c72ee Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 2 Aug 2022 12:05:09 +0530 Subject: added H and M labels in uptime --- .config/polybar/config.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.config') 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} -- cgit v1.2.3