/DeskClock_Cpp

A Clock anchored to your desktop for windows

Primary LanguageCMIT LicenseMIT

DeskClock

This is a C++ implementation of my previously built DeskClock using C++ and some nicer features(date and colored hands) The project is still in development.

It is currently configured for 1920 x 1080 resolution for now.

Install


You can build the software yourself or just download the setup file provided.

Build


This project uses a Rust based build tool called builder_cpp

Environment setup

I am using the MSYS2 mingw 64-bit g++ compiler for installation of libraries and such on windows. For linux use your preferred package manager.

Dependencies

  1. GLEW
  2. GLFW
  3. Freetype2
  4. STB Image
  5. mingw64_crt (For windows)

To install libraries in msys2

pacman -S mingw-w64-x86_64-glew mingw-w64-x86_64-glfw mingw-w64-x86_64-stb mingw-w64-x86_64-freetype mingw-w64-x86_64-crt-git

To build

cargo install builder_cpp
builder_cpp -b

To clean build, run

builder_cpp -rb

To run

builder_cpp -r

The binaries will be placed in the bin directory

Config

The windows config is in C:\User<username>\Roaming\DeskClock_Cpp\config.txt

The linux config file is in $HOME/.config/DeskClock_Cpp/config.txt

You may edit the width, height and x and y pos of the center.

If you bork the config, just delete the file and the pprogram will regenerate a default config if there is no such file.

Images

clk

Additional credits

Audio is handled using miniaudio