andreasgrill / auto-selfcontrol

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

Need to restart computer for the block to occur the next day #54

Open yogurtsake opened 4 years ago

yogurtsake commented 4 years ago

Hi, so I set my schedule to be activated at 12:05 am to 11:59pm. When I run auto-selfcontrol activate, it runs for the whole day but is no longer active the next day. It is only active when when I restart my computer, which is expected behavior because the script is in LaunchDaemons. However, I cannot get it to block consecutive days...

FYI: I installed using homebrew and have the latest version of both SelfControl and auto-selfcontrol. Here is my config:

"block-schedules":[
    {
        "weekday": 1,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    },
    {
        "weekday": 2,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    },
    {
        "weekday": 3,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    },
    {
        "weekday": 4,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    },
    {
        "weekday": 5,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    },
    {
        "weekday": 6,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    },
    {
        "weekday": 7,
        "start-hour": 0,
        "start-minute": 5,
        "end-hour": 23,
        "end-minute": 59
    }
]
LukeTully commented 3 years ago

@yogurtsake Did you ever find a resolution to this? @andreasgrill Would I be able to attempt to work on this issue without understanding how SelfControl itself works or how to mitigate it? Might seem like a strange question, but I'm hesitant to learn how to bypass the app that helps me quite a bit. Alternatively, do you know of a way to get this working?