AlexanderDickie / auto-selfcontrol-rs

Schedule automatic activations of SelfControl
29 stars 0 forks source link

Schedule automatic activations of SelfControl, similar to andreasgrill/auto-selfcontrol.

Notes

Usage + how it works

The cli accepts 4 commands:

After altering the configuration file, re-deploy with --deploy to update.

The config file contains a path to the SelfControl app and a path to the LaunchAgents folder. Alter these if the paths in the example config file aren't accurate for your machine.

Installation

Intel Macs:

curl -s -O -L \
https://github.com/AlexanderDickie/auto-selfcontrol-rs/releases/download/v2/auto-selfcontrol-rs.x86_64-apple-darwin \ 
mv auto-selfcontrol-rs.x86_64-apple-darwin auto-selfcontrol-rs 

chmod +x auto-selfcontrol-rs

./auto-selfcontrol-rs --write_example_config

// now edit the config at ~/.config/auto-selfcontrol-rs/config.aoml to your liking

./auto-selfcontrol-rs --deploy

Apple Silicon Macs:

curl -s -O -L \
https://github.com/AlexanderDickie/auto-selfcontrol-rs/releases/download/v2/auto-selfcontrol-rs.aarch64-apple-darwin \ 
mv auto-selfcontrol-rs.aarch64-apple-darwin auto-selfcontrol-rs 

chmod +x auto-selfcontrol-rs

./auto-selfcontrol-rs --write_example_config

// now edit the config at ~/.config/auto-selfcontrol-rs/config.aoml to your liking

./auto-selfcontrol-rs --deploy

Or, cargo run/build etc.