New Setup 📦
This commit is contained in:
parent
d16174b447
commit
415dbd08a1
10194 changed files with 1368647 additions and 4 deletions
9
home/.config/awesome/signals/weather_script.sh
Executable file
9
home/.config/awesome/signals/weather_script.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
# This script is used to find weather
|
||||
city=$1
|
||||
weather=$(curl -sf "wttr.in/$city?format='%C:%f'")
|
||||
if [[ ! -z $weather ]]; then
|
||||
echo $weather
|
||||
else
|
||||
echo "Weather unavailable"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue