From a97f97c548004bbc0fd8e25808b594af7548439b Mon Sep 17 00:00:00 2001 From: Pierre MARTIN Date: Tue, 13 Oct 2026 01:31:32 +0200 Subject: [PATCH] =?UTF-8?q?feat(ghostty):=20ajout=20du=20terminal=20Ghostt?= =?UTF-8?q?y=20(r=C3=A9glages=20Omarchy)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Police JetBrains Mono Nerd Font, thème Catppuccin Mocha, marges, Shift+Entrée distinct d'Entrée pour les TUI. Sakura reste le terminal d'i3 pour comparer. Co-Authored-By: Claude Opus 5.5 --- home.nix | 1 + programs/ghostty.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 programs/ghostty.nix 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"; + }; + }; +}