dotfiles/.config/tmux/tmux.conf

81 lines
2.4 KiB
Bash

# set 256color
# set -g default-terminal "tmux-256color"
# set default shell
set-option -g default-shell "/usr/bin/fish"
# change update interval from default of 15
set -g status-interval 1
# set escape time per nvim health check
set-option -sg escape-time 10
# set focus events per nvim health check
set-option -g focus-events on
# set term gui colors per nvim health check
#set -sa terminal-overrides ",alacritty:Tc"
# start windows and panes numbering at 1 instead of the default 0
set -g base-index 1
set -g pane-base-index 1
# turn moust control on
set -g mouse on
# change command prefix from C-b to C-a
set-option -g prefix C-a
# auto window name (may use more CPU)
setw -g automatic-rename on
# customized key bindings
bind r source-file ~/.config/tmux/tmux.conf # reload tmux conf with r
bind | split-window -h # use | for horizontal spli
bind - split-window -v # use - for vertical split
unbind '"' # unbind default horizontal split key
unbind % # unbind default vertical split key
# switch panes using alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# pane settings
#set -g pane-border-style fg=red
#set -g pane-active-border-style fg=yellow
# set -g pane-border-status top
# set -g pane-border-format "[ #P ]"
# status line
#set -g status-position top # set bar to top
#set -g status-justify centre # center window list
#set -g window-status-current-style 'bold' # set current window name to bold
#set -g status-bg color7 # set bar default background color
#set -g status-fg color234 # set bar default foreground color
# define left status content
# sets color to green, skull icon, session in brackets, change color back to defaultr
#set -g status-left " 💀 [ #S ] "
#set -g status-right " 📆 %a %d 🕓%l:%M:%S %P "
set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
# Set vi keys
set -g mode-keys vi
set -g status-keys vi
# list of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# Theme Plugin
# set -g @plugin 'arcticicestudio/nord-tmux'
set -g @plugin 'cappyzawa/tmux-tokyonight'
# other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# initialize TMUX plugin manager (keep this line at the bottom)
run '~/.tmux/plugins/tpm/tpm'