add weather widget to waybar
This commit is contained in:
Executable
+7
@@ -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
|
||||
Reference in New Issue
Block a user