As someone with depression and anxiety, breaking work into little chunks helps me stay motivated. It also works with exercise, in my experience.
I use this to stay motivated to workout regularly. Exercised virtually daily, spending hours in the gym each week.
I recommend accountability or workout mates for extroverts or folks who appreciate others. In some cases, skipping a workout is easier than disappointing a friend.
SJ Scott, author of "Habit Stacking: 127 Small Changes to Improve Your Health, Wealth, and Happiness", created this concept.
Despite my want to watch "Insecure" on my couch, I always listen to podcasts on walks to get and stay active.
If you can afford it, paying for an instructor to lead a group workout may drive you to exercise.
Exercise is good wherever you do it. However, evidence suggests that nature can improve health and fitness.