ultrafocus

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 5 Imported by: 0

README

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

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 ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL