dotfiles/.config/tmux/tmux.conf
2024-03-14 22:36:48 +00:00

27 lines
776 B
Bash

set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",*:RGB"
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g status-style 'bg=#282828 fg=#D4BE98'
set-option -g status-position top
set-option -g status-right ""
set -g status-left-length 20
set-option -sg escape-time 10
bind r source-file ~/.config/tmux/tmux.conf
set -g base-index 1
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane switching
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind-key -r f run-shell "tmux neww ~/.local/share/scripts/tmux-sessionizer.sh"