SelfControlApp / selfcontrol

:skull: Mac app to block your own access to distracting websites etc for a predetermined period of time. It can not be undone by the app or by a restart – you must wait for the timer to run out.
http://selfcontrolapp.com
GNU General Public License v3.0
4.04k stars 399 forks source link

[enhancement] Give the option of more than 24 hr lockdown #494

Open ghost opened 6 years ago

ghost commented 6 years ago

A week or a month and/or some kind of auto renewal maybe with some kind of panic button provision in the unlikely event you really need something...

Maybe there's a 10 minute window ever 12 hrs when you can get in or something

I like that you can add sites to the blacklist while it is on.

Exporting the list during lockdown would be handy to be able to add it to other filters...

stuwillis commented 6 years ago

There are plenty of ways to achieve this.

On my work machine, I have a simple shell script that triggers SelfControl in 4 hour blocks. I use a launchd plist to trigger it at 9am and at 2pm. (So from 1pm-2pm its unblocked).

I used plisterine to set up the launchd agent — https://itunes.apple.com/us/app/plisterine-launchd-for-the-rest-of-us/id634210019?mt=12 - but you don't need it to edit a plist file.

You could achieve the same thing with an applescript but I haven't had much success with keychain scripting.

Or you could use this: https://github.com/andreasgrill/auto-selfcontrol

ghost commented 6 years ago

Thanks for these options and the quick response.

I am an otherwise proficient user of computers but even this little bit of under the hood stuff is not within my scope; I’ve heard these words before and can sort of guess what they mean but don’t know …and don’t have the bandwidth to learn this new realm, being already over my capacity of existing skills to maintain.

Rather than plead with you to explain to me in idiot-proof step by step, or spend hours to puzzle this out myself, could I contribute (modestly, hopefully since that fits my means) to your tip jar for writing a “scheduled lockdown” option that would be easily available to all?

Could be of the form:

M. Start stop, start stop... Tu W Th F Sa Su

On Mar 18, 2018, at 9:02 PM, stuwillis notifications@github.com wrote:

There are plenty of ways to achieve this.

On my work machine, I have a simple shell script that triggers SelfControl in 4 hour blocks. I use a launchd plist to trigger it at 9am and at 2pm. (So from 1pm-2pm its unblocked).

I used plisterine to set up the launchd agent — https://itunes.apple.com/us/app/plisterine-launchd-for-the-rest-of-us/id634210019?mt=12 https://itunes.apple.com/us/app/plisterine-launchd-for-the-rest-of-us/id634210019?mt=12 - but you don't need it to edit a plist file.

You could achieve the same thing with an applescript but I haven't had much success with keychain scripting.

Or you could use this: https://github.com/andreasgrill/auto-selfcontrol https://github.com/andreasgrill/auto-selfcontrol — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SelfControlApp/selfcontrol/issues/494#issuecomment-374095279, or mute the thread https://github.com/notifications/unsubscribe-auth/AjyYlLhZHR-WQ0rLg9MemvmQdMWAY00uks5tfy3VgaJpZM4Svj0u.

sbibauw commented 6 years ago

@screenaddict Have you tried stuwillis suggestion to use Auto-SelfControl (https://github.com/andreasgrill/auto-selfcontrol)? You can follow installation instructions (see the Github page) to set up SelfControl to work every day at a certain time (or 24/7 if you want that). It does not require any programming skills, just the ability to modify a json file (even if you don"t know it yet, it is really straightforward). And the installation instructions are detailed step by step.

ghost commented 6 years ago

Serge,

Thanks for thinking of me…this seems very technical. Anything that involves more than one line in terminal kind of makes my eyes roll backwards in my head. Maybe my son can figure this out.

I thought of a (potentially) even simpler enhancement in self control itself: add the ability to “re-up” the blocking before the original blocking runs out.

On Mar 24, 2018, at 1:20 PM, Serge Bibauw notifications@github.com wrote:

@screenaddict https://github.com/screenaddict Have you tried stuwillis suggestion to use Auto-SelfControl (https://github.com/andreasgrill/auto-selfcontrol https://github.com/andreasgrill/auto-selfcontrol)? You can follow installation instructions (see the Github page) and edit the configuration file to set up SelfControl to work every day at a certain time (or 24/7 if you want that).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SelfControlApp/selfcontrol/issues/494#issuecomment-375922044, or mute the thread https://github.com/notifications/unsubscribe-auth/AjyYlOP1QWdLoDZqnUII-DF_MHmen0_oks5thqqSgaJpZM4Svj0u.

keeprock commented 5 years ago

On Mac do this:

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