Skip to content

Instantly share code, notes, and snippets.

@GirlBossRush
Created January 24, 2014 05:38
Show Gist options
  • Save GirlBossRush/8592527 to your computer and use it in GitHub Desktop.
Save GirlBossRush/8592527 to your computer and use it in GitHub Desktop.
# Look good
set -g default-terminal "screen-256color"
# Default session name
SESSION='Pixel'
# Act like GNU screen
# unbind C-b
# set -g prefix C-a
unbind k
bind k confirm-before "kill-window"
bind-key C-a last-window
# Mouse
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Toggle mouse on with prefix-M
bind M \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with prefix-m
bind m \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
# Pasting
# move x clipboard into tmux paste buffer
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard
bind C-y run "tmux show-buffer | xclip -i"
# Fix control arrows
set-window-option -g xterm-keys on
set -g base-index 1
set -sg escape-time 0
setw -g aggressive-resize on
setw -g automatic-rename on
set -g utf8 on
##### Status bar #####
set -g status-bg default
set -g status-fg white
set -g status-left-length 60
## Left panel ##
set-option -g status-utf8 on
set-option -g status-left ' #[bold]#[bg=default, fg=colour159]■ #S#[default] ⡇'
## Window tabs ##
set -g window-status-format \
"#[fg=colour159] #W#[fg=colour157]-#I "
set -g status-interval 5
## Active window tab ##
set -g window-status-current-format \
"#[fg=colour233, bg=colour159] #W#[fg=colour240]-#I "
## Right panel ##
set -g status-right \
'#[fg=blue]#(rainbarf 5)#[default]#[fg=colour159] ⡇%a, %h %d %l:%M %p '
set -g status-right-length 75
# Messages
set-option -g message-bg default
set-option -g message-fg colour159
# Panes
set-option -g display-panes-active-colour colour159
set-option -g display-panes-colour white
# Pager
set-option -g window-status-activity-bg colour159
# Reload source file
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment