Skip to content

8dcc/sclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sclock

Simple graphical clock.

Description

This project was inspired by tsoding/sowon.

Building

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
...

Modes

You can change the mode by providing a keyword when launching the program:

./sclock <keyword>

These are the supported modes:

KeywordDescription
clockDisplay the current time. Default mode
stopwatchStart counting from zero
pomodoroSame as stopwatch, but the text color changes depending on the Pomodoro cycle (1)

Notes:

  1. 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.

Keybinds

These are the keybinds common for all modes:

KeyDescription
q, ESCQuit the program
t, pChange color palette (theme)
gToggle the grid (dotted background)
f, F11Toggle full-screen

These are the keybinds specific to the stopwatch and pomodoro modes:

KeyDescription
SPCPause or resume the stopwatch
rReset the stopwatch to zero

Customizing

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.