From f70735078ffe6473100fc913c0f2415c6492320b Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Thu, 20 Feb 2025 23:34:27 +1100
Subject: bar: datetime tooltip

---
 src/modules/bar.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/modules/bar.tsx')

diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index 6ff81fd..356bff7 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -484,10 +484,11 @@ const Battery = () => {
 const DateTime = () => (
     <button
         onClick={(self, event) => event.button === Astal.MouseButton.PRIMARY && togglePopup(self, event, "sideright")}
+        setup={self => setupCustomTooltip(self, bindCurrentTime(config.dateTime.detailed))}
     >
         <box className="module date-time">
             <label className="icon" label="calendar_month" />
-            <label label={bindCurrentTime(config.dateTimeFormat)} />
+            <label label={bindCurrentTime(config.dateTime.format)} />
         </box>
     </button>
 );
@@ -495,7 +496,7 @@ const DateTime = () => (
 const DateTimeVertical = () => (
     <button
         onClick={(self, event) => event.button === Astal.MouseButton.PRIMARY && togglePopup(self, event, "sideright")}
-        setup={self => setupCustomTooltip(self, bindCurrentTime(config.dateTimeFormat))}
+        setup={self => setupCustomTooltip(self, bindCurrentTime(config.dateTime.detailed))}
     >
         <box vertical className="module date-time">
             <label className="icon" label="calendar_month" />
-- 
cgit v1.2.3-freya

