Inspired by this System Crafters post I am using org-timer-set-timer
for my pomodoro timing needs.
Of course one then would like to see the remaining time in the macOS menubar.
Further inspired by this blog post by Xiang who used bitbar for this purpose, I upgraded the solution to use the new xbar (successor to bitbar), and the built-in org-timer
instead of org-pomodoro
.
After installing xbar
(which I did with a cheeky brew install xbar
), create a file named org-timer.30s.sh
in the directory $HOME/Library/Application Support/xbar/plugins
with the following contents:
Remember to chmod +x
and then refresh your xbar.
See also fix emacs sound on macos which might be relevant to you.
Bonus: Show countdown immediately when timer starts
Due to the 30s refresh interval, it can take up to that long before you see the countdown update in the menubar.
If you start your pomodoro with the elisp below, it will immediately show the countdown update thanks to the xbar://
refresh call.
P.S. now I am tempted to add timer start / pause via xbar plugin menu items. Please stahp!
Do this on Linux using waybar
This post possibly helped to nerd-snipe my friend Stéfan, who then went and made a much nicer version of this for Linux!
Changelog
- 2025-01-08: Publish only the shell script part
- 2025-01-09: Add xbar refresh at startup, inspired by Stéfan’s post