dynisland_clock_module

Crates.iodynisland_clock_module
lib.rsdynisland_clock_module
version0.1.2
sourcesrc
created_at2024-08-28 12:41:06.357023
updated_at2024-09-11 14:04:51.555076
descriptionClock module for dynisland
homepage
repositoryhttps://github.com/cr3eperall/dynisland-modules
max_upload_size
id1354612
size30,203
cr3eperall (cr3eperall)

documentation

README

Clock Module

Minimal mode

Analog clock with customizable colors

Compact mode

Digital clock with animated digits, supports 24h or 12h format, uses local timezone.

Configuration

Default values

  • format_24h: If true, the clock will show the time in 24h format, if false, it will show it in 12h format.

  • hour_hand_color: Color of the hour hand.

  • minute_hand_color: Color of the minute hand.

  • tick_color: Color of the ticks on the analog clock.

  • circle_color: Color of the circle in the analog clock.

Multiple widgets definitions

  • windows: A map of window names to vector of configuration.

windows example

windows: {
    "main_monitor": [ // list of widgets for the window named "main_monitor"
        ( // all of these can be omitted and the default value will be used
            format_24h: true,
            hour_hand_color: "white",
            minute_hand_color: "red",
            tick_color: "green",
            circle_color: "blue",
        ),
    ],
    "second_monitor": [
        (
            format_24h: false,
            circle_color: "green",
        ),
        (
            tick_color: "purple",
            circle_color: "rgb(255, 55, 87)",
        ),
    ]
}
Commit count: 0

cargo fmt