20 lines
268 B
Bash
Executable file
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
|