tmux-kanagawa/sleep_weather.sh
Dane Williams 4b8413f359 bug fixes
2020-03-15 17:20:04 -07:00

21 lines
351 B
Bash
Executable file

#/usr/bin/env bash
#wrapper script for running weather on interval
main()
{
./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 1000
else
break
fi
done
}
#run main driver function
main