sioyek, and more aerc config

master
Dustin Swan 3 days ago
parent 8cf5f022a5
commit 1f391e6747
Signed by: dustinswan
GPG Key ID: 30D46587E2100467

@ -7,6 +7,8 @@
localsend localsend
]; ];
programs.sioyek.enable = true;
programs.halloy = { programs.halloy = {
enable = true; enable = true;
settings = { settings = {

@ -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; programs.mbsync.enable = true;
@ -28,9 +33,19 @@
compose = { compose = {
address-book-cmd = "khard email --parsable '%s'"; address-book-cmd = "khard email --parsable '%s'";
}; };
# viewer = {
# alternatives = "text/html,text/plain";
# };
filters = { 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"; "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}";
};
}; };
}; };

Loading…
Cancel
Save