feat: add world clock module (#795)

Co-authored-by: Louis Dalibard <ontake@ontake.dev>
Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
Louis Dalibard
2025-04-05 08:10:51 +02:00
committed by GitHub
parent 9a40475f4a
commit 1d717e9f2e
9 changed files with 291 additions and 0 deletions

View File

@@ -435,6 +435,15 @@ const options = mkOptions({
icon_background: opt(colors.base2),
spacing: opt('0.5em'),
},
worldclock: {
enableBorder: opt(false),
border: opt(colors.yellow),
background: opt(colors.base2),
text: opt(colors.yellow),
icon: opt(colors.yellow),
icon_background: opt(colors.base2),
spacing: opt('0.5em'),
},
},
},
menus: {
@@ -1235,6 +1244,18 @@ const options = mkOptions({
scrollUp: opt(''),
scrollDown: opt(''),
},
worldclock: {
icon: opt('󱉊'),
showIcon: opt(true),
showTime: opt(true),
format: opt('%I:%M:%S %p %Z'),
formatDiffDate: opt('%a %b %d %I:%M:%S %p %Z'),
rightClick: opt(''),
middleClick: opt(''),
scrollUp: opt(''),
scrollDown: opt(''),
tz: opt(['America/New_York', 'Europe/Paris', 'Asia/Tokyo']),
},
},
},