Files

84 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2026-05-02 12:58:20 -07:00
# Color related for ghostty termianal
set -g default-terminal "xterm-ghostty"
# Color related for kitty terminal
# set -ga terminal-overrides ',xterm-kitty:RGB'
# set -g default-terminal "xterm-kitty"
# Other settings
set -g mouse on
# Reload Tmux config
unbind r
bind r source-file ~/.tmux.conf
# Unbind b for a
unbind-key C-b
set-option -g prefix C-a
set -g prefix C-a
# Window creation
# Creates a window vertically
bind-key | split-window -h -c "#{pane_current_path}"
# Creates a window horizontally
bind-key _ split-window -v -c "#{pane_current_path}"
# kill pane without asking me to kill it!
unbind-key x
bind-key x kill-pane
bind-key X kill-session
# Nvim like movement
bind-key -r h select-pane -L # go left
bind-key -r j select-pane -D # go down
bind-key -r l select-pane -R # go right
bind-key -r k select-pane -U # go up
# Vim Style resizing panes 2 rows at the time
bind-key -r H resize-pane -L 2
bind-key -r J resize-pane -D 2
bind-key -r K resize-pane -U 2
bind-key -r L resize-pane -R 2
# Popups binds
bind C-y display-popup \
-d "#{pane_current_path}" \
-w 80% \
-h 80% \
-E "lazygit"
bind C-r display-popup \
-d "#{pane_current_path}" \
-w 90% \
-h 90% \
-E "ranger"
bind C-t display-popup \
-d "#{pane_current_path}" \
-w 75% \
-h 75% \
-E "zsh"
# Window index will start with 1
set-option -g base-index 1
# Pane index will start with 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Basic status bar styling
set -g status-style "bg=default,fg=white"
set -g status-left "#[fg=blue,bold]#S "
set -g status-right "#[fg=white,nobold]%H:%M "
# Current window style
set -g window-status-current-style "fg=black,bg=blue"
set -g window-status-current-format " #I:#W "
# Inactive window style
set -g window-status-style "fg=white,bg=default"
set -g window-status-format " #I:#W "
# Clean up borders
set -g pane-border-style "fg=brightblack"
set -g pane-active-border-style "fg=blue"