{ lib, config, }: let cfg = config.beeMods.terminal; in { config = lib.mkIf cfg.ghostty { programs.ghostty = { enable = true; enableFishIntegration = true; settings = { config-file = lib.optionals config.beeMods.matugen.enable [ "~/.config/ghostty/colors.conf" ]; font-family = cfg.font.family; font-size = cfg.font.size; alpha-blending = "linear"; window-padding-x = cfg.window.padding-x; window-padding-y = cfg.window.padding-y; font-feature = [ "cv10" "cv06" "ss02" "ss03" ] ++ ( if cfg.font.ligatures then [ "calt" "liga" "dlig" ] else [ "-calt" "-liga" "-dlig" ] ); bold-is-bright = cfg.font.bright_color_is_bold; gtk-titlebar = false; gtk-single-instance = true; gtk-tabs-location = "bottom"; gtk-wide-tabs = false; resize-overlay = "never"; copy-on-select = false; confirm-close-surface = false; mouse-hide-while-typing = true; window-inherit-working-directory = false; }; }; }; }