dotfiles/.config/tmux/tmux.conf

86 lines
2.3 KiB
Bash
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# set -g default-terminal "screen-256color"
# set -g default-terminal "xterm-256color"
set -g default-terminal "tmux-256color"
# set -as terminal-features ",xterm-256color:extkeys"
set -as terminal-features ',xterm-kitty:RGB'
set -g xterm-keys on
set -g allow-rename off
set -s escape-time 1
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# bind-key -n 'C-M' send-keys -l '^m'
# set -s extended-keys on
# bind-key -n C-Enter send-keys '}'
bind-key i display-message "test i"
bind-key C-Enter display-message "test enter"
# bind -n C-Enter send-keys ""
# For image.nvim
set -gq allow-passthrough on
set -g visual-activity off
set -g history-limit 10000
unbind r
bind r source-file ~/.config/tmux/tmux.conf
unbind C-t
unbind C-b
set -g prefix C-s
set -g mouse on
setw -g automatic-rename on
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
set -g bell-action none
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'niksingh710/minimal-tmux-status'
# set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @vim_navigator_mapping_left "C-Left"
set -g @vim_navigator_mapping_right "C-Right"
set -g @vim_navigator_mapping_up "C-Up"
set -g @vim_navigator_mapping_down "C-Down"
# Theme Settings
set -g @minimal-tmux-use-arrow false
set -g @minimal-tmux-status "top"
set -g @minimal-tmux-right true
set -g @minimal-tmux-justify "centre"
set -g @minimal-tmux-bg "#933737"
# set -g @minimal-tmux-bg "#b22c2c"
# set -g @minimal-tmux-bg "#202020"
set -g @minimal-tmux-fg "#000000"
# set -g @minimal-tmux-fg "#c3c3c3"
bind-key t set-option status
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind-key b set-option status
# Swap the split bindings to be consistent with nvim
bind -n M-v split-window -h -c "#{pane_current_path}"
bind -n M-s split-window -v -c "#{pane_current_path}"
bind x kill-window
bind -n M-x killp
bind -n M-f resize-pane -Z
bind - copy-mode
bind -n M-i next-window
bind -n M-m previous-window
run '/usr/share/tmux-plugin-manager/tpm'