From 2f87d6b029465780aff73ee0376ab7e925dfe83c Mon Sep 17 00:00:00 2001 From: Adrian Abeyta Date: Tue, 4 Aug 2026 18:23:25 -0600 Subject: [PATCH] add tmux support --- .store/config.yaml | 1 + apps/.tmux.conf | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 apps/.tmux.conf diff --git a/.store/config.yaml b/.store/config.yaml index ec13740..545d85f 100644 --- a/.store/config.yaml +++ b/.store/config.yaml @@ -4,6 +4,7 @@ stores: files: - .omp - .emacs.d/init.el + - .tmux.conf bash: target: "~" files: diff --git a/apps/.tmux.conf b/apps/.tmux.conf new file mode 100644 index 0000000..4bce84d --- /dev/null +++ b/apps/.tmux.conf @@ -0,0 +1,52 @@ +# tmux config file +# with help from https://hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/ + +# remap prefix from 'C-b' to 'C-a' (easy with caps-lock remap) +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# switch panes using alt-arrow without prefix +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 + +# enable mouse control +set -g mouse on + +# don't rename windows automatically +set-option -g allow-rename off + +# faster, snappier +set -g escape-time 0 +set -g history-limit 200000 + +# use 256 colors + better terminal features +set -g default-terminal "tmux-256color" +set -as terminal-features ",xterm-256color:RGB" +set -g focus-events on + +# Start windows/panes at 1 (more human, less C) +set -g base-index 1 +setw -g pane-base-index 1 + +# Renumber windows when one is closed +set -g renumber-windows on + +# Status bar: simple + useful +set -g status-interval 5 +set -g status-left-length 40 +set -g status-right-length 120 +set -g status-left " #[bold]#S #[default]" +set -g status-right " %Y-%m-%d %H:%M " + +# Reduce “my panes renamed themselves” chaos +set -g allow-rename off +setw -g automatic-rename on