mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-10-01 05:40:49 -07:00
update waybar
This commit is contained in:
Executable
+16
@@ -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")
|
||||
)
|
||||
'
|
||||
Reference in New Issue
Block a user