Both. Everything is in the hands of Heaven besides the fear of Hashem which is up to us. Brochos 33b. Thus you get to control your circumstances to a certain extent by your ongoing thoughts.
Mishlei 4:23 - from your mind/heart come all the results of life.
Thus our mind is our most precious possession !
Your thoughts are the primary cause of everything that happens to you.
By choosing positive Mitzva thoughts you can trigger a chain reactions of benefits all over.
Now may be a good time for a gem of Torah study.
www.GemsofTorah.com