Skip to content

Instantly share code, notes, and snippets.

@gschema
Last active October 5, 2022 08:05
Show Gist options
  • Save gschema/16bc1e77833dfe06e63b81256473fe72 to your computer and use it in GitHub Desktop.
Save gschema/16bc1e77833dfe06e63b81256473fe72 to your computer and use it in GitHub Desktop.
How to adjust SelfControl app maximum block time and interval on the sliders

How to adjust SelfControl app maximum block time and interval on the sliders

Read this closely. If you do it wrong, SelfControl will not launch.

To adjust the maximum block time and interval on the sliders, just open Terminal.app in Applications --> Utilities, then enter the following two commands (substituting the words in brackets with numbers). Press enter after each line:

defaults write org.eyebeam.SelfControl MaxBlockLength -int [maximum block length in minutes]
defaults write org.eyebeam.SelfControl BlockLengthInterval -int [block length interval in minutes]

So, for example, to change it to a month-long maximum block with intervals at each day, you could use:

defaults write org.eyebeam.SelfControl MaxBlockLength -int 43200
defaults write org.eyebeam.SelfControl BlockLengthInterval -int 1440

If you mess something up, use this Terminal command (while SelfControl is closed) to reset these settings:

defaults delete org.eyebeam.SelfControl

Hat tip to @ghost: Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment