kitty: move macos fonts to module
This commit is contained in:
parent
0f4fe1501b
commit
756cfaa3a8
2 changed files with 21 additions and 14 deletions
|
@ -14,17 +14,28 @@ in
|
|||
enable = true;
|
||||
shellIntegration.enableFishIntegration = true;
|
||||
|
||||
settings = {
|
||||
font_family = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight\"";
|
||||
bold_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light\"";
|
||||
italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight Italic\"";
|
||||
bold_italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light Italic\"";
|
||||
background = "#050505";
|
||||
background_opacity = 0.98;
|
||||
font_size = 12;
|
||||
settings =
|
||||
let
|
||||
macos_fonts = {
|
||||
font_family = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light\"";
|
||||
bold_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular\"";
|
||||
italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light Italic\"";
|
||||
bold_italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular Italic\"";
|
||||
};
|
||||
linux_fonts = {
|
||||
font_family = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight\"";
|
||||
bold_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light\"";
|
||||
italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"ExtraLight Italic\"";
|
||||
bold_italic_font = "family=\"JetBrainsMono Nerd Font\" style=\"Light Italic\"";
|
||||
};
|
||||
in
|
||||
{
|
||||
background = "#050505";
|
||||
background_opacity = 0.98;
|
||||
font_size = 12;
|
||||
|
||||
# allow_remote_control = "yes";
|
||||
};
|
||||
# allow_remote_control = "yes";
|
||||
} // (if !macos then linux_fonts else macos_fonts);
|
||||
|
||||
extraConfig =
|
||||
let
|
||||
|
|
|
@ -40,10 +40,6 @@
|
|||
# '';
|
||||
|
||||
programs.kitty.settings = {
|
||||
font_family = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light\"";
|
||||
bold_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular\"";
|
||||
italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Light Italic\"";
|
||||
bold_italic_font = lib.mkForce "family=\"JetBrainsMono Nerd Font Mono\" style=\"Regular Italic\"";
|
||||
background_opacity = lib.mkForce 0.94;
|
||||
background = lib.mkForce "#171717";
|
||||
font_size = lib.mkForce 16.0;
|
||||
|
|
Loading…
Reference in a new issue