diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 05:06:49 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-24 05:06:49 +0530 |
| commit | a0213d48a3fea3b2209c36390331de101fb7575f (patch) | |
| tree | 57f31b37ec4f2d0b4a109c53db61393d05d9cb1a /modules/communication/neomutt/neomutt-launcher.sh | |
| parent | 3a6e45ad18c519b21c9cadb2d374148647886b05 (diff) | |
| parent | c37c4a69fc895099109fc5211bf9449592ebc518 (diff) | |
| download | home-manager-config-a0213d48a3fea3b2209c36390331de101fb7575f.tar.gz home-manager-config-a0213d48a3fea3b2209c36390331de101fb7575f.zip | |
Merge branch 'neomutt-autosyncing-daemon'
Diffstat (limited to 'modules/communication/neomutt/neomutt-launcher.sh')
| -rw-r--r-- | modules/communication/neomutt/neomutt-launcher.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/communication/neomutt/neomutt-launcher.sh b/modules/communication/neomutt/neomutt-launcher.sh new file mode 100644 index 0000000..62cbe09 --- /dev/null +++ b/modules/communication/neomutt/neomutt-launcher.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# Wrapped neomutt: keeps the neomutt-sync systemd daemon alive for the +# lifetime of a neomutt session. +set -uo pipefail + +systemctl --user start neomutt-sync.service || true +stop_service() { + pgrep -x neomutt >/dev/null || systemctl --user stop neomutt-sync.service || true +} +trap stop_service EXIT + +"@@NEOMUTT_BIN@@" "$@" |
