andreasgrill / auto-selfcontrol

Small utility to schedule start and stop times of SelfControl
MIT License
305 stars 37 forks source link

Features: Easier input of schedule & Allows blacklist to be loaded from text file #44

Open shivgodhia opened 4 years ago

shivgodhia commented 4 years ago

Hi, I made a simple but useful change to the code.

Schedule Input Now, in config.json for scheduling, instead of just writing a number for the day, such as 1 or 3 for Monday and Wednesday respectively, you have more options:

It still supports the earlier way of using the integer representation of the day, as well as letting the value be None (which will be all 7 days of the week).

Blacklist import Now you can also import a blacklist from a text file or a few text files so it is easier to fill in the config.json and even create separate blacklist categories to be toggled on and off.

andreasgrill commented 4 years ago

Thanks for your commits, I like the idea of simplifying the configuration! Due to the latest changes to support SelfControl 3 there are now merge conflicts. If you'd resolve them, I'll merge your changes; or I could integrate them when I have time. Just let me know if you want me to resolve them.

shivgodhia commented 4 years ago

Thanks for your commits, I like the idea of simplifying the configuration! Due to the latest changes to support SelfControl 3 there are now merge conflicts. If you'd resolve them, I'll merge your changes; or I could integrate them when I have time. Just let me know if you want me to resolve them.

You're welcome! I have resolved the changes and it should work now, though I must admit I don't use Self Control anymore so I didn't manage to test it.