Created
October 27, 2022 21:41
-
Star
(287)
You must be signed in to star a gist -
Fork
(37)
You must be signed in to fork a gist
-
-
Save bashbunni/f6b04fc4703903a71ce9f70c58345106 to your computer and use it in GitHub Desktop.
CLI Pomodoro for Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'll be doing another one for Linux, but this one will give you | |
# a pop up notification and sound alert (using the built-in sounds for macOS) | |
# Requires https://github.com/caarlos0/timer to be installed | |
# Mac setup for pomo | |
alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
-title 'Work Timer is up! Take a Break π'\ | |
-appIcon '~/Pictures/pumpkin.png'\ | |
-sound Crystal" | |
alias rest="timer 10m && terminal-notifier -message 'Pomodoro'\ | |
-title 'Break is over! Get back to work π¬'\ | |
-appIcon '~/Pictures/pumpkin.png'\ | |
-sound Crystal" |
Nice setup! I built a Go CLI tool inspired by this approach - handles notifications and timing with a simple config file:
https://github.com/Bahaaio/pomo
you can do:
pomo
(work session)pomo 15m
(custom duration)pomo break
Is cross-platform (Linux, macOS, Windows).
Includes pause/resume, add/subtract time, and reset functionality.
example notification config:
notification:
enabled: true
title: work finished π
message: time to take a break
icon: ~/my/icon.png
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for those who want to use this on windows here is a workaround you can add the following code to your powershell profile
Requires https://github.com/caarlos0/timer to be installed