# simple pomodoro script

**URL:** <https://forum.beeminder.com/t/simple-pomodoro-script/6592>\
**Category:** Tech\
**Created:** [April 18, 2020, 10:21pm UTC](https://forum.beeminder.com/t/simple-pomodoro-script/6592 "2020-04-18T22:21:51Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![phi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/phi/32/2586_2.png) [@phi](https://forum.beeminder.com/u/phi)\
**Post date:** [April 19, 2020, 2:05pm UTC](https://forum.beeminder.com/t/simple-pomodoro-script/6592/3 "2020-04-19T14:05:50Z")

</div>

Nice! I like some command line beeminder goodness! May I suggest putting the config file not directly in the user’s home? The [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) has recommendations as to where to put things like this.

Examples can be found in this SO answer:

> <https://stackoverflow.com/questions/1024114/location-of-ini-config-files-in-linux-unix/1024339#1024339>

Also for macOS I think it is a good idea to store the `auth_token` in keychain:

> [@Common place to store the Beeminder auth\_token locally](https://forum.beeminder.com/t/common-place-to-store-the-beeminder-auth-token-locally/6019):
>
> I propose the following keychain entry for macOS: security add-generic-password \ -l 'auth\_token' \ -a 'your beeminder username' \ -s 'www.beeminder.com' \ -j 'auth\_token for use of the Beeminder API' \ # https://www.beeminder.com/api/v1/auth\_token.json -w 'here\_goes\_your\_auth\_token' \ -U to be retrieved again with: security find-generic-password \ -l 'auth\_token' \ -a 'your beeminder username' \ -s 'www.beeminder.com' \ -w which will write it to stdout.

---

_[View the full topic](https://forum.beeminder.com/t/simple-pomodoro-script/6592)._
