A fully rewritten Clockery in Rust programming language for performance boost and fun reasons
Install libpng-dev
, libsdl2-dev
, libsdl2-ttf-dev
You have to follow this guide and have Microsoft Build Tools installed.
cargo install cargo-vcpkg
cargo vcpkg -v build
cargo build -r
Install dependencies in Preparation
cargo build -r
Windows does statically link the binary but I am NOT too sure with Linux's.
Either run the binary and it will create config.json for you to configure things about it.
It should looks like this
{
"am_pm": true,
"clocks": [
"local"
],
"revert": false,
"snow_enable": true,
"snow_limit": 200
}
am_pm
is a bool where it either shows time in 24 hours format OR 12 hours format. (Thanks Poiuu for suggestion) Can be either enabled or disabled withA
key.clocks
is a list of strings where those strings must be a timezone names, please select from this
You MUST type the highlighted part
revert
is a bool where it either revert all colors in the program. (kinda like light/dark mode) Can be either enabled or disabled withR
key.snow_enable
is a bool where will it shows the "snow" particles falling from the top of the screen and limits based onsnow_limit
. Can be either enabled or disabled withS
key.snow_limit
is an integer where it will limit amount of snows shown on the screen. Mind you that this will be equally divded by amount of clocks, so if this value is set for200
and there's 4 clocks to show it would be200 / 4 = 50 snows per clock surface
Escape
and CTRL+C
will close the program and save the configuration to disk.
Q
will reload configuration off the disk.
Run ./opengl_clockery -h
for help information.
-f
,--fps <FPS></FPS>
is for limiting FPS. Defaults to unlimited.-l
,--list-gpu-renderers
is for listing all GPU rendering backends.-s
,--selected-gpu-renderer <SELECTED_GPU_RENDERER>
is for selecting a GPU rendering backend. It is optionally and this flag is only for you to enforce which GPU renderer you wanted.