antonmedv / countdown Goto Github PK
View Code? Open in Web Editor NEWTerminal countdown timer
License: MIT License
Terminal countdown timer
License: MIT License
There is already exists keybinding (Esc
or Ctrl-C
) to stop countdown w/o running next command. It is will be helpful to add keybinding (e.g. q
, s
or n
) to skip countdown (exit with 0
code) and run next command.
It doesn't handle resizing the terminal window, It accommodates the terminal size in the beginning and then doesn't care about the window resizing.
P.S. I suggest starting the timer from zero and increasing when the countdown is started without any argument.
Thanks so much for this terminal timer. Any plans to add the ability to pause?
Hello,
I cloned the repo, but How can I install it, or run it?
Im new at Linux, I have Kali linux installed.
Many thanks
c:\users\stingyjack\go\bin\countdown 10s && say "final"
does the countdown, then...
'say' is not recognized as an internal or external command,
operable program or batch file.
I'm guessing I need another tool installed for that. What am I missing?
I notice that at least d for days is not supported. I use this occasionally with the sleep command to do stuff like open a link with xdg-open in a couple days. It's also a bit more readable to see 12 days counting down than 288 hours.
Not sure if sleep supports bigger units than days, but if it does, it could be good to have those as well. w for weeks should be fairly unambiguous, and if you start using capitals, M could be months.
Line 56 in f901155
d.Hours() will always return 0, because it is not the origin input
To replicate:
❯ date
2023-02-08T08:24:24 CET
❯ countdown 14:15
error: invalid duration or kitchentime: 14:15
Expected behaviour:
should be the same as the command
❯ countdown 02:15PM
There is no --help, -help, or help to show the usage. A blank command will do it.. but this is easy to implement.
Additionally this command already sends a notification on finish, it would be trivial to add a custom notification.
If you do not get to this before I do, ill probably submit a PR to fix this.
alternately, if you don't want to make it annoying by default, have it look at COUNTDOWN_ON_ZERO_COMMAND
in the environment, so I can do:
export COUNTDOWN_ON_ZERO_COMMAND='echo -e "\a"'
in my .profile
.
This isn't really related to countdown, but in the gif on the main page, you have a pretty rad colorful prompt. Any chance you could provide the details on how to accomplish that ;)
Thanks!
I downloaded the latest version and when trying to pause the timer I can't. The keypresses are elsewhere. I'd gladly help debug if I get told how to.
i have an idea to create notification feature in this app.
My plan is to refactor this fork countdown-notifier and used beeep cross-platform notification for sending desktop notifications.
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.