bug fixes
This commit is contained in:
parent
7db4bb7534
commit
4b8413f359
2 changed files with 5 additions and 4 deletions
|
@ -21,7 +21,7 @@ main()
|
||||||
yellow='#f1fa8c'
|
yellow='#f1fa8c'
|
||||||
|
|
||||||
# start weather script in background
|
# start weather script in background
|
||||||
#./sleep_weather.sh &
|
./sleep_weather.sh &
|
||||||
|
|
||||||
# set refresh interval
|
# set refresh interval
|
||||||
tmux set-option -g status-interval 5
|
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 "
|
tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${gray}] #I #W "
|
||||||
|
|
||||||
# run weather update script in background
|
# run weather update script in background
|
||||||
./sleep_weather.sh &
|
#./sleep_weather.sh &
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,12 +4,13 @@
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
while true
|
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||||
|
while tmux has-session &> /dev/null
|
||||||
do
|
do
|
||||||
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||||
if tmux has-session &> /dev/null
|
if tmux has-session &> /dev/null
|
||||||
then
|
then
|
||||||
sleep 15m
|
sleep 1000
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue