From b00fea008282df9171fe94063e9d8bb87605e9ea Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Wed, 29 Oct 2025 17:17:03 +0700 Subject: [PATCH] fix(ghostty): tmux tweaking and bg opacity --- modules/darwin/home/programs/ghostty.nix | 1 + modules/home/rsydn/shell/tmux.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/darwin/home/programs/ghostty.nix b/modules/darwin/home/programs/ghostty.nix index 07d1934..16a2078 100644 --- a/modules/darwin/home/programs/ghostty.nix +++ b/modules/darwin/home/programs/ghostty.nix @@ -5,6 +5,7 @@ settings = { theme = "dracula"; + background-opacity = 0.75; command = "shell:${config.home.profileDirectory}/bin/tmux new-session -A -s ghostty"; keybind = [ "cmd+k=text:\\x01K" ]; diff --git a/modules/home/rsydn/shell/tmux.nix b/modules/home/rsydn/shell/tmux.nix index fc13357..8e9ebc3 100644 --- a/modules/home/rsydn/shell/tmux.nix +++ b/modules/home/rsydn/shell/tmux.nix @@ -22,8 +22,8 @@ set-option -g default-terminal "screen-256color" set-option -ga terminal-overrides ",*256col*:Tc" set-option -g focus-events on - set -s extended-keys on - set -as terminal-features 'xterm-ghostty:extkeys' + # Avoid CSI-u newline remapping that breaks Neovim pastes + set -as terminal-features 'xterm-ghostty:bpaste,clipboard,RGB' set-option -g status-style "bg=#282a36 fg=#f8f8f2" set -g status-interval 5 setw -g automatic-rename on