Files
arthur-os/default/waybar/weather.sh
T
David Heinemeier HanssonandGitHub 6b6d71a9d2 Add live weather (#5633)
* Add live weather

* Just use jq

* Add Weather app and make it click target

* Simplify

* Looks better

* Nicer flow

* Simplify

* Move to using the notification instead of tooltip

* No longer needed
2026-05-07 10:48:32 +02:00

11 lines
221 B
Bash
Executable File

#!/bin/bash
icon=$(omarchy-weather-icon 2>/dev/null)
if [[ -n $icon ]]; then
icon=$(printf '%s' "$icon" | sed 's/["\\]/\\&/g')
printf '{"text":"%s"}\n' "$icon"
else
printf '{"text":"","class":"unavailable"}\n'
fi