From 8869f224d0359be89c15dae83f00133a685beee7 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 15 Jan 2025 11:23:42 +0300 Subject: [PATCH] Thunderbird: Update settings. --- home/program/thunderbird/default.nix | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/home/program/thunderbird/default.nix b/home/program/thunderbird/default.nix index aa8bcaa..98c6578 100644 --- a/home/program/thunderbird/default.nix +++ b/home/program/thunderbird/default.nix @@ -12,22 +12,31 @@ isDefault = true; withExternalGnupg = true; }; - settings = { + settings = let + dayEnd = 19; + dayStart = 10; + fontSize = config.module.style.font.size.application; + reminderMinutes = 10; + snoozeMinutes = 10; + in + { "browser.download.useDownloadDir" = true; - "calendar.alarms.defaultsnoozelength" = 10; + "calendar.alarms.defaultsnoozelength" = snoozeMinutes; + "calendar.alarms.eventalarmlen" = reminderMinutes; "calendar.alarms.onforevents" = 0; "calendar.alarms.onfortodos" = 0; "calendar.alarms.show" = true; "calendar.alarms.soundType" = 1; "calendar.alarms.soundURL" = "file://${}"; + "calendar.alarms.todoalarmlen" = reminderMinutes; "calendar.item.editInTab" = true; - "calendar.notifications.times" = "-PT10M"; + "calendar.notifications.times" = "-PT${toString reminderMinutes}M"; "calendar.view-minimonth.showWeekNumber" = false; - "calendar.view.dayendhour" = 19; - "calendar.view.daystarthour" = 10; - "font.minimum-size.x-western" = 16; - "font.size.monospace.x-western" = 16; - "font.size.variable.x-western" = 16; + "calendar.view.dayendhour" = dayEnd; + "calendar.view.daystarthour" = dayStart; + "font.minimum-size.x-western" = fontSize; + "font.size.monospace.x-western" = fontSize; + "font.size.variable.x-western" = fontSize; "mail.biff.use_system_alert" = true; "mailnews.start_page.enabled" = false; "pdfjs.enabledCache.state" = false;