repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
tmux/tmux.conf
Raw# Minimal tmux config.
# One thing to remember: Prefix h = help.
# Prefix is default: Ctrl-b.
##### fix Pi warning / modern keyboard input
set -g extended-keys on
set -g extended-keys-format csi-u
##### sane defaults
set -g mouse on
set -g history-limit 50000
set -g renumber-windows on
set -g base-index 1
setw -g pane-base-index 1
setw -g mode-keys vi
set -g status-keys vi
set -g escape-time 10
set -g focus-events on
set -g set-clipboard on
##### color
set -g default-terminal "tmux-256color"
set -as terminal-features ',*:RGB'
##### new panes/windows open where you are
bind c new-window -c "#{pane_current_path}"
unbind %
unbind '"'
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
##### quick reload
bind r source-file ~/.config/tmux/tmux.conf \; display-message "tmux config reloaded"
##### help: the only shortcut to memorize
bind h display-popup -w 82% -h 82% -k 'sh -c "cat <<EOF
TMUX QUICK HELP press any key to close
Prefix: Ctrl-b
Help: Prefix h
Sessions
tmux new -s work start named session
tmux ls list sessions
tmux attach -t work attach session
Prefix d detach
Windows
Prefix c new window
Prefix 1..9 jump window
Prefix , rename window
Prefix & kill window
Panes
Prefix | split right
Prefix - split down
Prefix arrows move between panes
Prefix z zoom pane
Prefix x kill pane
Scroll/copy
Prefix [ copy/scroll mode
q leave copy/scroll mode
/ search in copy mode
More help
Prefix ? built-in key list
Prefix : tmux command prompt
man tmux full manual
EOF
sleep 100000"'
##### tiny status bar
set -g status-position top
set -g status-interval 5
set -g status-style "bg=#11111b,fg=#cdd6f4"
set -g status-left-length 40
set -g status-left " #[fg=#a6e3a1,bold]#S #[fg=#6c7086]│ #[fg=#89b4fa]C-b h help "
set -g status-right "#[fg=#6c7086]#(whoami)@#h #[fg=#f5c2e7]%H:%M "
setw -g window-status-format " #[fg=#6c7086]#I:#W "
setw -g window-status-current-format " #[fg=#f9e2af,bold]#I:#W "
setw -g pane-border-style "fg=#313244"
setw -g pane-active-border-style "fg=#89b4fa"