about summary refs log tree commit diff
path: root/home/profiles/communication/default.nix
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-10-09 15:26:50 +0900
committersefidel <contact@sefidel.net>2023-10-09 15:26:50 +0900
commit7b20504301d6593d16f6215fdb2024aa30d5193c (patch)
tree6645fc9caca2014f80b7936c8d1bf2fec2344719 /home/profiles/communication/default.nix
parentc03588dcfc6aa07c320615ae9816fde68548cf03 (diff)
downloadnixrc-7b20504301d6593d16f6215fdb2024aa30d5193c.tar.gz
nixrc-7b20504301d6593d16f6215fdb2024aa30d5193c.zip
feat(home/communciation): neomutt: add macro to trigger manual sync
This commit binds 'S' to start the mbsync-oneshot service, triggering
manual mailbox sync.

This serves as a *temporary* solution for mails being missed while the
machine was on suspend state.
Diffstat (limited to 'home/profiles/communication/default.nix')
-rw-r--r--home/profiles/communication/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/profiles/communication/default.nix b/home/profiles/communication/default.nix
index 45f8815..b2874a2 100644
--- a/home/profiles/communication/default.nix
+++ b/home/profiles/communication/default.nix
@@ -269,6 +269,12 @@ in
           "index,pager \\Cn <sidebar-next-new><sidebar-open>"
           "index,pager \\Cb <pipe-message>urlscan<Enter>"
           "attach,compose \\Cb <pipe-entry>urlscan<Enter>"
+        ] ++ [
+          {
+            map = [ "index" ];
+            key = "S";
+            action = "<shell-escape>systemctl start --user mbsync-oneshot<enter>";
+          }
         ];
 
         # TODO: Re-theme this after nightlamp -> limestone theme