From 4b8413f359dcece5cd2c5ecbf08e49d0ac78c9be Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 15 Mar 2020 17:20:04 -0700 Subject: [PATCH] bug fixes --- dracula.tmux | 4 ++-- sleep_weather.sh | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dracula.tmux b/dracula.tmux index a29bb44..9f163b6 100755 --- a/dracula.tmux +++ b/dracula.tmux @@ -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 & } diff --git a/sleep_weather.sh b/sleep_weather.sh index 1812147..398fc70 100755 --- a/sleep_weather.sh +++ b/sleep_weather.sh @@ -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