update waybar

This commit is contained in:
2026-09-22 18:49:23 -07:00
parent a697945567
commit 49819250e2
9 changed files with 2428 additions and 14 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
meteobar --location 'Los Angeles' --units imperial --icons fontawesome --tooltip-format days --days 3 | \
jq -c '
.class |= (if type == "array" then .[0] else . end) |
.tooltip |= (
split("\n") |
map(select(test("[╭╰╮]") | not)) |
map(select(test("foreground=.#5c6370.>[─]") | not)) |
map(
gsub("<span foreground=.#61afef.>│</span> *"; "") |
gsub(" *<span foreground=.#61afef.>│</span>"; "")
) |
map(select(test("^[[:space:]]*$") | not)) |
join("\n")
)
'