Skip to content

Instantly share code, notes, and snippets.

@lesnuages
Created December 27, 2022 17:28
Show Gist options
  • Save lesnuages/3791f91ff3b6ac12d6b970db3449af25 to your computer and use it in GitHub Desktop.
Save lesnuages/3791f91ff3b6ac12d6b970db3449af25 to your computer and use it in GitHub Desktop.
Custom tmux conf
# Enable mouse mode
set -g mouse on
# Bindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Resizing panes
bind -r Left resize-pane -L 5
bind -r Right resize-pane -R 5
bind -r Down resize-pane -D 5
bind -r Up resize-pane -U 5
# Toggle mouse mode
bind M set -g mouse
# Reload config
bind r source-file ~/.tmux.conf
# Fast toggle
#bind ^b last-window
# Set vi mode
set-window-option -g mode-keys vi
# Control + Arrows
set-window-option -g xterm-keys on
set -g visual-activity off
set -g monitor-activity on
# status activity
#set -g window-status-activity-style 'fg=red,bold,blink'
# Scrollback history higher
set -g history-limit 100000
# shorten command delay
set -sg escape-time 1
# Update title
set -g set-titles on
# Themes
# panes
set -g pane-border-style fg=colour0
set -g pane-active-border-style fg=colour238
# toggle statusbar
bind-key b set-option status
# status line
set -g status-justify left
set -g status-style default
set -g status-interval 2
# messaging
set -g message-style fg=black,bg=white
set -g message-command-style fg=blue
set -g message-command-style bg=black
set -g automatic-rename on
# window mode
setw -g mode-style fg=colour0,bg=colour15
# colors
setw -g window-status-format "#{?window_activity_flag,#[none fg=colour9] •#[none fg=colour2 bold],#[fg=colour3] •#[fg=colour8]} #W "
setw -g window-status-current-format "#[fg=colour4,bold] •#[fg=colour15,bold] #W "
set -g status-position bottom
set -g status-justify centre
set -g status-left " #[fg=colour3]• #[fg=colour2]• #[fg=colour4]•"
set -g status-right " #[fg=colour4] •#[fg=colour15,bold] #S [$USER@#h] "
# Do not color split separators
set -g pane-border-style fg=colour4
set -g pane-active-border-style fg=colour4
set -g pane-active-border-style bg=default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment