should work now

This commit is contained in:
Dane Williams 2020-03-15 10:32:59 -07:00
parent 293ce01383
commit 6a1277726a
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,6 @@ main()
# run scripts in background
./sleep_weather.sh &
#./internet.sh > internet.txt &
# status bar
tmux set-option -g status-style "bg=${gray},fg=${white}"

View file

@ -4,10 +4,11 @@
main()
{
echo "Loading Weather..." > ~/.tmux/plugins/tmux-dracula/weather.txt
while tmux has-session &> /dev/null
do
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
if [ (cat ~/.tmux/plugins/tmux-dracula/weather.txt | tail -1) = } ]; then
if [ (cat ~/.tmux/plugins/tmux-dracula/weather.txt | sed -n 2p) =~ ' "error": {' ]; then
echo "Too Many Requests" > ~/.tmux/plugins/tmux-dracula/weather.txt
break
fi