diff --git a/part/Setting.nix b/part/Setting.nix index d5a0d725..686d4496 100644 --- a/part/Setting.nix +++ b/part/Setting.nix @@ -48,6 +48,7 @@ font = { step = "1"; dpi = "yes"; + forceWhite = false; }; }; diff --git a/user/home/module/foot/Init.nix b/user/home/module/foot/Init.nix index 8ad8c460..ff12ac7c 100644 --- a/user/home/module/foot/Init.nix +++ b/user/home/module/foot/Init.nix @@ -1,4 +1,10 @@ -{ style, setting, util, ... }: { +{ style, setting, util, ... }: let + foreground = if setting.foot.font.forceWhite then '' + foreground=ffffff + '' else '' + foreground=${style.color.fg.light} + ''; +in { config = util.trimTabs '' font=${style.font.monospace.name}:size=${toString(style.font.size.terminal)} # font-bold=${style.font.monospace.name}:size=${toString(style.font.size.terminal)} @@ -10,6 +16,5 @@ [colors] alpha=${toString(style.opacity.terminal)} background=${style.color.bg.dark} - foreground=${style.color.fg.light} - ''; + '' + foreground; }