Using Makefile:
make -B
./timer [time] [options]Without Makefile:
mkdir -p build
gcc -Wall -Wextra -ggdb src/png2c.c -o build/png2c -lm
build/png2c assets/digits.png digits > src/digits.h
build/png2c assets/penger_walk_sheet.png penger > src/penger_walk_sheet.h
gcc -Wall -Wextra -ggdb src/main.c -o timer -lX11 -lXrandr -lGL -lmIf no time is provided, the timer defaults to stopwatch mode. Time format:
1h2m3s(hours, minutes, seconds). Options include starting paused or auto-exit on completion.
| Command | Behavior |
|---|---|
./timer |
Stopwatch mode |
./timer 34 |
Countdown from 34 seconds |
./timer 1h3m32s |
Countdown from 1h 3m 32s |
./timer -e 43 |
Countdown from 43s, exits automatically |
./timer -p 43 |
Countdown from 43s, starts paused |
| Key | Action |
|---|---|
| SPACE | Pause/resume (Red = paused) |
| + | Increase text size |
| - | Decrease text size |
| F11 | Toggle full-screen |
