From 5ed2eb66378d917eba7715f1985498403f2c3b83 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 29 Jun 2024 16:45:32 -0400 Subject: [PATCH] aly/thunderbird: add work profile and desktop entry --- homes/aly/mail/default.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/homes/aly/mail/default.nix b/homes/aly/mail/default.nix index 6670dd6e..8be6acd5 100644 --- a/homes/aly/mail/default.nix +++ b/homes/aly/mail/default.nix @@ -29,9 +29,25 @@ in { thunderbird = { enable = true; - profiles.default = { - isDefault = true; + profiles = { + default.isDefault = true; + work = {}; }; }; }; + + xdg.desktopEntries.thunderwork = { + categories = ["Application" "Network" "Chat" "Email" "Feed" "GTK" "News"]; + exec = "thunderbird -P work --name thunderwork %U"; + comment = "Read and write e-mails or RSS feeds, or manage tasks on calendars."; + genericName = "Email Client"; + icon = "thunderbird"; + mimeType = ["message/rfc822" "x-scheme-handler/mailto" "text/calendar" "text/x-vcard"]; + name = "Thunderbird (work)"; + startupNotify = true; + terminal = false; + settings = { + StartupWMClass = "thunderwork"; + }; + }; }