From 11c34eecb87f7dab830d63098a8e2d5587ae7e9f Mon Sep 17 00:00:00 2001 From: 0xrsydn Date: Wed, 25 Mar 2026 15:27:24 +0700 Subject: [PATCH] chore: tmux config update, homebrew cleanshit up --- modules/darwin/homebrew.nix | 1 - modules/home/shell/tmux.nix | 24 +++++++++++++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/modules/darwin/homebrew.nix b/modules/darwin/homebrew.nix index 617ad8b..4343458 100644 --- a/modules/darwin/homebrew.nix +++ b/modules/darwin/homebrew.nix @@ -38,7 +38,6 @@ in "obs" "neohtop" "orbstack" - "ghostty" "openvpn-connect" ]; description = "Homebrew casks to install."; diff --git a/modules/home/shell/tmux.nix b/modules/home/shell/tmux.nix index 8de8a45..8d575b1 100644 --- a/modules/home/shell/tmux.nix +++ b/modules/home/shell/tmux.nix @@ -21,17 +21,35 @@ set-option -ga terminal-overrides ",*256col*:Tc" set-option -g focus-events on # Avoid CSI-u newline remapping that breaks Neovim pastes - set -as terminal-features 'xterm-ghostty:bpaste,clipboard,RGB' + set -as terminal-features 'xterm-kitty:clipboard,RGB' set -g status-interval 5 setw -g automatic-rename on set -g renumber-windows on bind r source-file ~/.tmux.conf \; display-message "tmux reloaded" - bind | split-window -h + bind | split-window -h bind - split-window -v unbind '"' unbind % set -g display-panes-time 1500 - bind k send-keys -R \; send-keys C-l \; clear-history + bind C-k send-keys -R \; send-keys C-l \; clear-history + + # Vim-style pane navigation (prefix + hjkl) + bind h select-pane -L + bind j select-pane -D + bind k select-pane -U + bind l select-pane -R + + # No-prefix pane switching (Option + arrow) + bind -n M-Left select-pane -L + bind -n M-Right select-pane -R + bind -n M-Up select-pane -U + bind -n M-Down select-pane -D + + # Pane resizing (prefix + Shift+hjkl) + bind H resize-pane -L 5 + bind J resize-pane -D 5 + bind K resize-pane -U 5 + bind L resize-pane -R 5 # Ensure tmux panes spawn login nu so Starship integration runs set -g default-shell "${config.home.profileDirectory}/bin/nu" set -g default-command "${config.home.profileDirectory}/bin/nu --login"