Commit graph

158 commits

Author SHA1 Message Date
Sergio D. Márquez
8842bdf849 Add options to disable battery and network 2020-04-21 00:35:04 +02:00
Conor Murphy
da1845eb8a
Handling the 429 response limit error (#10)
* 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
2020-04-11 10:25:44 -07:00
Cam Spiers
01f6825ee0 [Feature] Provides ability to disable weather fetching and display
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.
2020-04-10 13:35:43 +12:00
Dane Williams
712a951942
Merge pull request #2 from ginglis13/linux-bat
battery: add support for linux
2020-04-07 22:26:39 -07:00
Gavin Inglis
b3614321da add support for linux network 2020-04-07 15:53:34 -04:00
Gavin Inglis
a1871106e9 add support for linux 2020-04-07 15:52:41 -04:00
Dane Williams
4d1383b522 slowed down refresh rate of weather 2020-03-31 12:13:42 -07:00
Dane Williams
b1df587d6e reorganized files 2020-03-15 23:15:26 -07:00