Here are some ways to stay focused:
Set clear and specific goals: Having a clear understanding of what you want to achieve can help you stay focused on the task at hand.
Prioritize your tasks: Make a list of the tasks you need to complete and prioritize them based on importance and deadline.
Eliminate distractions: Identify and eliminate any distractions that may be preventing you from staying focused, such as social media notifications, emails, or background noise.
Use the Pomodoro technique: The Pomodoro technique is a time management method that involves working for a set period of time (usually 25 minutes) followed by a short break.
Take regular breaks: Taking regular breaks can help to refresh your mind and prevent burnout.
Use mindfulness techniques: Mindfulness techniques such as meditation, deep breathing, and yoga can help you to stay focused and present in the moment.
Get enough sleep: Being well-rested can help to improve your focus and productivity.
Use apps and tools: There are a number of apps and tools available that can help you to stay focused, such as RescueTime, StayFocusd, and Freedom.
Practice self-discipline: Self-discipline is essential for staying focused and achieving your goals.
Lastly, be compassionate with yourself, don't be too hard on yourself if you lose focus, just acknowledge it and get back on track.