tmux-kanagawa/sleep_weather.sh
2020-03-15 16:41:11 -07:00

20 lines
268 B
Bash
Executable file

#/usr/bin/env bash
#wrapper script for running weather on interval
main()
{
while true
do
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
if tmux has-session &> /dev/null
then
sleep 15m
else
break
fi
done
}
#run main driver function
main