lxtmux/sleep_weather.sh

20 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:41:10 +00:00
if tmux has-session &> /dev/null; then
sleep 1000
else
break
fi
done
}
#run main driver function
main