Skip to content

CLI tool to block distracting websites and boost productivity.

License

Notifications You must be signed in to change notification settings

plutov/ultrafocus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ultrafocus

Focus is key. Unlock your potential.

A dead simple CLI tool to block distracting websites and boost productivity. Customize your blacklist, focus on tasks, and reclaim your time.

Installation

Download the latest binary from the releases page or use go install:

go install github.com/plutov/ultrafocus@latest

Usage

ultrafocus needs sudo to modify /etc/hosts file. It won't affect your existing configuration, the changes made by ultrafocus are separated by #ultrafocus:start/end comments.

sudo ultrafocus

ultrafocus also runs a server on 127.0.0.1:80 where all the requests are redirected to. This page shows a random motivational message.

Supported platforms

  • macOS
  • Linux
  • Windows

Default blacklist

Social Media

  • facebook.com
  • instagram.com
  • twitter.com
  • tiktok.com
  • snapchat.com
  • pinterest.com
  • linkedin.com
  • reddit.com
  • imgur.com
  • youtube.com
  • whatsapp.com
  • telegram.org
  • discord.com

News

  • bbc.com
  • cnn.com
  • aljazeera.com
  • theguardian.com
  • nytimes.com
  • google.com/news
  • apple.news

Games

  • steampowered.com
  • origin.com
  • epicgames.com
  • battle.net
  • playstation.com
  • xbox.com
  • miniclip.com
  • armorgames.com
  • kongregate.com

Run tests

go test -v -race ./...

About

CLI tool to block distracting websites and boost productivity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages