“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.”
A 1989 study indicated that an individual's impression of boredom may be influenced by the individual's degree of attention, as a higher acoustic level of distraction from the environment correlated with higher reportings of boredom.[32] Boredom has been studied as being related to drug abuse among teens.[33] Boredom has been proposed as a cause of pathological gambling behavior. A study found results consistent with the hypothesis that pathological gamblers seek stimulation to avoid states of boredom and depression.[34] It has been suggested that boredom has an evolutionary basis that encourages humans to seek out new challenges. It may influence human learning and ingenuity.[35]

Boredom also has its benefits. It is important to see boredom as a “call to action” (Svendsen, 1999). Nietzsche suggested that men of rare sensibility value boredom as an impetus to achievement. Boredom can be a catalyst for action. It can provide an opportunity for thought and reflection. It can also be a sign that a task is a waste of time—and thus not worth continuing.

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).
“I asked myself whether a life devoid of any affection, of any goal, a life one fills with a thousand trifles intended to relieve its monotony, populated with human beings one seeks out in order not to be alone and whom one flees to avoid being bored by them, whether such a life isn't ridiculous, whether anything whatsoever wouldn't be preferable.”
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.
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.  
The French loanword ennui comes from the very same Late Latin word that gave us annoy — inodiare ("to make loathsome"). We borrowed ennui several centuries after absorbing annoy into the language. Ennui deals more with boredom than irritation - and a somewhat specific sort of boredom at that. It generally refers to the feeling of jadedness that can result from living a life of too much ease. The poet Charles Lloyd described it well in his 1823 Stanzas to Ennui when he referred to that world-weary sensation as a "soul-destroying fiend" which visits with its "pale unrest / The chambers of the human breast / Where too much happiness hath fixed its home."