What can you do about boredom? Obviously, there are times when you are stuck. If you are listening to a lecture that you cannot leave, then you just need to find a way to get through it. When you have some control, though, use your understanding of boredom to help you out. If you can, try to do a meditation exercise to lower your arousal level. Also, keep some music handy. Music you enjoy can crowd out distractions in the environment. It can also influence your mood in positive ways to counteract the pain of being bored.  

Lethargy is a state of tiredness, weariness, fatigue, or lack of energy. It can be accompanied by depression, decreased motivation, or apathy. Lethargy can be a normal response to boredom, inadequate sleep, overexertion, overworking, stress, lack of exercise, or a symptom of a disorder. When part of a normal response, lethargy often resolves with rest, adequate sleep, decreased stress, and good nutrition.[21][22]
Boredom is similar to mental fatigue and is caused by repetition and lack of interest in the details of our tasks (such as tasks that require continuous attention, waiting at the airport, prisoners locked in cells). Any experience that is predictable and repetitive becomes boring. In general, too much of the same thing and too little stimulation can cause in its victim an absence of desire and a feeling of entrapment (Toohey, 2012).    
These authors suggest that attention plays an important role in creating boredom. In particular, there are a few conditions that need to be met for people to feel bored. First, people need to have a reasonable level of psychological energy or arousal to feel bored. When people have low arousal and there is not much happening in the world, then they often feel relaxed. When they have high arousal, though, they have energy they would like to devote to something, but they cannot find anything engaging.
“Boredom – the psychological state that we experience whenever we are uninterested in what we are currently doing – is one of the defining traits of humanity. Time is the psychological nemesis of humankind. Tedium, a fundamental angst of humankind, arises from human beings’ ability to perceive time and our attempts to derive meaning from our personal existence.”
“I don’t like to be bored, but without it I couldn’t escape from it. Creativity is the byproduct of escapism.⁣⁣ Inventiveness is the byproduct of laziness.⁣⁣ Productivity is the byproduct of your mom.⁣⁣ Lol. Anyways. ⁣⁣The bored do weird stuff to not be bored.⁣⁣ The lazy invent things like cars so they don’t have to ride horses. ⁣⁣Get bored to get busy.”
Boredom is a condition characterized by perception of one's environment as dull, tedious, and lacking in stimulation. This can result from leisure and a lack of aesthetic interests. Labor and art may be alienated and passive, or immersed in tedium. There is an inherent anxiety in boredom; people will expend considerable effort to prevent or remedy it, yet in many circumstances, it is accepted as suffering to be endured. Common passive ways to escape boredom are to sleep or to think creative thoughts (daydream). Typical active solutions consist in an intentional activity of some sort, often something new, as familiarity and repetition lead to the tedious.
There’s no specific, medical treatment for boredom. However, there are tons of solutions if you’re experiencing boredom. For example, you may want to consider trying some new hobbies or other new diversional activities. Joining a club can be a good way to thwart your boredom. Reading clubs, hobby groups, or exercise groups are all great places to start. Joining a community group that organizes activities and outings is another good idea.