Skip to content

Commit

Permalink
ghostty terminal config
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Jan 6, 2025
1 parent dca92cf commit 0ab1f88
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
22 changes: 5 additions & 17 deletions config/ghostty/config
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
# https://ghostty.org/docs/config/reference
# ghostty +show-config --default --docs


window-decoration = true
gtk-adwaita = true
gtk-wide-tabs = true
gtk-tabs-location = top
gtk-titlebar = true
config-file = ?config_macos
config-file = ?config_linux

window-theme = dark
window-height = 22
window-width = 110

font-family = "SauceCodePro Nerd Font"
# ghostty +list-fonts
font-family = "JetBrainsMono Nerd Font Mono"
font-family = "Noto Color Emoji"
font-size = 16

# Draw fonts with a thicker stroke, if supported. This is only supported currently on macOS.
font-thicken = false


theme = github_dimmed

Expand All @@ -40,13 +36,5 @@ unfocused-split-fill =

scrollback-limit = 10000000


keybind = super+t=new_tab
keybind = super+c=copy_to_clipboard
keybind = super+k=reset
keybind = super+c=copy_to_clipboard
keybind = super+v=paste_from_clipboard
keybind = super+w=close_surface

window-padding-x = 6
window-padding-y = 6
13 changes: 13 additions & 0 deletions config/ghostty/config_linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
window-decoration = true
gtk-adwaita = true
gtk-wide-tabs = true
gtk-tabs-location = top
gtk-titlebar = true


keybind = super+t=new_tab
keybind = super+c=copy_to_clipboard
keybind = super+k=reset
keybind = super+c=copy_to_clipboard
keybind = super+v=paste_from_clipboard
keybind = super+w=close_surface
5 changes: 5 additions & 0 deletions config/ghostty/config_macos
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
window-decoration = true
macos-titlebar-style = transparent

# Draw fonts with a thicker stroke, if supported. This is only supported currently on macOS.
font-thicken = true
11 changes: 11 additions & 0 deletions config/ghostty/install-config
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,14 @@ mkdir -p "${THEMES_PATH}"
# Install
lnx "${SRC}/config" "${CONF_PATH}/config"
lnx "${SRC}/github_dimmed" "${THEMES_PATH}/github_dimmed"

case "$(uname)" in
"Darwin")
lnx "${SRC}/config_macos" "${CONF_PATH}/config_macos"
;;
"Linux")
lnx "${SRC}/config_macos" "${CONF_PATH}/config_linux"
;;
*)
;;
esac

0 comments on commit 0ab1f88

Please sign in to comment.