From 4d7961e798bd9198d9f38e1cf2fa11e919d5cf3b Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 27 Dec 2024 15:47:30 +0700 Subject: [PATCH] config: add ghostty --- README.md | 1 + data/data.toml | 4 ++++ data/ghostty/config | 26 ++++++++++++++++++++++++++ data/kitty/kitty.conf | 6 ++---- data/wezterm/wezterm.lua | 4 ++-- 5 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 data/ghostty/config diff --git a/README.md b/README.md index fab05d0..ce8e72a 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ go build ./cmd/dot - [neovim](https://github.com/neovim/neovim) - [kitty](https://github.com/kovidgoyal/kitty) - [wezterm](https://github.com/wez/wezterm) +- [ghostty](https://github.com/ghostty-org/ghostty) - [fd](https://github.com/sharkdp/fd) - [bat](https://github.com/sharkdp/bat) - [delta](https://github.com/dandavison/delta) diff --git a/data/data.toml b/data/data.toml index 50f5f78..4fc1c9a 100644 --- a/data/data.toml +++ b/data/data.toml @@ -58,6 +58,10 @@ url = "https://github.com/DinkDonk/kitty-icon/blob/main/kitty-light.icns?raw=tru internal = "data/wezterm" external = "~/.config/wezterm" +[[apps.ghostty.paths]] +internal = "data/ghostty" +external = "~/.config/ghostty" + [[apps.fd.paths]] internal = "data/fd/.ignore" external = "~/.ignore" diff --git a/data/ghostty/config b/data/ghostty/config new file mode 100644 index 0000000..a68219a --- /dev/null +++ b/data/ghostty/config @@ -0,0 +1,26 @@ +font-family = Iosevka Pacman +font-size = 18 +adjust-cell-height = 20% + +theme = catppuccin-mocha + +cursor-style-blink = false + +background-opacity = 0.95 +background-blur-radius = 20 + +window-padding-x = 16 +window-padding-y = 16 + +clipboard-trim-trailing-spaces = true + +quit-after-last-window-closed = true + +macos-option-as-alt = true + +# Inspire from Zellij +keybind = alt+n=new_split:right +keybind = alt+m=new_split:down +keybind = alt+p=goto_split:next +keybind = alt+[=previous_tab +keybind = alt+]=next_tab diff --git a/data/kitty/kitty.conf b/data/kitty/kitty.conf index 720bc5f..a6b0b42 100644 --- a/data/kitty/kitty.conf +++ b/data/kitty/kitty.conf @@ -38,7 +38,7 @@ tab_powerline_style round # https://sw.kovidgoyal.net/kitty/conf/#color-scheme background_opacity 0.95 -background_blur 32 +background_blur 20 # https://sw.kovidgoyal.net/kitty/conf/#advanced allow_remote_control yes @@ -53,10 +53,8 @@ macos_quit_when_last_window_closed yes action_alias launch_tab launch --cwd=oldest --type=tab --location=neighbor map kitty_mod+t launch_tab map super+t launch_tab -map kitty_mod+e open_url_with_hints -map super+e open_url_with_hints -# Sync with Zellij +# Inspire from Zellij map alt+n launch --cwd=oldest --location=vsplit map alt+m launch --cwd=oldest --location=hsplit map alt+p next_window diff --git a/data/wezterm/wezterm.lua b/data/wezterm/wezterm.lua index 5afa95b..741a49d 100644 --- a/data/wezterm/wezterm.lua +++ b/data/wezterm/wezterm.lua @@ -51,7 +51,7 @@ return { tab_max_width = 24, window_background_opacity = 0.95, - macos_window_background_blur = 32, + macos_window_background_blur = 20, native_macos_fullscreen_mode = true, @@ -72,7 +72,7 @@ return { mods = "CTRL|SHIFT", action = act.ActivateTabRelative(1), }, - -- Sync with Zellij + -- Inspire from Zellij { key = "n", mods = "ALT",