diff --git a/scss/bar.scss b/scss/bar.scss index 7598f1ba..f776f199 100644 --- a/scss/bar.scss +++ b/scss/bar.scss @@ -92,7 +92,7 @@ color: scheme.$blue; } - .unread { + .notif-count { color: scheme.$mauve; } diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index cf08634e..1bcbc08a 100644 --- a/src/modules/bar.tsx +++ b/src/modules/bar.tsx @@ -389,59 +389,32 @@ const PkgUpdates = () => ( ); -const Unread = () => { - const unreadCount = Variable(0); - return ( - - ); -}; + }} + setup={self => + setupCustomTooltip( + self, + bind(AstalNotifd.get_default(), "notifications").as( + n => `${n.length} notification${n.length === 1 ? "" : "s"}` + ) + ) + } + > + + + +); const DateTime = () => ( @@ -501,7 +474,7 @@ export default ({ monitor }: { monitor: Monitor }) => ( - +