Block is a simple, cross-platform command line interface to eliminate digital distractions.
The projects web site is https://try-block.fly.dev/
Get the latest release at https://github.com/connorkuljis/block/releases
To checkout the code use git clone https://github.com/connorkuljis/block-cli.git
Spend less time on the computer and more time in the sun.
make
, then run make install
to install it.
- note: ensure a Golang compiler is present on the machine.
- Open your
/etc/hosts
file
sudo vi /etc/hosts
- Paste an example blocklist
# --- social media
# 0.0.0.0 twitter.com
# 0.0.0.0 www.youtube.com
# 0.0.0.0 www.instagram.com
# 0.0.0.0 www.reddit.com
# 0.0.0.0 reddit.com
# 0.0.0.0 www.old.reddit.com
# 0.0.0.0 old.reddit.com
# 0.0.0.0 www.facebook.com
# ~ <-- important! lines below the (~) character mark the end of the blocklist
- To see the list of commands available, run
block --help
- run
ffmpeg -v
and ensure the installation is not corrupted or missing. - ensure system permissions are enabled to record your screen.
- a valid input device is configured in
config.yaml
- restart the terminal application
- open
.config/block-cli/config.yaml
Example:
# config.yaml
ffmpegRecordingsPath: /Volumes/WD_2TB/Screen-Recordings
avfoundationDevice: "1:0"