I'm easily distracted by browsers, especially in the mornings when I need to be productive. Is there a Linux application that can block all internet access for a specific time frame? For example, can it disable Wi-Fi from 6 AM to 10 AM?
5 Answers
No need for an app, standard commands in Linux can do the trick! You could use the 'ifdown' and 'ifup' commands based on the time of day. You can also set up scripts that run at startup to handle this. Just make sure to adjust your cron jobs to match your schedule!
You can actually handle this pretty simply with built-in tools! If your computer will be on for the full time, consider setting up a cron job that uses the "rfkill" command to disable Wi-Fi at the start and enable it again later. If your computer isn't always on, you could set it to check every 10 minutes instead. There are also parental control apps, but I haven't needed one myself, so I can't recommend any specific ones.
If the internet is what's making you unproductive, sometimes it’s best to just log off for a bit. Taking a break really helps!
If distractions are the big issue, why not try changing your screen to grayscale? It really dulls the appeal and you might find yourself getting bored of it pretty quickly.
You might just consider a simple bash script that checks the time and disables the network every hour if you prefer that route. It’s straightforward!

That's a clever idea! I've heard that some people just can't help but check their phones, too.