Shell countdown timer.
- Shell 100%
| .editorconfig | Fix sound file path and use xdg-utils to run it | |
| .gitignore | Change alarm sound | |
| alarm.ogg | Change alarm sound | |
| countdown | Update countdown | |
| LICENSE | Can now run multiple instances at the same time | |
| README.md | Can now run multiple instances at the same time | |
Countdown
A simple shell countdown timer.
Features
- Creates a temporary file so the current status can be used in other scripts (e.g. a dwm status bar).
- Alerts the user with a notification.
- Can run multiple instances of the script at the same time.
Optional dependencies
- libnotify for notifications
Installation
- Clone the repository:
git clone https://codeberg.org/marc/countdown.git
- Enter the directory:
cd countdown
- Allow running of the script:
chmod u+x countdown
- Run the script:
./countdown
- Optionally add this to your
.bashrc/.zshrc/whatever so it can be run from anywhere (replace SOME-FILE-PATH).
alias countdown='SOME-FILE-PATH/countdown/countdown'
How to use
You can run countdown with 3 arguments corresponding to hours, minutes, and seconds:
$ ./countdown 1 30 5
1:30:5
1:30:4
1:30:3
...
Alternatively, if you run the script with less than 3 arguments, you will be prompted for the hours, minutes, and seconds:
$ ./countdown
Hours: 1
Minutes: 30
Seconds: 5
1:30:5
1:30:4
1:30:3
...
If you want to stop the countdown, you can run
kill countdown
Third party assets
- alarm.ogg (CC0 1.0)