Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ffocus

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffocus

A CLI tool to temporarly disable distracting websites and boost your productivity

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

🔍 ffocus

A CLI tool to temporarly disable distracting websites and boost your productivity 👌

screen shot 2016-12-11 at 23 21 43

install

npm i ffocus -g

usage

ffocus adds temporary rules to /etc/hosts to resolve distracting websites to localhost.

Because of that you need sudo rights to run it but don't worry it doesn't do anything nasty.

~ $ ffocus

Usage: ffocus [minutes] [host1 host2 host3 ...]

Options:

  -h, --help                output usage information
  -a, --add <host>          adds a new host
  -r, --remove <host>       removes an existing host
  -t, --duration <minutes>  sets the duration for a preset
  -p, --preset <name>       a preset
  -l, --list                lists all the presets
  -V, --version             output the version number

basic usage

sudo ffocus 60 facebook.com twitter.com

presets

You can create as many preset as you want.

Each preset is stored in ~/ffocus.json and has a name, minutes, and a list of hosts to block.

{
  "presets": {
    "work": {
      "minutes": 60,
      "sites": [
        "facebook.com",
        "twitter.com"
      ]
    }
  }
}

When you --add a new preset ffocus creates an entry if it can't find an existing preset.

sudo ffocus -p work -a web.whatsapp.com
sudo ffocus -p work -t 30

and then run it

sudo ffocus -p work

troubleshooting

If ffocus doesn't work you:

  • are not on macos or unix
  • might need to flush your DNS cache
  • the browser caches too try to close it, go incognito or something
  • it is fucked up and buggy – very likely

license

MIT

Keywords

FAQs

Package last updated on 13 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc