unbind C-b set -g prefix m-a bind m-a send-prefix set-option -g default-terminal "screen-256color" set -g xterm-keys on #setw -g monitor-activity on #set -g visual-activity on set -g mode-keys vi set -g status-keys vi # Theme #set-option -g status-style attr=default # status bar set-option -g status-style "fg=colour4 bg=default" #set-option -g status-justify centre set-option -g status-justify absolute-centre # status bar windows set-option -g window-status-style "fg=colour4 bg=default" # status bar selected window set -g window-status-current-style "fg=colour13 bg=default" #set-window-option -g window-status-current-attr bold default # pane borders set-option -g pane-border-style "fg=colour8 bg=default" set-option -g pane-active-border-style "fg=colour4 bg=default" # pane number display set-option -g display-panes-colour colour4 set-option -g display-panes-active-colour colour5 # messages set-option -g message-style "fg=colour2 bg=default" # clock set-window-option -g clock-mode-colour colour4 # sizes set -g status-interval 60 set -g status-left-length 20 set -g status-left '(#S) ' #zoom #{?window_zoomed_flag, ,🔍} set -g base-index 0 set -s escape-time 0 bind r source-file ~/.tmux.conf \; display-message "Config reloaded" bind C command-prompt -p "Name of new window:" "new-window -n '%%'" # moving between panes with vim movement keys bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R # Creating panes with vim movement keys bind -r H split-window -hb bind -r J split-window -v bind -r K split-window -vb bind -r L split-window -h # resize panes with vim movement keys bind -r m-h resize-pane -L 1 bind -r m-j resize-pane -D 1 bind -r m-k resize-pane -U 1 bind -r m-l resize-pane -R 1 bind -r m-H resize-pane -L 10 bind -r m-J resize-pane -D 10 bind -r m-K resize-pane -U 10 bind -r m-L resize-pane -R 10 # Swap with marked pane bind S swap-pane # clipboard stuff bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xsel -bi' bind P run 'xsel -bo | tmux load-buffer - ; tmux paste-buffer' # cursor shape in nvim set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # recommended by nvim :healthcheck set-option -sa terminal-overrides ',rxvt-256color:RGB' # tmux-url-select bind u run tmux-url-select