From 617d57406c0fb956d9b330dc00896608fbe4fbd6 Mon Sep 17 00:00:00 2001 From: Muhammad Zafar Date: Thu, 21 Nov 2024 10:05:43 +1100 Subject: [PATCH] fix: improve uptime status sed script to report correct units for few uptime scenarios --- status/uptime.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/status/uptime.conf b/status/uptime.conf index 5a2bbc34..c86787fb 100644 --- a/status/uptime.conf +++ b/status/uptime.conf @@ -3,6 +3,6 @@ set -ogq @catppuccin_uptime_icon "󰔟 " set -ogqF @catppuccin_uptime_color "#{E:@thm_sapphire}" -set -ogq @catppuccin_uptime_text " #(uptime | sed 's/^[^,]*up *//; s/, *[[:digit:]]* user.*//; s/ day.*, */d /; s/:/h /; s/ min//; s/$/m/')" +set -ogq @catppuccin_uptime_text " #(uptime | sed 's/^[^,]*up *//; s/, *[[:digit:]]* user.*//; s/ day.*, */d /; s/ hr\\(s*\\).*/h/; s/ min\\(s*\\).*/m/; s/ sec\\(s*\\).*/s/; s/\\([0-9]\\{1,2\\}\\):\\([0-9]\\{1,2\\}\\)/\\1h \\2m/;')" source -F "#{d:current_file}/../utils/status_module.conf"