2020-07-06 11:35:39 +00:00
# Pomodoro Prompt
"What'd you do?" and "What're you gonna do?" dialog prompts that both pre-fill with whatever you put in for the last of either prompt at the end and start of every pomodoro work session, respectively.
2020-10-07 20:12:03 +00:00
## Requirements
2024-11-13 19:06:59 +00:00
### Anything other than NixOS
2020-10-07 20:12:03 +00:00
* Python 3
* [pip ](https://packaging.python.org/guides/installing-using-linux-tools/ ) for Python3
NOTE: Instructions are written with the assumption that the command `python` points to the python3 interpreter. If `python --version` reports a 2.x version, you should substitute `python3` in the commands using `python` below.
2024-11-13 19:06:59 +00:00
### NixOS
```
python
python311Packages.playsound
python311Packages.pycairo
python311Packages.pygobject3
python311Packages.pytz
python311Packages.tzlocal
```
(And skip the last two lines below, the pip install, as the above is the Nix way of doing that.)
2020-10-07 20:12:03 +00:00
2020-07-06 11:35:39 +00:00
## Installation
```
2024-11-13 19:06:59 +00:00
mkdir -p ~/Projects/agaric
cd ~/Projects/agaric/
git clone git@git.agaric.com:agaric/pomodoroprompt.git
2020-07-06 11:35:39 +00:00
cd pomodoroprompt
2020-10-07 18:47:58 +00:00
python -m pip install --user -r requirements.txt
2020-07-06 11:35:39 +00:00
```
## Usage
```
cd ~/Projects/agaric/pomodoroprompt/
2020-10-07 20:12:03 +00:00
python pomodoroprompt.py
2020-07-06 11:35:39 +00:00
```
See the `logs/` folder for daily, one-pomodoro-at-a-time time logs.
2020-07-06 16:29:20 +00:00
2021-05-25 02:04:39 +00:00
### For more convenient command prompt:
Create file ``~/.local/bin/pomodoroprompt` with contents:
```bash
#!/bin/bash
# Helper to call our pomodoro script. We actually skip the & so we can end it
# with ctrl+c
2024-11-13 19:06:59 +00:00
python ~/Projects/agaric/pomodoroprompt/pomodoroprompt.py
2021-05-25 02:04:39 +00:00
```
Now you can start it with `pomodoroprompt` on the command line from any directory.
2020-07-06 16:29:20 +00:00
## Desired improvements
Too many to write down. Suggest your own:
https://gitlab.com/agaric/pomodoroprompt/-/issues
## Troubleshooting
If you run `python pomodoroprompt.py` and get:
```
File "pomodoroprompt.py", line 85
print('\r', str_minutes(to_go), sep='', end='')
^
SyntaxError: invalid syntax
```
2020-10-07 20:12:03 +00:00
You need to specify Python 3: `python3 pomodoroprompt.py`