"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.
Find a file
Chris (wolcen) Thompson 5c111e96f1 Add ability to use w/out GUI (via --no-gui)
And ring the console bell w/--noisy
2024-11-18 21:39:33 -05:00
log Add log folder and a README to keep it 2020-07-06 07:15:04 -04:00
.gitignore Ignore our log archive too, not sure how it 2024-06-21 16:02:51 -04:00
pomodoroprompt.py Add ability to use w/out GUI (via --no-gui) 2024-11-18 21:39:33 -05:00
prompt_window.py Add crucial destroy() otherwise window stays there, nonresponsive, until script killed 2021-05-02 15:09:19 -04:00
README.md Add cd to directory for alias 2024-11-14 10:38:53 -05:00
requirements.txt Drop zenipy from requirements 2021-05-03 23:11:22 -04:00
shell.nix Make nix do things 2024-11-13 20:52:15 -05: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.

Requirements

Anything other than NixOS

  • Python 3
  • pip 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.

NixOS

nix-shell
python pomodoroprompt.py

...or:
alias pom="cd {pomodoroprompt-directory-here} && nix-shell --command 'python pomodoroprompt.py'

You need not install Python (and it is not recommended). Should you insist, this may be correct:

python
python311Packages.playsound
python311Packages.pycairo
python311Packages.pygobject3
python311Packages.pytz
python311Packages.tzlocal
wrapGAppsHook
gobject-introspection

(And skip the last two lines below, the pip install, as the above is the Nix way of doing that.)

Installation

mkdir -p ~/Projects/agaric
cd ~/Projects/agaric/
git clone git@git.agaric.com:agaric/pomodoroprompt.git
cd pomodoroprompt
python -m pip install --user -r requirements.txt

Usage

cd ~/Projects/agaric/pomodoroprompt/
python pomodoroprompt.py

See the logs/ folder for daily, one-pomodoro-at-a-time time logs.

For more convenient command prompt:

Create file ``~/.local/bin/pomodoroprompt` with contents:

#!/bin/bash

# Helper to call our pomodoro script.  We actually skip the & so we can end it
# with ctrl+c

python ~/Projects/agaric/pomodoroprompt/pomodoroprompt.py

Now you can start it with pomodoroprompt on the command line from any directory.

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

You need to specify Python 3: python3 pomodoroprompt.py