dotfiles/tmux/.tmux.conf

75 lines
1.7 KiB
Plaintext
Raw Normal View History

2019-03-24 15:03:56 +01:00
# 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
2019-11-23 02:13:12 +01:00
## Set default terminal
2019-11-25 00:44:30 +01:00
set -g default-terminal "screen-256color"
2020-01-11 19:44:02 +01:00
set -ag terminal-overrides ",xterm-256color:RGB"
2019-03-24 15:03:56 +01:00
# 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
2020-04-08 12:51:57 +02:00
bind space select-layout even-vertical
2019-03-24 15:03:56 +01:00
# 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 '%%'"
# change kill window bind
unbind &
2020-04-08 12:51:57 +02:00
unbind x
bind x kill-session
2019-03-24 15:03:56 +01:00
# 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
# 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-selection # 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"
2019-11-23 02:13:12 +01:00
# Colorscheme file
source-file ~/.tmux/iceberg.tmux.conf