Simple graphical clock.
This project was inspired by tsoding/sowon.
To build the project, simply clone the repository and run make
or make
install
. Then run ./sclock
.
$ git clone https://github.com/8dcc/sclock
$ cd sclock
$ make
...
$ make install
...
$ ./sclock --help
...
You can change the mode by providing a keyword when launching the program:
./sclock <keyword>
These are the supported modes:
Keyword | Description |
---|---|
clock | Display the current time. Default mode |
stopwatch | Start counting from zero |
pomodoro | Same as stopwatch , but the text color changes depending on the Pomodoro cycle (1) |
Notes:
- In this case,
pomodoro
cycle consists of 25 minutes of work and 5 of rest. After 4 work cycles, the rest is 30 minutes instead of 5.
These are the keybinds common for all modes:
Key | Description |
---|---|
q , ESC | Quit the program |
t , p | Change color palette (theme) |
g | Toggle the grid (dotted background) |
f , F11 | Toggle full-screen |
These are the keybinds specific to the stopwatch and pomodoro modes:
Key | Description |
---|---|
SPC | Pause or resume the stopwatch |
r | Reset the stopwatch to zero |
You can easily change the colors and behavior of the program by editing the src/config.h file.
To change the font, you can edit the digits.xcf file with GIMP and export the
atlas as a C source file. You will need to modify it a bit, so it includes the
digits.h
header and uses the GimpImage
type.