https://github.com/avencera/blocksoon
Simple utility to start the SelfControl app after a countdown
https://github.com/avencera/blocksoon
selfcontrol
Last synced: 5 days ago
JSON representation
Simple utility to start the SelfControl app after a countdown
- Host: GitHub
- URL: https://github.com/avencera/blocksoon
- Owner: avencera
- Created: 2020-01-16T22:26:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T18:21:30.000Z (over 5 years ago)
- Last Synced: 2025-05-17T17:08:02.472Z (5 months ago)
- Topics: selfcontrol
- Language: Rust
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# BlockSoon
Simple macOS utility to start the [SelfControl](https://github.com/SelfControlApp/selfcontrol) app after a countdown.
Work in progress...
## Why?
When taking a break from work, I want to give my self a break for X number of minutes.
However, sometimes I'll get caught up and the break will last a lot longer than I intended.
This little utility solves that problem by automatically starting the SelfControl app after my break.
## Usage
Start SelfControl in 10 minutes:
- `blocksoon -m 10`
Start SelfControl in 30 seconds:
- `blocksoon -s 30`
Start SelfControl in 1 hour:
- `blocksoon -h 1`
Start SelfControl in 1 hour 10 minutes and 20 seconds:
- `blocksoon -h 1 -m10 -s 20`
## To Do
- [x] Add `clap` to parse duration argument `-m` for minutes, `-s` for seconds, `-h` for hours
- [x] Send notification when the block starts using [notify-rust](https://docs.rs/notify-rust/)
- [x] Check if block is already running, if it is running don't run again
- [ ] Reduce number of countdown logs for larger countdown times
- [ ] Add ability to run as a daemon not showing any logs