From 7a5bb2b71fd285969ee52b5dcb2719b64c29d133 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 10 Jan 2025 09:33:39 +0300 Subject: [PATCH] Thunderbird: Add work mail. --- home/account/default.nix | 32 +++++++++++++++++++++++++++ home/file/keyd/module/Thunderbird.nix | 23 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 home/file/keyd/module/Thunderbird.nix diff --git a/home/account/default.nix b/home/account/default.nix index faf884e..f3a2867 100644 --- a/home/account/default.nix +++ b/home/account/default.nix @@ -20,6 +20,24 @@ let } ); + mkWorkMail = + cfg: + mkMail ( + cfg + // { + imap = { + host = "home.local"; + port = 55143; + tls.enable = false; + }; + smtp = { + host = "home.local"; + port = 55025; + tls.enable = false; + }; + } + ); + mkHomeCalendar = { remote = { type = "caldav"; @@ -28,6 +46,14 @@ let }; }; + mkWorkCalendar = { + remote = { + type = "caldav"; + url = "http://home.local:55080"; + userName = "voronind"; + }; + }; + realName = "Dmitry Voronin"; in { @@ -58,6 +84,11 @@ in address = "trash@voronind.com"; userName = "trash@voronind.com"; }; + Work = mkWorkMail { + inherit realName; + address = "dd.voronin@fsight.ru"; + userName = "fs\\dd.voronin"; + }; }; # ISSUE: https://github.com/nix-community/home-manager/issues/5775 @@ -73,6 +104,7 @@ in medium = mkHomeCalendar; payment = mkHomeCalendar; work = mkHomeCalendar; + fsight = mkWorkCalendar; }; # ISSUE: https://github.com/nix-community/home-manager/issues/5933 diff --git a/home/file/keyd/module/Thunderbird.nix b/home/file/keyd/module/Thunderbird.nix new file mode 100644 index 0000000..91d277d --- /dev/null +++ b/home/file/keyd/module/Thunderbird.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: +{ + file = (pkgs.formats.ini { }).generate "keyd-thunderbird-config" { + "thunderbird" = { + "alt.x" = "C-w"; # Close tab. + "alt.u" = "C-S-t"; # Restore closed tab. + "alt.q" = "C-pageup"; # Prev tab. + "alt.e" = "C-pagedown"; # Next tab. + "alt.Q" = "C-S-pageup"; # Move tab left. + "alt.E" = "C-S-pagedown"; # Move tab right. + "alt.a" = "A-left"; # Go back. + "alt.d" = "A-right"; # Go forward. + "alt.w" = "p"; # Paste and go. + "alt.f" = "C-f"; # Find text. + "alt.N" = "S-f3"; # Find prev. + "alt.n" = "f3"; # Find next. + "alt.space" = "f6"; # Focus address bar. + "alt.r" = "C-f5"; # Full refresh. + "alt.m" = "C-m"; # Toggle tab mute. + "alt.s" = "A-p"; # Pin tab. + }; + }; +}