should work now
This commit is contained in:
parent
293ce01383
commit
6a1277726a
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,6 @@ main()
|
|||
|
||||
# run scripts in background
|
||||
./sleep_weather.sh &
|
||||
#./internet.sh > internet.txt &
|
||||
|
||||
# status bar
|
||||
tmux set-option -g status-style "bg=${gray},fg=${white}"
|
||||
|
|
|
@ -4,10 +4,11 @@
|
|||
|
||||
main()
|
||||
{
|
||||
echo "Loading Weather..." > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||
while tmux has-session &> /dev/null
|
||||
do
|
||||
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||
if [ (cat ~/.tmux/plugins/tmux-dracula/weather.txt | tail -1) = } ]; then
|
||||
if [ (cat ~/.tmux/plugins/tmux-dracula/weather.txt | sed -n 2p) =~ ' "error": {' ]; then
|
||||
echo "Too Many Requests" > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||
break
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue