sepandhaghighi / mytimer Goto Github PK
View Code? Open in Web Editor NEWA Geeky Timer for Terminal Enthusiasts
License: MIT License
A Geeky Timer for Terminal Enthusiasts
License: MIT License
hour
, minute
, and second
types should be int
AnimeDoro timer:
No response
No response
References:
Python 3.12 support
Add the Pomodoro timer program
work
programshort-break
programlong-break
programThe timer is not correct. It fails counting time.
Launching a 20 minutes timer takes 19 minutes and 41 seconds instead of 20 minutes
You can try this :
$ time mytimer --minute=20
We must get something like this :
mytimer --minute=20 2.36s user 0.99s system 0% cpu 20:00.00 total
When testing I got this :
mytimer --minute=20 --countdown 2.36s user 0.99s system 0% cpu 19:41.35 total
Add continue
flag in countdown
mode
Add --faces-list
argument to show all faces with a sample.
Something like this:
mytimer --faces-list
Code: 1
__ ___ ___ __ ___ _
/ )(__ \ () (__ ) /. | () | __) / )
)( / _/ (_ \(_ _) |__ \/ _ \
(__)(____) () (___/ (_) () (___/\___/
=============================================================================
Code: 2
,--. ,---. ,----. ,---. ,-----. ,--.
/ | '.-. \ .--. '.-. | / | .--. | .--' / .'
`| | .-' .' '--' .' < / ' | '--' '--. `\ | .-.
| | / '-. .--. /'-' | '--| | .--. .--' / \ o |
`--' '-----' '--' `----' `--' '--' `----' `---'
.
.
.
Add new faces to mytimer
Add --programs-list
argument to show the list of programs.
Something like this:
mytimer --programs-list
1. `poached-egg` - Poached egg (1.5 mins)
2. `boiled-egg` - Boiled egg (3 mins)
.
.
.
Add vertical/horizontal shift
mytimer --v-shift=20 --h-shift=30
The starting position of the timer should be (30, 20).
Add different programs
mytimer --program="green tea"
Add different alarm ringtones
Since the timer is using all of the terminal window, it would look nicer if it is in the centre of the window and the rest of the display is not wasted.
Add Noodle
program
"noodle": {
"hour": 0,
"minute": 3,
"second": 0,
"alarm": 1,
"alarm_repeat": 1,
"face": 1,
"tone": 1,
"message": "Instant noodle (3 mins)"}
Add message
parameter
4 new faces:
dotmatrix
3-d
sweet
epic
This is a suggestion for new feature. Implement a feature so that the program terminates by entering q+enter
or just a q
, instead of ctrl+c
.
Add alarm-repeat
argument
Add version
flag to mytimer.
Example:
mytimer --version
The feature of auto alignment adjusts the layout of the display based on the size of the terminal.
Add work
, short-break
, and long-break
programs.
"work": {
"hour": 0,
"minute": 25,
"second": 0,
"alarm": 1,
"alarm_repeat": 1,
"face": 1,
"tone": 1,
"message": "Time to Work (25 mins)"}
"short-break": {
"hour": 0,
"minute": 10,
"second": 0,
"alarm": 1,
"alarm_repeat": 1,
"face": 1,
"tone": 1,
"message": "Short Break (10 mins)"}
"long-break": {
"hour": 0,
"minute": 30,
"second": 0,
"alarm": 1,
"alarm_repeat": 1,
"face": 1,
"tone": 1,
"message": "Long Break (30 mins)"}
It seems some tones are too short and is not possible to hear them!!
mytimer --second=2 --alarm --tone=4
Alarm
No alarm
Windows 10
Python 3.8
0.7
New logo
There seems to be an issue with the japanese-green-tea
program.
mytimer --program=japanese-green-tea
Work without problem
Traceback (most recent call last):
...
TypeError: inner_function() missing 1 required positional argument: 'tone'
Windows 10
3.8.2
MyTimer v0.9
Print 01:02:23
instead of 1:2:23
To avoid display stretching, implementing this solution will prove to be helpful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.