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]

“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.”

Flow is a state of total immersion in a task that is challenging yet closely matched to one’s abilities, akin to “being in the zone.” Flow occurs when a person’s skills match the level of challenge presented by the environment and when a task includes clear goals and immediate feedback. Tasks that are too easy are boring. In contrast, tasks that people perceive to be too difficult lead to anxiety.
^ Vodanovich, Stephen J. (November 2003) "Psychometric Measures of Boredom: A Review of the Literature" The Journal of Psychology. 137:6 p. 569 "Indeed, a shortcoming of the boredom literature is the absence of a coherent, universally accepted definition. The lack of an agreed-upon definition of boredom has limited the measurement of the construct and partly accounts for the existence of diverse approaches to assessing various subsets of boredom."
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).    
“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...”
There was also a piano, well littered with music, a sewing bag thrown down upon a cretonned window seat, and the generous fireplace was flanked by two huge baskets, one heaped with magazines, the other a perfectly round mound of yellow fur, which suddenly took form and life as a yellow tabby cat fastened hopeful topaz eyes upon them, blinked away a brief disappointment, and then yawned with ennui.