bug fixes

This commit is contained in:
Dane Williams 2020-03-15 17:20:04 -07:00
parent 7db4bb7534
commit 4b8413f359
2 changed files with 5 additions and 4 deletions

View File

@ -21,7 +21,7 @@ main()
yellow='#f1fa8c'
# start weather script in background
#./sleep_weather.sh &
./sleep_weather.sh &
# set refresh interval
tmux set-option -g status-interval 5
@ -55,7 +55,7 @@ main()
tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${gray}] #I #W "
# run weather update script in background
./sleep_weather.sh &
#./sleep_weather.sh &
}

View File

@ -4,12 +4,13 @@
main()
{
while true
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
while tmux has-session &> /dev/null
do
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
if tmux has-session &> /dev/null
then
sleep 15m
sleep 1000
else
break
fi