mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
14 lines
289 B
Bash
Executable File
14 lines
289 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Delay startup to allow network initialization after boot
|
|
sleep 5
|
|
|
|
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
|