Allow customization of zipcodes menu for sxmo_weather.sh via $SXMO_WEATHERZIPS

master
Miles Alan 5 years ago
parent a804e24721
commit ff9ddcb634
  1. 11
      scripts/appscripts/sxmo_weather.sh

@ -1,13 +1,14 @@
#!/usr/bin/env sh #!/usr/bin/env sh
[ -z "$SXMO_WEATHERZIPS" ] && SXMO_WEATHERZIPS="
pidof svkbd-sxmo || svkbd-sxmo &
ZIP=$(
printf %b "
10025 - NYC 10025 - NYC
60007 - Chicago 60007 - Chicago
94016 - San Francisco 94016 - San Francisco
97035 - Portland, OR 97035 - Portland, OR
" | "
pidof svkbd-sxmo || svkbd-sxmo &
ZIP=$(
printf %b "$SXMO_WEATHER_ZIPS" |
awk 'NF' | awk 'NF' |
awk '{$1=$1};1' | awk '{$1=$1};1' |
dmenu -fn Terminus-20 -i -c -l 10 -p "US Zipcode" | dmenu -fn Terminus-20 -i -c -l 10 -p "US Zipcode" |

Loading…
Cancel
Save