A flip clock screensaver supported by SDL2.
You can get PKGBUILD from FlipClock's AUR page and build it manually, or use some AUR helpers.
$ paru flipclockarchlinuxcn RepoFirst add archlinuxcn repo to your system, then use pacman to install it.
# pacman -S flipclockFlipClock is also available as Flatpak on Flathub, you can get it from FlipClock's Flathub page, or using flatpak CLI tool.
# flatpak install flathub one.alynx.FlipClock && flatpak run one.alynx.FlipClockPlease help package FlipClock to your distribution!
Just download file with win in its name from release page, extract it and right click flipclock.scr to install it as a screensaver. Please note I may not have time to build every version for Windows, just pick the latest available one.
mkdir build && cd build && meson setup . .. && meson compile./flipclock -f ../dists/flipclock.ttfmkdir build && cd build && meson setup --prefix=/usr --buildtype=release . .. && meson compile && sudo meson install.I saw a windows user says "This program has dlls in its folder so it's not simple!" and I got angry. Anyone who knows compiling, linking and loading won't complain. It might be quite hard for some Windows users to understand how hard to build static libraries. Windows is a horrible platform for developers: there is no package manager so you have to package all dependencies, Visual Studio is slow and complex on adding dependenvies. Thanks to Meson which handles all dirty things, its SDL2 wrap works good and I managed to tweak it to build a static linked program automatically if no pre-built dependency found.
d:/flipclock-prefix, program files will be installed into it.x64 Native Tools Command Prompt for VS 2019 from Start Menu, or other architectures you need.mkdir build && cd build && meson setup --prefix=d:/flipclock-prefix --buildtype=release . .. && meson compile && meson install. You can change prefix argument to other path you created in Step 2, but you need to use UNIX style slash instead of backslash because it's escape character in C.flipclock dir under your prefix directory, you can now find flipclock.scr and right click it to install it as a screensaver.See flipclock-android. It may be obsolete because I don't have enough time to update the Android wrapper.
On Linux, program will first use $XDG_CONFIG_HOME/flipclock.conf, if XDG_CONFIG_HOME is not set or file does not exist, it will use $HOME/.config/flipclock.conf. If per-user configuration file does not exist, it will use /etc/flipclock.conf or flipclock.conf under sysconfdir you choosed while building.
If you want to run this program under Wayland, you can set environment variable SDL_VIDEODRIVER to wayland:
SDL_VIDEODRIVER=waylandOn Windows, program will use flipclock.conf under the same directory as program.
flipclock.conf should be installed with the binary by Meson.
This program has multi-monitor support when it is started as fullscreen, but adding/removing monitors while program is running is not supported, and you should not do this.
If you run this program in windowed mode (-w), it will only create one window.
If you want some features and you can implement it, PRs are always welcome, but there are some rules or personal habits:
/* */ (but don't break long URL, it's fine), don't use // for block comment._WIN32, __ANDROID__ and __linux__) for platform-dependent code. (Note: Android will also define __linux__, so if you are targeting traditional Linux distributions, please use defined(__linux__) && !defined(__ANDROID__).)RETURN_IF_FAIL(EXPR) or RETURN_VAL_IF_FAIL(EXPR, VAL) from flipclock.h to check arguments for newly added functions..clang-format for this project, please run clang-format yourself before committing something. It will keep most coding style consistent.clang-format cannot change, please keep the same as existing code. For example, add period for all comments and printed text, add \n yourself for logging.++i, except when you really need i before increasement.dists/请先读我.txt. This file is a README for Chinese Windows users and should use GB2312 as encoding and CRLF as return.No open issues yet, or sync has not completed.