sioyek, and more aerc config

This commit is contained in:
2026-01-16 09:29:05 -07:00
parent 8cf5f022a5
commit 1f391e6747
2 changed files with 18 additions and 1 deletions

View File

@@ -1,4 +1,9 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
# Cross-platform opener command
openCmd = if pkgs.stdenv.isDarwin then "open" else "${pkgs.xdg-utils}/bin/xdg-open";
in
{
programs.mbsync.enable = true;
@@ -28,9 +33,19 @@
compose = {
address-book-cmd = "khard email --parsable '%s'";
};
# viewer = {
# alternatives = "text/html,text/plain";
# };
filters = {
"text/plain" = "cat";
"text/html" = "${pkgs.w3m}/bin/w3m -T text/html -cols $(tput cols) -dump -o display_image=false -o display_link_number=true";
};
openers = {
"text/html" = "${openCmd}";
"text/plain" = "less -R";
"application/pdf" = "${openCmd}";
"image/*" = "${openCmd}";
};
};
};