nix/user/common/foot/default.nix

18 lines
687 B
Nix
Raw Normal View History

{ style, setting, util, ... }: let
2024-04-29 02:03:44 +03:00
dpiaware = if setting.foot.font.dpi then "yes" else "no";
in {
2024-04-06 03:03:58 +03:00
config = util.trimTabs ''
2024-04-04 13:51:06 +03:00
font=${style.font.monospace.name}:size=${toString(style.font.size.terminal)}
# font-bold=${style.font.monospace.name}:size=${toString(style.font.size.terminal)}
font-italic=${style.font.monospace.name}:size=${toString(style.font.size.terminal)}
font-bold-italic=${style.font.monospace.name}:size=${toString(style.font.size.terminal)}
2024-04-29 02:03:44 +03:00
dpi-aware=${dpiaware}
font-size-adjustment=${toString(setting.foot.font.step)}
2024-04-03 02:05:36 +03:00
[colors]
2024-04-04 13:51:06 +03:00
alpha=${toString(style.opacity.terminal)}
2024-04-06 03:03:58 +03:00
background=${style.color.bg.dark}
2024-05-06 14:08:50 +03:00
foreground=${style.color.fg.light}
'';
2024-04-03 02:05:36 +03:00
}