aboutsummaryrefslogtreecommitdiffstats
path: root/modules/clock.jsonc
diff options
context:
space:
mode:
Diffstat (limited to 'modules/clock.jsonc')
-rw-r--r--modules/clock.jsonc35
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/clock.jsonc b/modules/clock.jsonc
new file mode 100644
index 0000000..1c99b9a
--- /dev/null
+++ b/modules/clock.jsonc
@@ -0,0 +1,35 @@
+// Date and time. The one pair that stays text: an icon cannot say 14:32.
+// The icon sits before the text as a CSS background, which is what makes
+// these two match the icon-only pills around them.
+{
+ "clock#date": {
+ "format": "{:%a %d/%m}",
+ "min-length": 9,
+ "tooltip-format": "<tt>{calendar}</tt>",
+ "calendar": {
+ "mode": "year",
+ "mode-mon-col": 3,
+ "weeks-pos": "right",
+ "on-scroll": 1,
+ // Colours here are Pango markup inside a tooltip, which CSS
+ // cannot reach, so they are the only colours in this repo that
+ // do not come from the palette.
+ "format": {
+ "months": "<span color='#7dc4e4'><b>{}</b></span>",
+ "days": "<span color='#8aadf4'><b>{}</b></span>",
+ "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
+ "weekdays": "<span color='#b7bdf8'><b>{}</b></span>",
+ "today": "<span color='#f0c6c6'><b><u>{}</u></b></span>"
+ }
+ },
+ "actions": {
+ "on-click": "mode"
+ }
+ },
+
+ "clock#time": {
+ "format": "{:%H:%M}",
+ "min-length": 5,
+ "tooltip-format": "Standard Time: {:%I:%M %p}"
+ }
+}