Fuxx
This commit is contained in:
parent
8268fba83d
commit
7ed2a6e110
9565 changed files with 1315332 additions and 90 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