82 lines
1.9 KiB
Plaintext
82 lines
1.9 KiB
Plaintext
# Set prefix key to C-x
|
|
unbind C-b
|
|
set -g prefix C-x
|
|
bind C-x send-prefix
|
|
|
|
## set terminal bell
|
|
set -g bell-action any
|
|
|
|
## Set default terminal
|
|
set -g default-terminal "screen-256color"
|
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
|
|
|
|
|
# i3 split bindings
|
|
bind g split-window -h
|
|
bind v split-window -v
|
|
unbind '"'
|
|
unbind %
|
|
unbind m
|
|
|
|
# vim split navigation
|
|
bind h select-pane -L
|
|
bind j select-pane -D
|
|
bind k select-pane -U
|
|
bind l select-pane -R
|
|
|
|
# equalize splits with x
|
|
unbind space
|
|
bind space select-layout even-vertical
|
|
|
|
# window switching
|
|
unbind n
|
|
unbind c
|
|
bind c new-window
|
|
unbind ,
|
|
unbind .
|
|
bind , previous-window
|
|
bind . next-window
|
|
bind-key n command-prompt "rename-window '%%'"
|
|
|
|
# rotate window
|
|
bind J rotate-window
|
|
bind K rotate-window
|
|
|
|
# change kill window bind
|
|
unbind &
|
|
unbind x
|
|
bind x kill-session
|
|
|
|
# switch to next session
|
|
bind S switch-client -n
|
|
|
|
# force a reload of the config file
|
|
unbind r
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
set -g status on
|
|
set -g pane-base-index 1
|
|
set -g base-index 1
|
|
set -g set-titles on
|
|
set -g aggressive-resize on
|
|
set-option -g set-titles-string '#{pane_current_command}'
|
|
set-option -g visual-activity on
|
|
set-option -g status-position bottom
|
|
set-option -g renumber-windows on
|
|
set-window-option -g monitor-activity off
|
|
set-option -g allow-rename off
|
|
set -g detach-on-destroy off
|
|
|
|
# copy mode
|
|
unbind [
|
|
bind Escape copy-mode
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection # Begin selection in copy mode.
|
|
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle # Begin selection in copy mode.
|
|
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel "wl-copy" # Yank selection in copy mode.
|
|
|
|
set -g mouse on
|
|
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
|
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
|
|
|
# Colorscheme file
|