feat(darwin): adjust terminal font size

This commit is contained in:
Ryan Yin
2025-12-01 10:56:57 +08:00
parent 618f26017c
commit 81dbc5b8de
4 changed files with 12 additions and 3 deletions

View File

@@ -50,7 +50,7 @@
bold_italic = {
family = "Maple Mono NF CN";
};
size = if pkgs.stdenv.isDarwin then 14 else 13;
size = 13;
};
terminal = {
# Spawn a nushell in login mode via `bash`

View File

@@ -17,7 +17,7 @@
settings = {
main = {
term = "foot"; # or "xterm-256color" for maximum compatibility
font = "Maple Mono NF CN:size=14";
font = "Maple Mono NF CN:size=13";
dpi-aware = "no"; # scale via window manager instead
resize-keep-grid = "no"; # do not resize the window on font resizing

View File

@@ -19,7 +19,7 @@
font = {
name = "Maple Mono NF CN";
# use different font size on macOS
size = if pkgs.stdenv.isDarwin then 14 else 13;
size = 13;
};
# consistent with other terminal emulators

9
home/darwin/terminal.nix Normal file
View File

@@ -0,0 +1,9 @@
{ lib, ... }:
let
fontSize = 14;
in
{
programs.alacritty.settings.font.size = lib.mkForce fontSize;
programs.ghostty.settings.font-size = lib.mkForce fontSize;
programs.kitty.font.size = lib.mkForce fontSize;
}