From 8c2587d6a19e5c1799708739b7ae343e54f7fc0e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 26 Jul 2026 23:43:16 +0530 Subject: fix(chawan): refine neomutt integration, add default waybar icon, drop kitty image-mode - Set window title to "neomutt" via chawan -o flag for waybar matching - Add "Default" workspace icon using base16 base07 color, set as window-rewrite-default - Drop kitty-specific image-mode, use "auto" instead - Disable chawan set-title to avoid title conflicts - Pass full config into waybar/lib.nix for scheme access --- modules/communication/neomutt/macros.nix | 4 ++-- modules/communication/neomutt/neomutt.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/communication/neomutt') diff --git a/modules/communication/neomutt/macros.nix b/modules/communication/neomutt/macros.nix index d8b6f55..3fdc769 100644 --- a/modules/communication/neomutt/macros.nix +++ b/modules/communication/neomutt/macros.nix @@ -28,14 +28,14 @@ # for "open this in a browser-like view". map = [ "pager" ]; key = "\\Cb"; - action = "set my_pipe_decode=$pipe_decode pipe_decode=yes${lib.getExe config.web.chawan.package} -T text/htmlset pipe_decode=$my_pipe_decode"; + action = "set my_pipe_decode=$pipe_decode pipe_decode=yes${lib.getExe config.web.chawan.package} -o \"title='neomutt'\"set pipe_decode=$my_pipe_decode"; } { # Ctrl-B on a specific attachment (not just the top-level # message): pipe-entry sends the selected attachment instead. map = [ "attach" ]; key = "\\Cb"; - action = "${lib.getExe config.web.chawan.package} -cols 100 -T text/html"; + action = "${lib.getExe config.web.chawan.package} -o \"title='neomutt'\" "; } { # gF: clear the current limit/filter and show every message again, diff --git a/modules/communication/neomutt/neomutt.nix b/modules/communication/neomutt/neomutt.nix index 623c3dd..223ce5b 100644 --- a/modules/communication/neomutt/neomutt.nix +++ b/modules/communication/neomutt/neomutt.nix @@ -18,7 +18,7 @@ "x-scheme-handler/mailto" = "neomutt.desktop"; }; xdg.configFile."neomutt/mailcap".text = '' - text/html; ${lib.getExe config.web.chawan.package} '%s'; nametemplate=%s.html + text/html; ${lib.getExe config.web.chawan.package} -o "title='neomutt'" '%s'; nametemplate=%s.html image/*; xdg-open '%s' & application/pdf; xdg-open '%s'; nametemplate=%s.pdf video/*; xdg-open '%s' & -- cgit v1.2.3