Shellcheck and tabindent all appscripts

This commit is contained in:
Miles Alan 2020-06-07 09:56:12 -05:00
parent e23f439b65
commit f9e580106e
5 changed files with 84 additions and 84 deletions

View file

@ -2,7 +2,7 @@
pidof svkbd-sxmo || svkbd-sxmo &
ZIP=$(
echo -e "
printf %b "
10025 - NYC
60007 - Chicago
94016 - San Francisco
@ -15,9 +15,9 @@ ZIP=$(
)
pkill svkbd-sxmo
LATLON=$(cat /usr/share/sxmo/zipcodes_for_weather.csv | grep "^$ZIP")
LAT=$(echo $LATLON | cut -d, -f2 | tr -d ' ')
LON=$(echo $LATLON | cut -d, -f3 | tr -d ' ')
LATLON="$(grep "^$ZIP" /usr/share/sxmo/zipcodes_for_weather.csv)"
LAT=$(echo "$LATLON" | cut -d, -f2 | tr -d ' ')
LON=$(echo "$LATLON" | cut -d, -f3 | tr -d ' ')
URL="https://forecast.weather.gov/MapClick.php?lat=${LAT}&lon=${LON}&unit=0&lg=english&FcstType=text&TextType=1"
st -f Monospace-20 -e w3m "$URL"