Skip to content

Commit

Permalink
Updated tmux.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ignu committed Apr 17, 2014
1 parent 6647f97 commit f62d70a
Showing 1 changed file with 66 additions and 88 deletions.
154 changes: 66 additions & 88 deletions tmux.conf
@@ -1,76 +1,75 @@
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Nice colors
set -g default-terminal "screen-256color"
setw -g automatic-rename off
setw -g mode-keys vi
setw -g mode-mouse on
set -g mouse-select-pane on

# Reload the config
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

# Autorename windows
set -g automatic-rename on

# Status bar content
set -g status-interval 5
set -g status-left '#S 🙉 '
set -g status-right '#[fg=colour166]#(w -h | grep -v `whoami` | cut -f 1 -d " " | uniq | tr "\\\n" " " ) #[fg=colour8]#(tmux-mem-cpu-net) #[fg=default]%l:%M %Z'
set -g status-right-length 100

# Status bar styling
set -g status-bg colour235 # very dark grey
set -g status-fg colour7 # light grey
set -g status-position top
set -g window-status-format "#[fg=colour7,bg=colour234] #W "
set -g window-status-current-format "#[fg=colour166,bg=colour234] #W#F"

# Show activity in other windows
set -g monitor-activity on
set -g window-status-activity-attr bold

# Messages
set -g display-time 3000
set -g message-bg colour166 # orange
set -g message-fg black

# Panes
set -g pane-border-fg colour8 # dark grey
set -g pane-active-border-fg colour7 # light grey

# Clock
set -g clock-mode-style 12
set -g clock-mode-colour colour166 # orange

# Mouse
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on

# VI Bindings
set -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection

# Pane Navigation
bind C-b select-pane -t :.+
bind -n S-up select-pane -t :.+
bind -n S-down select-pane -t :.-

# Tab Navigation
bind -n S-left prev
bind -n S-right next
bind -n C-S-left swap-window -t -1
bind -n C-S-right swap-window -t +1

# Resize current pane to 80 columns
bind 8 resize-pane -x 80

set-option -g default-command "reattach-to-user-namespace -l zsh"
bind-key Y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"

# copying and pasting
bind-key [ copy-mode
bind-key ] paste-buffer -s \015

unbind z
bind z \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom

unbind x
bind x \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom

# list all paste buffers (default key is '#')
bind-key b list-buffers

# choose buffer to paste interactively (default key was '=')
bind-key p choose-buffer

# resize panes like vim
bind-key -r < resize-pane -L 3
bind-key -r > resize-pane -R 3
bind-key -r + resize-pane -U 1
bind-key -r = resize-pane -D 1

# Statusbar settings

# toggle statusbar
bind-key s set status

# use vi-style key bindings in the status line
set -g status-keys vi

# amount of time for which status line messages and other indicators
# are displayed. time is in milliseconds.
set -g display-time 2000

# decrease command delay (increases vim responsiveness)
set -sg escape-time 1

# default statusbar colors
set -g status-fg white
set -g status-bg default
set -g status-attr dim
set -g status-interval 1

#
# default window title colors
setw -g window-status-fg white
#setw -g window-status-bg default
setw -g window-status-attr dim

# active window title colors
setw -g window-status-current-fg cyan
#setw -g window-status-current-bg default
#setw -g window-status-current-attr bright
setw -g window-status-current-attr underscore

# command/message line colors
set -g message-fg white
set -g message-bg black
set -g message-attr bright

#resizing
unbind J
bind J resize-pane -D 40
unbind K
Expand All @@ -86,24 +85,3 @@ bind b swap-pane -U

unbind ^B
bind ^B select-pane -t :.+

#set -g pane-active-border-bg black
#set -g pane-border-bg black
set -g pane-active-border-fg blue
set -g pane-border-fg white

bind-key Y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"


# color scheme (style based on vim-powerline)
set -g status-left-length 52
set -g status-right-length 451
set -g status-fg white
set -g status-bg colour234
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"

0 comments on commit f62d70a

Please sign in to comment.