Try to find the cause of the condition, which is inflicting boredom. Maybe it depends on the weather (sad syndrome), the menstrual cycle, or low blood pressure. If you understand the reason behind your dull mood, knowing that it will pass after a specific period of time will help you counter it.
Get proper rest. The cause of boredom can be a basic lack of sleep, which can lead to a bad mood, irritability and lack of focus. Every person requires at least six hours of complete sleep or he/she may develop mental and physical stress etc.
Engage in some creative business. Write poetry, compose music, paint, knit, dance, cook, or sculpt according to your liking and preferences. The creative art or skill will help you get out of the boredom and will definitely please you after the completion of the project.
Connect with nature. The usual lack of oxygen and the indoor climate can affect you on a large scale. Walk in the fresh air especially after rainfall. Go for morning walks on a regular basis.
If you look at a broader picture, boredom occurs in your life when you think you have tried absolutely everything in the world which can bring joy to you. You need to shed off this mentality. This world is bright and beautiful; you only need to look around and see millions of different possibilities to get yourself happy. Open your eyes and try to realize that your life has a purpose. God has created us so that we may invent ways to live life in a unique way, while bringing joy to others as well.