Files
dotfiles/tmux/.tmux.conf

51 lines
1.3 KiB
Bash

# bind a key to reload tmux config
unbind r
bind r source-file ~/.tmux.conf
# change the leader key
set -g prefix C-s
# Options to make tmux more pleasant
set -g mouse on
set -g default-terminal "tmux-256color"
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
# using vim motions
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Split panes in the same directory
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# New window in same directory
bind c new-window -c "#{pane_current_path}"
# list of plugins
set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin '2kabhishek/tmux2k'
set -g @plugin 'catppuccin/tmux'
set-option -g status-position top
set -g @catppuccin_flavor 'mocha' # latte, frappe, macchiato or mocha
set -g @catppuccin_window_status_style "rounded"
# configure theme
# set -g @tmux2k-theme 'catppuccin'
# set -g @tmux2k-theme 'onedark'
# set -g @tmux2k-icons-only true
# Use window name instead of pane title
set -g @catppuccin_window_text "#W"
set -g @catppuccin_window_current_text "#W"
# initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'
# Shared Rider palette overrides
source-file ~/.config/rider-palette/tmux.conf