For me and my sons, mindlessly checking stuff while bored was rooted in health issues. In other words, we were both bored and too ill for something more challenging than passive entertainment. Working on underlying health issues did a lot to change that. Old habits return when we are somewhat under the weather but it isn't a big issue like it once was.
I happen to have cystic fibrosis, as does my oldest son. I am real sensitive to dust, chemicals, etc. Having spent some time on alternative med sites, I have come to believe that allergens, chemicals and the like leave a lot more people in a mental fog than most people would think.
Best of luck.