#clock #widgets #module #analog #customizable #dynisland #color

dynisland_clock_module

Clock module for dynisland

3 releases

0.1.2 Sep 11, 2024
0.1.1 Sep 6, 2024
0.1.0 Aug 28, 2024

#6 in #analog

Download history 89/week @ 2024-08-22 72/week @ 2024-08-29 295/week @ 2024-09-05 233/week @ 2024-09-12 36/week @ 2024-09-19 14/week @ 2024-09-26 4/week @ 2024-10-03

455 downloads per month
Used in dynisland

MIT license

28KB
652 lines

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)",
        ),
    ]
}

Dependencies

~28–38MB
~690K SLoC