- Use a list of hosts: google.com, github.com, example.com
- Script will try each in turn, stopping at the first one that connects
- Also fix she-bang and some quotes
- Tested with Wifi and Offline.
* switching over
* should just be a little schemeski
* changed exit to exit_codes idk if that matters
* yuh
* yuh
* yuh
* yuh
* wtf
* yuh
* trying out new format
* trying out new format
* trying out new format
* trying out new format
* trying out new format
* so annoying having to push every time you test
* so annoying having to push every time you test
* this might actually work now
* this might actually work now
* this might actually work now
* yeet
* yeet
* wtf
* wtf
* wtf
* bet
* final edit for handling request limit reached on weather
* possibly functional error checking method
* did we do it
* properly utilizing global variables
Personally, displying the weather doesn't have a lot of use for me
but additionally I ran into an issue where the API you are using
ratelimited call from my IP address, I guess because it was
overfetching.
This doesn't fix the ratelimited issue, but instead at least gives
people the ability to turn the feature off.
Test Plan:
In `~/.tmux.conf` set the following:
```
set -g @plugin 'tmux-plugins/tpm'
set -g @dracula-show-weather false
set -g @plugin 'camspiers/tmux'
run -b '~/.local/share/tmux/plugins/tpm/tpm'
```
Ensure that weather module no longer loads.
In `~/.tmux.conf` set the following:
```
set -g @plugin 'tmux-plugins/tpm'
set -g @dracula-show-weather true
set -g @plugin 'camspiers/tmux'
run -b '~/.local/share/tmux/plugins/tpm/tpm'
```
Ensure that weather module does stil load.