dotfiles/tmux/tmux.conf

73 lines
3.8 KiB
Text
Raw Normal View History

#===============================================================================
# tmux.conf for niblock || source with <C-b>r
#===============================================================================
2017-08-16 23:52:27 +00:00
#===============================================================================
# General Settings
#===============================================================================
set-option -g prefix C-b # Remap prefix key
set -g default-terminal "screen-256color" # Set terminal
set -g mouse on # Enable mouse
set -sg escape-time 0 # Delay time
set -g display-time 2000 # Message display time
set -g base-index 1 # Start windows at 1
2024-11-21 20:59:14 +00:00
set -g pane-base-index 1 # Start panes at 1
set -g renumber-windows on # Renumber dynamically
#===============================================================================
2024-11-22 13:02:53 +00:00
# Colors & Styling
#===============================================================================
2024-11-21 20:59:14 +00:00
# Theme Colors - More found in themes/ directory
source -F "#{d:current_file}/themes/catppuccin-frappe.tmux"
# Status Bar
set -g status-style "fg=#{@thm_lavender} bg=#{@thm_bg}"
# Window List
set -g window-status-style "bg=#{@thm_surface_0} fg=#{@thm_lavender}"
set -g window-status-current-style "fg=#{@thm_surface_0} bg=#{@thm_lavender}"
# Panes
2024-11-22 13:02:53 +00:00
set -g pane-border-style "fg=#{@thm_bg} bg=terminal"
set -g pane-active-border-style "fg=#{@thm_lavender} bg=terminal"
set -g pane-border-lines "double"
set -g pane-border-indicators "arrows"
set -g pane-border-status "top"
2024-11-21 20:59:14 +00:00
# Command Line
set -g message-style "fg=#{@thm_red} bg=#{@thm_bg} bright"
# Menus
set -g menu-style "fg=#{@thm_fg}"
set -g menu-selected-style "fg=#{@thm_lavender} bg=#{@thm_bg}"
# Clock
set -g clock-mode-colour "fg=#{@thm_lavender}"
# Modes
2024-11-22 13:02:53 +00:00
set -g mode-style "fg=#{@thm_lavender} bg=terminal"
#===============================================================================
2015-11-04 01:38:01 +00:00
# Status Line
#===============================================================================
setw -g monitor-activity on # Monitor window activity
set -g visual-activity off # No status line message
set -g allow-rename off # Disallow program renaming
set -g status-left-length 40 # Left-side char length
2024-11-21 02:42:30 +00:00
set -g status-left "#[bright][ #h ] " # Left-side format
set -g status-right-length 80 # Right-side char length
#===============================================================================
# Key Bindings
#===============================================================================
setw -g mode-keys vi # Vi-like key bindings
bind h select-pane -L # Pane movement: left
bind j select-pane -D # Pane movement: down
bind k select-pane -U # Pane movement: up
bind l select-pane -R # Pane movement: right
bind-key -r C-h select-window -t :- # Window movement: left
bind-key -r C-l select-window -t :+ # Window movement: right
bind -r H resize-pane -L 5 # Pane resize: +5 left
bind -r J resize-pane -D 5 # Pane resize: +5 down
bind -r K resize-pane -U 5 # Pane resize: +5 up
bind -r L resize-pane -R 5 # Pane resize: +5 right
bind | split-window -h -c "#{pane_current_path}" # Horizontal split
bind - split-window -v -c "#{pane_current_path}" # Vertical split
2016-11-21 17:26:01 +00:00
# Reload config file
2024-11-21 20:59:14 +00:00
bind r source-file ~/.config/tmux/tmux.conf \; display "!! Config Reloaded !!"