Skip to content

Commit

Permalink
config: add ghostty
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Dec 27, 2024
1 parent 35c547d commit 4d7961e
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions data/data.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
26 changes: 26 additions & 0 deletions data/ghostty/config
Original file line number Diff line number Diff line change
@@ -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
6 changes: 2 additions & 4 deletions data/kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions data/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand All @@ -72,7 +72,7 @@ return {
mods = "CTRL|SHIFT",
action = act.ActivateTabRelative(1),
},
-- Sync with Zellij
-- Inspire from Zellij
{
key = "n",
mods = "ALT",
Expand Down

0 comments on commit 4d7961e

Please sign in to comment.