My tmux.conf file

Posted on 2021-12-02 in Configs • 1 min read

This is my tmux.conf configuration file, as a guide for funny stuff:

set -g prefix C-a
unbind C-b
bind C-a send-prefix

set -g history-limit 10000

set -g base-index 1
set -g pane-base-index 1

bind C-down new-window
bind C-left prev
bind C-right next

bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

set -g mouse on

set -g set-titles on
set -g set-titles-string "#T"

setw -g aggressive-resize on

set -g status-style "bg=blue fg=white bold"
set -g status-justify centre
set -g status-interval 5

set -g monitor-activity on
set -g visual-activity on

setw -g window-status-current-style "bold"
setw -g window-status-style "dim"

setw -g  window-status-activity-style "fg=yellow bg=blue bold"
setw -g  window-status-bell-style "fg=red bg=blue bold"

set -g status-left-length 16
set -g status-left '#[fg=yellow]#h#[fg=white]:#[fg=green]#S#[default]'
set -g status-right '#[fg=green][#(cut -d" " -f1-3 /proc/loadavg)] #[fg=yellow]%Y-%m-%d #[fg=yellow]%H:%M#[default]'

new-session -As1
bind r source-file /etc/tmux.conf