Pomo.sh - Stupidly Simple Pomodoro on macOS
One day, I was busy at work and found myself working on a macOS
workstation that doesn’t have any pomodoro app. While looking for
apps online, an interesting idea came to mind: if I just lower
my requirements for a pomodoro app just for today, it shouldn’t
be that difficult to create a shell script that takes advantage of
sleep
and some applescript code that creates a notification
on macOS, the only thing I needed to look for was the proper
command. After a few minutes of distraction, I came up with this:
You can even make it slightly better by adding a timer. I’m currently using pv
,
which does a lot more than just measuring the time elapsed, but let’s get into it, shall we?
Copy this file as pomo.sh
, make it an executable with chmod +x pomo.sh
, and voila,
you now have a stupidly simple pomodoro timer!
I bet this can be done better but this is already a big win for such a short script!