Skip to content

Commit

Permalink
Add wezterm option to change font size
Browse files Browse the repository at this point in the history
  • Loading branch information
joinemm committed Jul 8, 2024
1 parent bc330ac commit 7863ceb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
19 changes: 16 additions & 3 deletions home-modules/wezterm.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
programs.wezterm = {
config,
lib,
...
}: {
options.programs.wezterm = {
fontSize = lib.mkOption {
type = lib.types.str;
default = "10.0";
};
};

config.programs.wezterm = {
enable = true;
enableZshIntegration = true;
extraConfig =
extraConfig = let
fontSize = config.programs.wezterm.fontSize;
in
/*
lua
*/
Expand All @@ -14,7 +27,7 @@
return {
front_end = "WebGpu",
audible_bell = "Disabled",
font_size = 10.0,
font_size = ${fontSize},
window_background_opacity = 0.85,
hide_tab_bar_if_only_one_tab = true,
Expand Down
1 change: 1 addition & 0 deletions hosts/x1/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ in {
];

services.poweralertd.enable = true;
programs.wezterm.fontSize = "11.0";
};
};
}

0 comments on commit 7863ceb

Please sign in to comment.