lxtmux/sleep_weather.sh

21 lines
268 B
Bash
Raw Normal View History

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