From 22b6712c240fea0643cfc01acfce1fda1f125b8a Mon Sep 17 00:00:00 2001 From: Grace Yoder Date: Thu, 3 Sep 2026 15:36:32 -0400 Subject: nix init --- home/tmux.nix | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 home/tmux.nix (limited to 'home/tmux.nix') diff --git a/home/tmux.nix b/home/tmux.nix new file mode 100644 index 0000000..3c3a5d1 --- /dev/null +++ b/home/tmux.nix @@ -0,0 +1,48 @@ +{ pkgs, ... }: + +{ + programs.tmux = { + enable = true; + mouse = true; + keyMode = "vi"; + baseIndex = 1; + prefix = "C-\\"; + terminal = "xterm-ghostty"; + plugins = with pkgs.tmuxPlugins; [ + sensible + yank + resurrect + continuum + { + plugin = rose-pine; + extraConfig = '' + set -g @rose_pine_variant 'main' + set -g @rose_pine_left_separator ' > ' + set -g @rose_pine_right_separator '  ' + set -g @rose_pine_field_separator ' | ' + set -g @rose_pine_window_separator ':' + set -g @rose_pine_window_status_separator '  ' + ''; + } + ]; + extraConfig = '' + set -g status-position top + set -g set-clipboard on + set -g set-titles on + set -g set-titles-string "#{session_name}" + setw -g pane-base-index 1 + set -g allow-passthrough all + set -as terminal-features ",xterm-ghostty:hyperlinks" + set -ga terminal-overrides ",xterm-ghostty:Tc" + + bind v split-window -h -c "#{pane_current_path}" + bind b split-window -v -c "#{pane_current_path}" + bind c new-window -c "#{pane_current_path}" + bind -n M-h select-pane -L + bind -n M-j select-pane -D + bind -n M-k select-pane -U + bind -n M-l select-pane -R + ''; + }; + +} -- cgit v1.3.1