mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-09 06:05:10 +02:00
feat(darwin): adjust terminal font size
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
bold_italic = {
|
bold_italic = {
|
||||||
family = "Maple Mono NF CN";
|
family = "Maple Mono NF CN";
|
||||||
};
|
};
|
||||||
size = if pkgs.stdenv.isDarwin then 14 else 13;
|
size = 13;
|
||||||
};
|
};
|
||||||
terminal = {
|
terminal = {
|
||||||
# Spawn a nushell in login mode via `bash`
|
# Spawn a nushell in login mode via `bash`
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
settings = {
|
settings = {
|
||||||
main = {
|
main = {
|
||||||
term = "foot"; # or "xterm-256color" for maximum compatibility
|
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
|
dpi-aware = "no"; # scale via window manager instead
|
||||||
resize-keep-grid = "no"; # do not resize the window on font resizing
|
resize-keep-grid = "no"; # do not resize the window on font resizing
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
font = {
|
font = {
|
||||||
name = "Maple Mono NF CN";
|
name = "Maple Mono NF CN";
|
||||||
# use different font size on macOS
|
# use different font size on macOS
|
||||||
size = if pkgs.stdenv.isDarwin then 14 else 13;
|
size = 13;
|
||||||
};
|
};
|
||||||
|
|
||||||
# consistent with other terminal emulators
|
# consistent with other terminal emulators
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user