dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs notifications: honor resident, close on action unless set e4a9f128f023ff024954fc1687cf72fb5a2a1a29
Oliver Jan Krylow <oliver@bugabinga.net > · 27 Jun 2026
unsigned
Browse files Compare with HEAD
Per freedesktop, invoking an action dismisses the notification unless it
declared the resident hint. The server now captures resident and, after a
server action (including default) is invoked, closes the notification
unless it is resident. Verified: a non-resident notification disappears on
action, a resident one stays.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changed files (1) Diff layout Auto Unified Split
quickshell/nuguland/Notifications.qml Modified +9 / −1 text lines
105 105 "actions" : actions, "actions" : actions, 107 107 "value" : Number (record.value !== undefined ? record.value : - 1 ), "value" : Number (record.value !== undefined ? record.value : - 1 ),
109 + "resident" : !! record.resident, 108 110 "popup" : ! (dnd || popupInhibition), "popup" : ! (dnd || popupInhibition), 109 111 "closed" : false , "closed" : false , 110 112 "read" : false , "read" : false , 206 208 "expireTimeout" : notification.expireTimeout, "expireTimeout" : notification.expireTimeout, 207 209 "transient" : notification.transient, "transient" : notification.transient, 208 210 "actions" : notification.actions || [], "actions" : notification.actions || [], 209 - "value" : hintValue (notification)211 + "value" : hintValue (notification), 212 + "resident" : notification.resident211 214 const eligible = toastEligible(row, dnd); const eligible = toastEligible(row, dnd);494 497 "id" : id, "id" : id, 495 498 "actionId" : action, "actionId" : action, 496 499 "invoked" : invoked, "invoked" : invoked,
500 + "resident" : !! n.resident, 497 501 "route" : "Notifications.qml" , "route" : "Notifications.qml" , 498 502 "nativeActionRoute" : nativeActionRoute "nativeActionRoute" : nativeActionRoute
507 + closeNotification (n);501 509 notifications = notifications.slice(0 ); notifications = notifications.slice(0 );502 510 return stateJson (); return stateJson ();