From 389164a5829b86c8e36ffb5573e9666a204f3afd Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Wed, 31 Dec 2025 08:10:45 +0100 Subject: [PATCH] ghostty: configure and bind --- AGENTS.md | 1 + GEMINI.md | 1 + dot_config/ghostty/config.tmpl | 18 ++++++++++++++++++ dot_config/hypr/hyprland.d/70-keybinds.conf | 8 ++++---- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 746ea93..4296459 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,6 +14,7 @@ This is a chezmoi dotfiles source tree. Key paths: - `dot_local/share/docs/external_hyprland.wiki` (sparse checkout `content`) renders to `~/.local/share/docs/hyprland.wiki`. - `dot_local/share/docs/external_waybar.wiki` renders to `~/.local/share/docs/waybar.wiki`. - Waybar manual pages are not stored in the repo; use `man 5 waybar` and `man 5 waybar-` for module docs. +- Ghostty docs are available locally at `/usr/share/ghostty`. ## Chezmoi Config (chezmoi.toml) - Source of truth: `~/.config/chezmoi/chezmoi.toml` (not tracked here). diff --git a/GEMINI.md b/GEMINI.md index 3f20256..009985c 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -32,6 +32,7 @@ The directory structure follows standard `chezmoi` conventions: * **Hyprland wiki:** `dot_local/share/docs/external_hyprland.wiki` (sparse checkout `content`) renders to `~/.local/share/docs/hyprland.wiki`. * **Waybar wiki:** `dot_local/share/docs/external_waybar.wiki` renders to `~/.local/share/docs/waybar.wiki`. * **Waybar man pages:** Not stored in the repo; use `man 5 waybar` and `man 5 waybar-`. +* **Ghostty docs:** Available locally at `/usr/share/ghostty`. ## Usage diff --git a/dot_config/ghostty/config.tmpl b/dot_config/ghostty/config.tmpl index 4771fd0..82dc5cd 100644 --- a/dot_config/ghostty/config.tmpl +++ b/dot_config/ghostty/config.tmpl @@ -1 +1,19 @@ theme = "{{ .chezmoi.config.data.theme }}" +font-family = "GeistMono Nerd Font" +font-size = 8 +background-opacity = 0.7 +background-opacity-cells = false +window-padding-x = 0 +window-padding-y = 0 +window-padding-balance = true +window-decoration = auto +window-inherit-working-directory = true +window-inherit-font-size = true +mouse-hide-while-typing = true +cursor-click-to-move = true +scrollback-limit = 134217728 +shell-integration-features = sudo,ssh-env,ssh-terminfo +quick-terminal-position = top +quick-terminal-size = 35%,75% +quick-terminal-autohide = false +keybind = global:super+backspace=toggle_quick_terminal diff --git a/dot_config/hypr/hyprland.d/70-keybinds.conf b/dot_config/hypr/hyprland.d/70-keybinds.conf index 86a8ee7..ae74d2a 100644 --- a/dot_config/hypr/hyprland.d/70-keybinds.conf +++ b/dot_config/hypr/hyprland.d/70-keybinds.conf @@ -4,9 +4,9 @@ # Set programs that you use $terminal = uwsm app -T -$terminal_backup = uwsm app -- kitty -$term_tmux = uwsm app -- kitty tmux -$term_tmux_append = uwsm app -- kitty tmux a +$terminal_backup = uwsm app -- ghostty +$term_tmux = uwsm app -- ghostty -e tmux +$term_tmux_append = uwsm app -- ghostty -e tmux a $filemanager = uwsm app -- nautilus $launcher = uwsm app -- sherlock $launcheralt = uwsm app -- owlry @@ -181,4 +181,4 @@ bind = $mainMod, Print, exec, grimblast --notify edit area bind = ALT_L, Print, exec, grimblast --notify copy screen bind = ALT_L SHIFT, Print, exec, grimblast --notify edit screen -bind = SHIFT, Print, exec, uwsm app -- kitty --app-id=scrrec wf-recorder -f ~/Videos/scrrec.mkv -y -g "$(slurp)" +bind = SHIFT, Print, exec, uwsm app -- ghostty --class=scrrec -e wf-recorder -f ~/Videos/scrrec.mkv -y -g "$(slurp)"