Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active July 23, 2025 06:16
Show Gist options
  • Select an option

  • Save dardo82/59bfcc86c48acb82549eea05aec2b684 to your computer and use it in GitHub Desktop.

Select an option

Save dardo82/59bfcc86c48acb82549eea05aec2b684 to your computer and use it in GitHub Desktop.
Tmux Conf
# Tmux Conf
bind-key "C-x" send-prefix
bind-key -T root "M-C" copy-mode
bind-key -T root "M-d" paste-buffer -p -s ""
bind-key -T root "M-p" paste-buffer -p -s ""
bind-key -T root "M-v" split-window
bind-key -T root "M-h" split-window -h
bind-key -T root "M-U" swap-pane -U
bind-key -T root "M-D" swap-pane -D
bind-key -T root "M-u" select-pane -U
bind-key -T root "M-d" select-pane -D
bind-key -T root "M-l" select-pane -L
bind-key -T root "M-r" select-pane -R
bind-key -T root "M-R" source-file "~/.tmux.conf"
bind-key -T copy-mode-vi "R" send-keys -X rectangle-toggle
bind-key -T copy-mode-vi "S" send-keys -X next-space-end
bind-key -T copy-mode-vi "A" send-keys -X append-selection
bind-key -T copy-mode-vi "Enter" send-keys -X copy-selection-and-cancel block-buffer
bind-key -n "C-S-a" send-keys "\033[97;6u"
bind-key -n "C-S-b" send-keys "\033[98;6u"
bind-key -n "C-S-c" send-keys "\033[99;6u"
bind-key -n "C-S-d" send-keys "\033[100;6u"
bind-key -n "C-S-e" send-keys "\033[101;6u"
bind-key -n "C-S-f" send-keys "\033[102;6u"
bind-key -n "C-S-g" send-keys "\033[103;6u"
bind-key -n "C-S-h" send-keys "\033[104;6u"
bind-key -n "C-S-i" send-keys "\033[105;6u"
bind-key -n "C-S-j" send-keys "\033[106;6u"
bind-key -n "C-S-k" send-keys "\033[107;6u"
bind-key -n "C-S-l" send-keys "\033[108;6u"
bind-key -n "C-S-m" send-keys "\033[109;6u"
bind-key -n "C-S-n" send-keys "\033[110;6u"
bind-key -n "C-S-o" send-keys "\033[111;6u"
bind-key -n "C-S-p" send-keys "\033[112;6u"
bind-key -n "C-S-q" send-keys "\033[113;6u"
bind-key -n "C-S-r" send-keys "\033[114;6u"
bind-key -n "C-S-s" send-keys "\033[115;6u"
bind-key -n "C-S-t" send-keys "\033[116;6u"
bind-key -n "C-S-u" send-keys "\033[117;6u"
bind-key -n "C-S-v" send-keys "\033[118;6u"
bind-key -n "C-S-w" send-keys "\033[119;6u"
bind-key -n "C-S-x" send-keys "\033[120;6u"
bind-key -n "C-S-y" send-keys "\033[121;6u"
bind-key -n "C-S-z" send-keys "\033[122;6u"
set-option -g mouse "on"
set-option -g prefix "C-x"
set-option -g extended-keys "on"
set-option -g lock-after-time "300"
set-option -g prompt-history-limit "1000"
set-option -g history-file "~/.tmux_history"
set-option -g status-interval "1"
set-option -g status-style "bg=blue, fg=white"
set-option -g message-command-style "bg=black, fg=cyan"
set-option -g message-style "bg=cyan, fg=black"
set-option -g copy-mode-current-match-style "bg=magenta,fg=black"
set-option -g copy-mode-match-style "bg=cyan, fg=black"
set-option -g copy-mode-mark-style "bg=green, fg=black"
set-option -g menu-border-lines "rounded"
set-option -g menu-selected-style "bg=white, fg=black"
set-option -g mode-style "bg=yellow, fg=black"
set-option -g clock-mode-colour "green"
set-option -g display-panes-active-colour "white"
set-option -g display-panes-colour "blue"
set-option -g pane-border-status "top"
set-option -g pane-border-lines "simple"
set-option -g pane-active-border-style "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=green}}"
set-option -g pane-border-style "#{?pane_in_mode,fg=yellow,#{?synchronize-panes,fg=red,fg=blue}}"
set-option -g pane-border-format "#{?pane_active,#[reverse],}#{pane_index}#[default]-#{pane_title}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment