add weather widget to waybar

This commit is contained in:
2026-06-19 10:29:09 +02:00
parent 976d383968
commit 3eb2c829cd
4 changed files with 24 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
result=$(curl -sf --max-time 10 "wttr.in/?format=%c+%t")
if [ $? -eq 0 ] && [ -n "$result" ]; then
echo "$result"
else
echo "N/A"
fi