From c4d9f8a8ff4d65b43defb8d63e775e8b91f82bed Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 25 Jul 2024 19:24:28 +0200 Subject: osc: kitty notifications: implement the 'close' request Add a new config option, desktop-notifications.close, defining what to execute to close a notification. It has a single template parameter, ${id}, that is expanded to the external notification ID foot may have picked up from the notification helper. notify-send does not support closing notifications, and it appears impossible to pass an *unsigned* integer as argument to gdbus. Hence no default value for the new 'close' option. Example: printf '\e]99;i=123;this is a notification\e\\' printf '\e]99;i=123:p=close;\e\\' --- foot.ini | 1 + 1 file changed, 1 insertion(+) (limited to 'foot.ini') diff --git a/foot.ini b/foot.ini index 46b2d5f0..cead651a 100644 --- a/foot.ini +++ b/foot.ini @@ -48,6 +48,7 @@ [desktop-notifications] # command=notify-send --wait --app-name ${app-id} --icon ${icon} --urgency ${urgency} --action ${action-name}=${action-label} --print-id -- ${title} ${body} +# close="" # inhibit-when-focused=yes -- cgit v1.3