config: add ghostty

main
sudo pacman -Syu 2024-12-27 15:47:30 +07:00
parent 35c547d93f
commit 4d7961e798
5 changed files with 35 additions and 6 deletions

View File

@ -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)

View File

@ -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"

26
data/ghostty/config Normal file
View File

@ -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

View File

@ -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

View File

@ -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",