“When I have neither pleasure nor pain and have been breathing for a while the lukewarm insipid air of these so called good and tolerable days, I feel so bad in my childish soul that I smash my moldering lyre of thanksgiving in the face of the slumbering god of contentment and would rather feel the very devil burn in me than this warmth of a well-heated room. A wild longing for strong emotions and sensations seethes in me, a rage against this toneless, flat, normal and sterile life. I have a mad impulse to smash something, a warehouse, perhaps, or a cathedral, or myself, to commit outrages, to pull off the wigs of a few revered idols...”
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.  
Although it has not been widely studied, research on boredom suggests that boredom is a major factor impacting diverse areas of a person's life. People ranked low on a boredom-proneness scale were found to have better performance in a wide variety of aspects of their lives, including career, education, and autonomy.[30] Boredom can be a symptom of clinical depression. Boredom can be a form of learned helplessness, a phenomenon closely related to depression. Some philosophies of parenting propose that if children are raised in an environment devoid of stimuli, and are not allowed or encouraged to interact with their environment, they will fail to develop the mental capacities to do so.
The most common way to define boredom in Western culture is having nothing to do. Boredom is generally viewed as an unpleasant emotional state in which the individual feels a pervasive lack of interest in and difficulty concentrating on the current activity. The condition corresponds more precisely to the French ennui, an existential perception of life’s futility. Ennui is a consequence of unfulfilled aspirations (Goodstein, 2005).
Some individuals are more likely to be bored than others. People with a strong need for novelty, excitement, and variety are at risk of boredom. These sensation seekers (e.g., skydivers) are likely to find that the world moves too slowly. The need for external stimulation may explain why extroverts tend to be particularly prone to boredom. Novelty seeking and risk-taking is the way that these people self-medicate to cure their boredom. 
Absent-mindedness is where a person shows inattentive or forgetful behaviour.[20] Absent-mindedness is a mental condition in which the subject experiences low levels of attention and frequent distraction. Absent-mindedness is not a diagnosed condition but rather a symptom of boredom and sleepiness which people experience in their daily lives. When suffering from absent-mindedness, people tend to show signs of memory lapse and weak recollection of recently occurring events. This can usually be a result of a variety of other conditions often diagnosed by clinicians such as attention deficit hyperactivity disorder and depression. In addition to absent-mindedness leading to an array of consequences affecting daily life, it can have as more severe, long-term problems.
The authors of this paper point to an interesting study by Robin Damrad-Frye and James Laird in the August 1989 issue of the Journal of Personality and Social Psychology. In this study, participants had to listen to a tape of a person reading a Psychology Today article. In the next room, there was a television soundtrack from a soap opera playing. For some groups listening to the article, the TV was very loud and distracting, for others it was barely noticeable, and for some it was not playing at all. After listening to the article, people rated their boredom during the study. 
Erich Fromm and other thinkers of critical theory speak of boredom as a common psychological response to industrial society, where people are required to engage in alienated labor. According to Fromm, boredom is "perhaps the most important source of aggression and destructiveness today." For Fromm, the search for thrills and novelty that characterizes consumer culture are not solutions to boredom, but mere distractions from boredom which, he argues, continues unconsciously.[29] Above and beyond taste and character, the universal case of boredom consists in any instance of waiting, as Heidegger noted, such as in line, for someone else to arrive or finish a task, or while one is travelling somewhere. The automobile requires fast reflexes, making its operator busy and hence, perhaps for other reasons as well, making the ride more tedious despite being over sooner.
The bored antihero became prominent in early 20th century existentialist works such as Franz Kafka's The Metamorphosis (1915),[43] Jean-Paul Sartre's La Nausée (1938) (French for 'Nausea'),[44] and Albert Camus' L'Étranger (1942) (French for 'The Stranger').[45] The protagonist in these works is an indecisive central character who drifts through his life and is marked by ennui, angst, and alienation.[46]
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.