Skip to content

Instantly share code, notes, and snippets.

@Raizan
Last active April 10, 2025 12:50
Show Gist options
  • Save Raizan/ca1cd2ca2ce9d1280dd80922e5b50461 to your computer and use it in GitHub Desktop.
Save Raizan/ca1cd2ca2ce9d1280dd80922e5b50461 to your computer and use it in GitHub Desktop.
tmux.conf
# List of plugins
set -g @plugin 'dracula/tmux'
set -g @plugin 'tmux-plugins/tpm'
# prefix key
set-option -g prefix C-f
# mouse mode
set -g mouse on
# Use Shift-arrow keys without prefix key to switch panes
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# Set easier window split keys
bind-key v split-window -h
bind-key h split-window -v
# Ctrl-Shift-arrow to switch windows
bind -n C-S-Left previous-window
bind -n C-S-Right next-window
# Synchronize mode toggle
bind-key y set-window-option synchronize-panes\; display-message "Synchronize mode toggled"
# Reload tmux config
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# Rename session
bind S command-prompt -I "#S" "rename-session '%%'"
# Theme settings
set -g @dracula-colors "
# simple catppuccin Color Pallette
pink='#cba6f7'
orange='#fab387'
yellow='#f9e2af'
green='#a6e3a1'
cyan='#89dceb'
light_purple='#b4befe'
white='#cdd6f4'
dark_gray='#313244'
red='#f38ba8'
gray='#45475a'
dark_purple='#6c7086'
"
set -g @dracula-plugins "cpu-usage ram-usage battery network-bandwidth time"
set -g @dracula-show-ssh-only-when-connected true
set -g @dracula-show-left-icon "#S"
set -g @dracula-synchronize-panes-label "Sync"
set -g @dracula-time-format "%d-%m-%Y %H:%M"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
@Raizan
Copy link
Author

Raizan commented Apr 9, 2025

alias tmux-new="tmux new-session -d -s"
alias tmux-switch="tmux new-session -As"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment