Krolyxon
Commit 667975a

Branches

Refs →

aurora667975a

aurora: fix notification popup timeout (ms, not s), default 15s

Author
krolyxon
Date
2026-10-19 16:00 +0530
Parent
071f97f
Commit
667975abf2944af4980092e96876f6e87d9adb01

+3 −2

1 file changed

  1. M .config/quickshell/aurora/Notifs.qml +3 −2
M .config/quickshell/aurora/Notifs.qml View
@@ -39,8 +39,9 @@ Singleton {
3939 }
4040 function push(n) {
4141 playSound()
42− var ms = n.urgency === NotificationUrgency.Critical ? 12000
43− : (n.expireTimeout > 0 ? n.expireTimeout * 1000 : 5000)
42+ // expireTimeout is already in ms; apps asking for less than 15s get less, never more
43+ var ms = (n.urgency !== NotificationUrgency.Critical && n.expireTimeout > 0)
44+ ? Math.min(n.expireTimeout, 15000) : 15000
4445 var next = popups.concat([{ n: n, until: Date.now() + ms }])
4546 popups = next.slice(-4)
4647 n.closed.connect(function () { root.dropPopup(n) })