mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-02 04:37:49 +02:00
* 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
11 lines
221 B
Bash
Executable File
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
|