diff --git a/modules/bar.tsx b/modules/bar.tsx index b7ffb56b..bf1bb9fd 100644 --- a/modules/bar.tsx +++ b/modules/bar.tsx @@ -259,7 +259,7 @@ const Power = () => ( export default ({ monitor }: { monitor: AstalHyprland.Monitor }) => ( 0 - // ? notification.expireTimeout - // : notification.urgency === AstalNotifd.Urgency.CRITICAL - // ? 10000 - // : 5000, - // () => this.destroyWithAnims() - // ); + // Close popup after timeout if transient + if (notification.transient) + timeout( + notification.expireTimeout > 0 + ? notification.expireTimeout + : notification.urgency === AstalNotifd.Urgency.CRITICAL + ? 10000 + : 5000, + () => this.destroyWithAnims() + ); } destroyWithAnims() { @@ -121,7 +122,7 @@ class NotifPopup extends Widget.Box { export default () => (