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
  • Loading branch information
xafarr committed Nov 20, 2024
1 parent 1795723 commit 617d574
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 617d574

Please sign in to comment.