From 83e09ae00b4af9532dac797271635db9114d1a06 Mon Sep 17 00:00:00 2001 From: Jeff Billimek Date: Tue, 31 Dec 2024 09:29:05 -0500 Subject: [PATCH] add ghostty Signed-off-by: Jeff Billimek --- home-manager/common/features/cli/default.nix | 1 + home-manager/common/features/cli/ghostty.nix | 44 ++++++++++++++++++++ hosts/common/darwin/homebrew.nix | 1 + 3 files changed, 46 insertions(+) create mode 100644 home-manager/common/features/cli/ghostty.nix diff --git a/home-manager/common/features/cli/default.nix b/home-manager/common/features/cli/default.nix index 3d9b183..c42de0f 100644 --- a/home-manager/common/features/cli/default.nix +++ b/home-manager/common/features/cli/default.nix @@ -6,6 +6,7 @@ ./bat.nix ./direnv.nix ./fish.nix + ./ghostty.nix ./nvim.nix ./gh.nix ./git.nix diff --git a/home-manager/common/features/cli/ghostty.nix b/home-manager/common/features/cli/ghostty.nix new file mode 100644 index 0000000..14962a7 --- /dev/null +++ b/home-manager/common/features/cli/ghostty.nix @@ -0,0 +1,44 @@ +{ + # place ~/$HOME/Library/Application\ Support/com.mitchellh.ghostty/config file + home.file."Library/Application Support/com.mitchellh.ghostty/config".text = '' + clipboard-trim-trailing-spaces = true + copy-on-select = true + + # use default fonts for now because the custom fonts render symbols too small + # see https://github.com/ghostty-org/ghostty/discussions/3501 + # font-family = "MonaspiceNe NFM" + # font-family-bold = "MonaspiceNe NFM Bold" + # font-family-bold-italic = "MonaspiceRn NFM Bold Italic" + # font-family-italic = "MonaspiceRn NFM Italic" + font-size = 15 + + keybind = shift+page_down=scroll_page_down + keybind = shift+page_up=scroll_page_up + keybind = super+`=toggle_quick_terminal + keybind = super+left=previous_tab + keybind = super+right=next_tab + + macos-auto-secure-input = true + macos-icon = custom-style + macos-icon-frame = aluminum + macos-icon-ghost-color = #cd6600 + macos-icon-screen-color = #cd6600 + macos-option-as-alt = true + macos-secure-input-indication = true + macos-titlebar-style = tabs + + quit-after-last-window-closed = true + shell-integration = "detect" + shell-integration-features = cursor,sudo,title + + #theme = "catppuccin-mocha" + #theme = Dracula + + window-height = 35 + window-padding-y = 0 + window-save-state = always + window-theme = ghostty + # window-title-font-family = "MonaspiceNe NFM" + window-width = 280 + ''; +} diff --git a/hosts/common/darwin/homebrew.nix b/hosts/common/darwin/homebrew.nix index 359f7b3..e898d65 100644 --- a/hosts/common/darwin/homebrew.nix +++ b/hosts/common/darwin/homebrew.nix @@ -17,6 +17,7 @@ "1password-cli" # need to install CLI via brew too to make biometric unlock work with GUI app "betterzip" # zip/unzip for quicklook "discord" # chat + "ghostty" "iterm2" # terminal "karabiner-elements" # keyboard remapping "notunes" # disable iTunes auto-launch