yes your brain's chemical state depends on how urgently you need to accomplish something, if anything
so if you have nothing to achieve you will feel bored and go to sleep
if something is very important you will stay up for days unable to sleep
avoiding large, high-carb meals, avoiding social media and entertainment, retaining semen - all this creates a chemical state of mind consistent with urgency, which could possibly be channeled towards some productive work ...
and vice versa binge eating, binge social media browsing and gooning creates a chemical state of mind consistent with complacency, such that nothing can be accomplished ...
social media detox is therefore sometimes called "dopamine fasting" with effect similar to semen retention ... i have experimented with it with some success ...
but i will never experiment with semen retention - i would not risk causing some kind of injury to my balls / prostate from disuse ...