Skip to content

Instantly share code, notes, and snippets.

@voodoo11
Created November 3, 2015 12:39
Show Gist options
  • Save voodoo11/6ed59a93ef9cbf3a25f0 to your computer and use it in GitHub Desktop.
Save voodoo11/6ed59a93ef9cbf3a25f0 to your computer and use it in GitHub Desktop.
tmux.conf
# default shell
set-option -g default-shell /usr/bin/zsh
# set-option -g default-command "reattach-to-user-namespace -l bash"
set -sg escape-time 0
#set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Different additional bindings
bind r source-file ~/.tmux.conf \; display "reloaded!"
# Moving in panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind q previous-window
bind w next-window
bind s choose-window
# Splitting windows
bind \ split-window -h
bind - split-window -v
# Resize panes with vim movement keys
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Self explanatory
set -g history-limit 20000
set -g base-index 1
setw -g pane-base-index 1
# Pasting
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind -t vi-copy 'Space' halfpage-down
bind -t vi-copy 'Bspace' halfpage-up
# Mouse support
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
# No idea precisely
set-window-option -g xterm-keys on
set -g status-interval 60
set -g status-justify centre
set -g status-utf8 on
set -g status-bg colour237
set -g status-fg white
set -g status-left ' #[bold] Battery: #{battery_icon} (#{battery_percentage}) | #{online_status} | #S#[default]'
set -g status-right '#[bold] %d/%m ● %R #[default] '
set -g status-right-length 60
set -g status-left-length 60
set -g visual-activity off
set -g set-titles on
set -g message-fg colour117
set -g message-bg colour235
setw -g monitor-activity on
setw -g automatic-rename on
setw -g window-status-format ' #I #W '
setw -g clock-mode-colour colour117
setw -g mode-fg colour117
setw -g mode-bg colour238
setw -g window-status-current-format ' #I #W '
setw -g window-status-current-fg colour193
setw -g window-status-current-bg colour108
setw -g window-status-current-attr bold
setw -g window-status-activity-attr bold
setw -g window-status-activity-fg colour227
setw -g window-status-activity-bg colour237
set -g @batt_charged_icon "Charged"
set -g @batt_charging_icon "Charging"
set -g @batt_discharging_icon "Discharging"
set -g @batt_attached_icon "Attached"
set -g @online_icon "Connected"
set -g @offline_icon "Disconnected"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment