https://github.com/toasterbirb/cli-timer
[MIRROR] A small CLI countdown timer
https://github.com/toasterbirb/cli-timer
Last synced: 19 days ago
JSON representation
[MIRROR] A small CLI countdown timer
- Host: GitHub
- URL: https://github.com/toasterbirb/cli-timer
- Owner: Toasterbirb
- License: gpl-3.0
- Created: 2022-06-20T10:44:39.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T15:41:35.000Z (over 2 years ago)
- Last Synced: 2025-03-03T04:29:58.010Z (over 1 year ago)
- Language: C++
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CLI-Timer
Countdown timer in the terminal. The timer class was *borrowed* from [Birb2D](https://github.com/Toasterbirb/Birb2D)
## Usage
Without any arguments timer will close immediately. You can give it the target time with 3 different arguments: h, m and s
For example:
```
./timer -h 1 -m 5 -s 25
```
would time for 1 hour, 5 minutes and 25 seconds
The remaining time is shown in digital format
```
toasterbirb@tux ~/git/cli-timer $ ./timer -h 1 -m 5 -s 25
01:05:18
```
If CLI-Timer was built with notification support, you can use the `-t` flag to set a custom notification text.
Help page can be shown with `--help`
## Dependencies
- libnotify [optional]
## Compiling
Simply run `make` or `make no-notify` if you don't want desktop notifications when the time is up.