1
0
Fork
You've already forked countdown
0
forked from marc/countdown
Shell countdown timer.
  • Shell 100%
2024年02月11日 17:35:11 +00:00
.editorconfig Fix sound file path and use xdg-utils to run it 2020年04月04日 23:24:34 +02:00
.gitignore Change alarm sound 2024年01月06日 16:20:48 +01:00
alarm.ogg Change alarm sound 2024年01月06日 16:20:48 +01:00
countdown Update countdown 2024年02月11日 17:35:11 +00:00
LICENSE Can now run multiple instances at the same time 2024年01月06日 16:47:09 +01:00
README.md Can now run multiple instances at the same time 2024年01月06日 16:47:09 +01:00

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

  1. Clone the repository:
git clone https://codeberg.org/marc/countdown.git
  1. Enter the directory:
cd countdown
  1. Allow running of the script:
chmod u+x countdown
  1. Run the script:
./countdown
  1. 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

License

AGPL v3