# Run the tmux_status script for time and battery # in the status bar run -b "~/bin/tmux_status.sh >/dev/null" # Use a sane prefix key unbind C-b set-option -g prefix C-g bind-key C-g send-prefix # Make the split keys less terrible, though you shouldn't # need them unbind '"' bind | split-window -h unbind % bind - split-window -v # Quickly reload the config file when needed. bind r source-file ~/.tmux.conf # Vim keybindings for navigating panes. # Repeatable (hence -r) vim keybindings for resizing. bind j select-pane -D bind k select-pane -U bind h select-pane -L bind l select-pane -R bind -r C-h resize-pane -L bind -r C-j resize-pane -D bind -r C-k resize-pane -U bind -r C-l resize-pane -R # Make a subpane the main pane with Enter #bind Enter swap-pane -t 0 \; select-pane -t 0 bind Enter if-shell "[ #{pane_at_top} -eq 1 ]" { select-pane -l } \; swap-pane -t 0 \; select-pane -t 0 \; select-layout main-horizontal # Create a new window with c unbind c bind c split-window \; swap-pane -t 0 \; select-layout main-horizontal \; select-pane -t 0 # Layout-preserving kill. unbind x bind x kill-pane \; select-layout main-horizontal # Set up the normal layout. set -g main-pane-height 75% set-hook -g after-new-window "select-layout main-horizontal" .