tmux-kanagawa/sleep_weather.sh

21 lines
269 B
Bash
Raw Normal View History

#/usr/bin/env bash
#wrapper script for running weather on interval
main()
{
2020-03-15 20:41:10 +01:00
while true
do
2020-03-15 06:30:21 +01:00
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
2020-03-15 20:59:20 +01:00
if tmux has-session &> /dev/null
then
2020-03-15 20:41:10 +01:00
sleep 1000
else
break
fi
done
}
#run main driver function
main