Pomodoro
Description #
The Pomodoro widget displays a focus and rest countdown directly in the bar.
A focus phase is followed by a rest phase, and a long rest replaces the rest after a given number of focus sessions. The pill is displayed in red during a focus phase, in green during a rest and in magenta during a long rest, and the elapsed part of the phase fills the pill as time goes by. When paused, the pill keeps its phase color and the countdown is dimmed.
It does not require any extra dependency. The sound played at the end of a phase is the alert sound selected in your macOS settings.
Interactions #
Clicking the widget starts, pauses or resumes the countdown. Right clicking it opens an action strip inside the bar from which you can pause/resume, restart the current phase, skip to the next phase or reset the whole session. Middle clicking it or clicking it while holding cmd skips to the next phase.
A skipped focus phase is not counted as a completed session.
Available settings #
You can set the following Pomodoro widget settings in the simple-bar settings:
Focus duration (minutes): The duration of a focus phase in minutes. Default is 25.Rest duration (minutes): The duration of a rest phase in minutes. Default is 5.Long rest after (focus sessions): The number of completed focus sessions before a long rest. Set it to 0 to disable long rests. Default is 4.Long rest duration (minutes): The duration of a long rest in minutes. Default is 15.Auto-start the next phase: Automatically start the next phase when the current one ends. If disabled, the next phase waits for a click. Default is true.Play a sound: Play a sound when a phase ends. Default is true.Show a notification: Show a notification when a phase ends. It follows the notification settings set in the global settings. Default is false.Show the phase label: Show the name of the current phase next to the countdown. Default is false.Show completed sessions as dots: Show a dot for each focus session of the current set, completed ones being highlighted. Default is false.Show icon: Show or hide the icon. Default is true.Show on display: The displays on which the widget will be displayed. Add a list of indexes (for example: "1,2"). Leave blank to display the widget on every spaces. Default is "".Refresh frequency: The refresh frequency of the countdown in milliseconds. Default is 1000 (1 second).
Durations are limited between 1 and 180 minutes and long rests can be set after up to 12 focus sessions.
If you enabled the
No color in dataoption, you may want to enable bothShow the phase labelandShow completed sessions as dotsas the pill won't change its color between phases.
The running session is kept between simple-bar refreshes so switching spaces does not restart it. A session left for more than one whole phase starts over.
This widget was added thanks to @amanongithub7