From 45e272024b9c6de0dcdec6659479725adddcdbd2 Mon Sep 17 00:00:00 2001 From: ArgentumCation Date: Sun, 17 Mar 2024 19:10:33 -0400 Subject: [PATCH] add tmux config --- private_dot_config/tmux/executable_tmux.conf | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/private_dot_config/tmux/executable_tmux.conf b/private_dot_config/tmux/executable_tmux.conf index 7cd0664..d1c9146 100644 --- a/private_dot_config/tmux/executable_tmux.conf +++ b/private_dot_config/tmux/executable_tmux.conf @@ -1,2 +1,56 @@ # Tell tmux to use 256-color internally set -ga terminal-overrides ",xterm-256color:Tc" + +# use C-a as prefix +set-option -g prefix C-a +bind-key a send-prefix + +# C-a C-a for last window +bind-key C-a last-window + +# 1-index windows +set -g base-index 1 + +# no delay after prefix +set -s escape-time 0 + +# resize to smallest active client +setw -g aggressive-resize on + +# Set status bar +set -g status-bg black +set -g status-fg white +set -g status-left "" +set -g status-right "#[fg=green]#H" + +# vi bindings +setw -g mode-keys vi + +# mouse enable +set -g mouse on + +# split panes using | and - +bind | split-window -h +bind h split-window -h +bind - split-window -v +bind v 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 + +bind-key -n C-Space new-window +bind-key -n C-S-Left prev +bind-key -n C-S-Right next +# bind -n C-left swap-window -t -1 +# bind -n C-right swap-window -t +1 + +# reload config file (change file location to your the tmux.conf you want to use) +bind r source-file "$XDG_CONFIG_HOME/tmux.conf" + +# don't rename windows automatically +set-option -g allow-rename off