Skip to content

Commit

Permalink
fix: improve uptime status sed script to report correct units for few…
Browse files Browse the repository at this point in the history
… uptime scenarios (#437)

Co-authored-by: Kaley Main <kaleymain@google.com>
  • Loading branch information
xafarr and kjnsn authored Dec 8, 2024
1 parent 2a6c45b commit 31fc2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion status/uptime.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 31fc2bf

Please sign in to comment.