From 31fc2bfb1123681dc06da613b944b85f81e4babd Mon Sep 17 00:00:00 2001 From: Muhammad Zafar Date: Sun, 8 Dec 2024 13:57:10 +1100 Subject: [PATCH] fix: improve uptime status sed script to report correct units for few uptime scenarios (#437) Co-authored-by: Kaley Main --- 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"