dotfiles/tmux.conf

65 lines
2 KiB
Bash

#set -g default-terminal "alacritty"
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",$TERM:RGB"
# set-option -g default-shell "/bin/bash"
set -g focus-events on
set -g mouse on
# remap prefix to Ctrl-f
unbind C-b
set-option -g prefix C-f
bind-key C-f send-prefix
# vim keybindings to navigate across panes
# Set Vim-style pane navigation
bind-key -n C-h select-pane -L
bind-key -n C-j select-pane -D
bind-key -n C-k select-pane -U
bind-key -n C-l select-pane -R
# status bar at the top of the window
set-option -g status-position top
# count the panes from 1
set -g base-index 1
setw -g pane-base-index 1
# reload configuration
bind-key -r r source-file ~/.tmux.conf
# run ~/.tmux/plugins/catppuccin/catppuccin.tmux
# Plugins
# catppuccin
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W"
set -g @catppuccin_status_modules_right "host session date_time"
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator ""
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @resurrect-strategy-nvim 'session'
# List of plugins
set -g @plugin 'catppuccin/tmux'
set -g @plugin 'tmux-plugins/tpm' # tmux package manager
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/catppuccin'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux environment across system restarts
# set -g @plugins 'tmux-plugins/tmux-continuum' # continuous saving of tmux environment
# set -g @plugins 'tmux-plugins/tmux-yank' # for copying to system clipboard
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'