3 releases
0.1.2 | Sep 11, 2024 |
---|---|
0.1.1 | Sep 6, 2024 |
0.1.0 | Aug 28, 2024 |
#2 in #dynisland
Used in dynisland
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
~692K SLoC