diff --git a/home.nix b/home.nix index ca35ed1..b2f68f3 100644 --- a/home.nix +++ b/home.nix @@ -52,6 +52,7 @@ imports = [ ./packages.nix + ./programs/ghostty.nix ./programs/git.nix ./programs/i3.nix ./programs/pi.nix diff --git a/programs/ghostty.nix b/programs/ghostty.nix new file mode 100644 index 0000000..5ad8569 --- /dev/null +++ b/programs/ghostty.nix @@ -0,0 +1,33 @@ +{ ... }: + +# Réglages repris d'Omarchy - https://github.com/basecamp/omarchy/blob/master/config/ghostty/config +{ + programs.ghostty = { + enable = true; + enableZshIntegration = true; + settings = { + font-family = "JetBrainsMono Nerd Font"; + font-size = 10; + theme = "Catppuccin Mocha"; + + window-padding-x = 14; + window-padding-y = 14; + confirm-close-surface = false; + resize-overlay = "never"; + + cursor-style = "block"; + cursor-style-blink = false; + shell-integration-features = "no-cursor,ssh-env"; + + keybind = [ + "shift+insert=paste_from_clipboard" + "control+insert=copy_to_clipboard" + # Distingue Shift+Entrée d'Entrée pour les TUI (Claude Code…) + "shift+enter=csi:13;2u" + ]; + + # Lenteurs sous Hyprland - https://github.com/ghostty-org/ghostty/discussions/3224 + async-backend = "epoll"; + }; + }; +}