coolcode / octotype

Web3 Vagabond
https://web3v.netlify.app
0 stars 0 forks source link

πŸ… Tomato Clock (Python) #3

Open coolcode opened 2 months ago

coolcode commented 2 months ago

πŸ… Tomato Clock (Python)

Publish to PyPI PyPI tomato-clock

Tomato Clock is a straightforward command-line Pomodoro application.

Installation

Install python

pip install tomato-clock
git clone https://github.com/coolcode/tomato-clock.git
cd tomato-clock
chmod +x tomato.py 

How to use

tomato         # start a 25 minutes tomato clock + 5 minutes break
tomato -t      # start a 25 minutes tomato clock
tomato -t <n>  # start a <n> minutes tomato clock
tomato -b      # take a 5 minutes break
tomato -b <n>  # take a <n> minutes break
tomato -h      # help
./tomato.py         # start a 25 minutes tomato clock + 5 minutes break
./tomato.py -t      # start a 25 minutes tomato clock
./tomato.py -t <n>  # start a <n> minutes tomato clock
./tomato.py -b      # take a 5 minutes break
./tomato.py -b <n>  # take a <n> minutes break
./tomato.py -h      # help

Terminal Output

πŸ… tomato 25 minutes. Ctrl+C to exit
 πŸ…πŸ…---------------------------------------------- [8%] 23:04 ⏰ 

Desktop Notification

brew install terminal-notifier 

terminal-notifier actually is a cross-platform desktop notifier, please refer to ➜ terminal-notifier

terminal-notifier

notify-send

ubuntu-notification

Voice Notifications

Tomato Clock uses say(text-to-speech) for voice notifications.

MacOS already has say. see here or more detail

See this link: say

sudo apt-get install gnustep-gui-runtime

Check this one: https://github.com/SeanBracksDev/tomato-clock