study_blocker

Crates.iostudy_blocker
lib.rsstudy_blocker
version0.2.2
sourcesrc
created_at2022-12-28 22:41:40.856577
updated_at2023-01-03 20:06:58.693442
descriptionA simple study blocker application
homepage
repository
max_upload_size
id747018
size61,175
HgCl2 (MercuricChloride)

documentation

README

Study Blocker 🙇‍♂️🚫

Built by @blind_nabler

An application designed to block distracting websites to allow you to do your best work.

I built this as a side project because I love working with rust. But I am also building this for my friends that use linux and want a simple GUI tool to manage what sites are blocked and for how long. I used to use SelfControl but it is only available for MacOS, but since I built this with rust and egui this is no longer an issue.

How to use

To use this application, you must launch it as root as we are modifying the /etc/hosts file. This is the easiest way to work around the permissions here, maybe there is some other method I am missing such as the $HOSTALIASES env variable we could set, however this appears to not work on everything and doesn't work on macOS from my personal experiences.

After you launch it, simply create a new line with the address of each site you want to block and for how long.

Commit count: 0

cargo fmt