A minimalistic terminal based countdown timer which uses intervals [focus | break] to help work efficiently. The program was developed and tested on Windows.
The headline switches between Focus Time
and Break Time
. Furthermore the intervals get displayed as n/N
.
The foreground and background colors are determined by the color set for black [background] and white [foreground] in the terminal/shell.
The program is supposed to be minimalistic and fast. Therefore it may be rewritten in C in the future. Moreover it is meant for the terminal and does not need a GUI.
- basic features (pause, reset, continue timer)
- update the screen if window was resized (should work automatically but just in case one can do it manually)
- STILL TRY TO NOT RESIZE THE WINDOW WHILE IT'S EXECUTING, AS IT WON'T ALWAYS WORK AND MAY CAUSE PROBLEMS
- support for own alert sounds
To add your own sound change line 169. It now only works with .wav
files, but if your file isn't of that type just convert it online or with e.g. pydub. The default file is sound.wav
.
file = "sound.wav" # needs to be a .wav file
Otherwise you could also just add your file to the directory and name it sound.wav
, but remember to delete or rename the default one. To give credit the sound is published by Alex Jauk.
- support for different ASCII (Art) numbers or even letters (for bigger numbers and text)
- change the timedisplay to e.g. an animated plant (ASCII animation based on time passed)
- Make shure you have installed python and pip (should be installed with python by default).
- Clone the repo and run the following command in the projects directory.
pip install -r requirements.txt
- Have fun with the program
Make shure you follow these steps if you have a problem installing pyaudio related to wheels.
These steps worked on M1 Pro chips
Install portaudio
brew install portaudio
Link portaudio
brew link portaudio
Copy the path where portaudio was installed (use it in the next step)
brew --prefix portaudio
Create .pydistutils.cfg in your home directory
sudo nano $HOME/.pydistutils.cfg
then paste the following[build_ext] include_dirs=<PATH FROM STEP 3>/include/ library_dirs=<PATH FROM STEP 3>/lib/
- Install pyaudio
pip install pyaudio
orpip3 install pyaudio
- Open an issue for bugs or wanted features.
- Fork the repo and send a pull request with the new changes.
Generally speaking anything that makes the program more efficient (less memory usage, less operations on cpu, ...) or fixes bugs. Otherwise take a look at open issues to answer this question.