From b46b2d22824a4feb351f27fff8dce3d6947b190b Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Wed, 15 Mar 2023 22:40:39 +0100 Subject: hooks: add aerc-shutdown Add a hook to run when aerc shuts down. The environment is supplemented with the duration aerc was alive for. References: https://todo.sr.ht/~rjarry/aerc/136 Signed-off-by: Moritz Poldrack Signed-off-by: Robin Jarry Tested-by: Bence Ferdinandy --- doc/aerc-config.5.scd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 78267229..4931d021 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -855,6 +855,14 @@ They are configured in the *[hooks]* section of aerc.conf. *mail-received* = _notify-send "New mail from $AERC_FROM_NAME" "$AERC_SUBJECT"_ +*aerc-shutdown* = __ + Executed when aerc shuts down. Aerc will wait for the command to finish + before exiting. + + Variables: + + - *AERC_LIFETIME* + # TEMPLATES Template files are used to populate the body of an email. The *:compose*, -- cgit