modules/aerc: change styles

This commit is contained in:
Dmitriy Pleshevskiy 2024-04-19 23:59:40 +03:00
parent 69935cf13e
commit 94bb170bca
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -16,6 +16,20 @@ let
"mS" = exec "move Junk"; "mS" = exec "move Junk";
"mI" = exec "move INBOX"; "mI" = exec "move INBOX";
}; };
aercPackage = pkgs.unstable.aerc.override {
# support .filename filter
buildGoModule = args: pkgs.unstable.buildGoModule (args // rec {
version = "6ffc0ed5991bef69a50cbc22647af0a6a0e0a895";
src = pkgs.fetchFromSourcehut {
owner = "~rjarry";
repo = "aerc";
rev = version;
hash = "sha256-IyAcTCDSjOmZ6KPr9nYKdxWA0qryeU4jTwxRWzt2NOY=";
};
vendorHash = "sha256-pir78zXidz7N9Z6uw9YqkkjVRUho0PuKgDTQFli/4fs=";
});
};
in in
{ {
options.local.programs.aerc.enable = lib.mkEnableOption "aerc"; options.local.programs.aerc.enable = lib.mkEnableOption "aerc";
@ -26,19 +40,7 @@ in
# See: https://git.sbruder.de/simon/nixos-config/src/branch/master/users/simon/modules/mail/aerc/default.nix # See: https://git.sbruder.de/simon/nixos-config/src/branch/master/users/simon/modules/mail/aerc/default.nix
programs.aerc = { programs.aerc = {
enable = true; enable = true;
package = pkgs.unstable.aerc.override { package = aercPackage;
# support .filename filter
buildGoModule = args: pkgs.unstable.buildGoModule (args // rec {
version = "6ffc0ed5991bef69a50cbc22647af0a6a0e0a895";
src = pkgs.fetchFromSourcehut {
owner = "~rjarry";
repo = "aerc";
rev = version;
hash = "sha256-IyAcTCDSjOmZ6KPr9nYKdxWA0qryeU4jTwxRWzt2NOY=";
};
vendorHash = "sha256-pir78zXidz7N9Z6uw9YqkkjVRUho0PuKgDTQFli/4fs=";
});
};
# https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd # https://git.sr.ht/~rjarry/aerc/tree/master/item/doc/aerc-config.5.scd
extraConfig = { extraConfig = {
general = { general = {
@ -169,27 +171,37 @@ in
}; };
stylesets.default = { stylesets.default = {
"*.selected.reverse" = true; "*.selected.bg" = 6;
"title.reverse" = true; "*.selected.fg" = 18;
"header.bold" = true; "*.selected.bold" = true;
"statusline_*.dim" = true;
"statusline_*.bg" = 0;
"statusline_*.fg" = 15;
"*warning.fg" = 3;
"*success.fg" = 2;
"*error.fg" = 1;
"*error.bold" = true; "*error.bold" = true;
"error.fg" = 1; "border.fg" = 15;
"warning.fg" = 3; "title.bg" = 12;
"success.fg" = 2; "title.fg" = 15;
"title.bold" = true;
"header.fg" = 4;
"header.bold" = true;
"msglist_read.selected.fg" = 0;
"msglist_unread.bold" = true; "msglist_unread.bold" = true;
"msglist_deleted.fg" = 10; "msglist_deleted.dim" = true;
"tab.fg" = 0; "msglist_marked.bg" = 6;
"tab.selected.reverse" = false; "msglist_marked.fg" = 15;
"tab.selected.bold" = true; "msglist_pill.bg" = 12;
"tab.selected.bg" = 2; "msglist_pill.fg" = 15;
"dirlist_default.bg" = 18; "part_mimetype.fg" = 12;
"border.fg" = 0; "selector_chooser.bold" = true;
"statusline_default.bg" = 18; "selector_focused.bold" = true;
"statusline_error.fg" = 1; "selector_focused.bg" = 12;
"statusline_error.reverse" = true; "selector_focused.fg" = 15;
"statusline_success.fg" = 2; "completion_pill.bg" = 12;
"statusline_success.reverse" = true; "completion_default.bg" = 8;
"completion_default.bg" = 0; "completion_default.fg" = 15;
}; };
}; };
}; };