Skip to content

A simple tool to block social media so that I can focus and stop brain-rotting while studying. Works on linux

Notifications You must be signed in to change notification settings

OmarGamal10/just-study

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Just study

  • Operates at the Kernel Network Layer, making it impossible to bypass without a sudo study off.

Requirements

  • OS: Linux
  • Dependencies: go, iproute2 (provides the ss command), systemd-resolved.

Installation

Clone & install:

sudo ./install.sh

Why Sudo?

  • Modifying /etc/hosts requires root privileges.
  • Killing TCP connections at the kernel level (ss -K dst [ip]) also requires elevated permissions.
  • Installing as a system command requires root access. (moving to /usr/local/bin)

Usage

# Block all distractions & kill active sessions
  sudo study on

# Restore access
  sudo study off

# Check current status
  sudo study status

Note

  • I should make it configurable through add command but im lazy just modify the code directly :D

About

A simple tool to block social media so that I can focus and stop brain-rotting while studying. Works on linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published