TomatoBar
TomatoBar copied to clipboard
Add automation to enable/disable a Focus
I'd like TomatoBar to enable the work focus when the timer starts, and turn it off when it ends. I looked into Automator for this, but I'm not familiar enough with its tooling to do this.
I'd take a look at this, but as far as I know macOS focus feature doesn't have a public API yet, nor it cannot be controlled from a sandboxed app.
Other apps seem to use a helper shortcut to do this: https://github.com/arodik/macos-focus-mode
That really would be a very helpful feature! So far I couldn't find any Pomodoro timer supporting this - although it should be possible, looking at the JS code linked.
Or wouldn't this be a viable approach because of the sandbox (I develop on macOS but I am not a macOS developer)?
Here's another example on how it could be done: https://lukado.medium.com/productivity-tip-pomodoro-donotdisturb-applescript-c8a069e92bb4