d0tfiles

*nix dotfiles for arch linux setup
Log | Files | Refs | README | LICENSE

.tmux.conf (3701B)


      1 #-------~---~----------~----------~----
      2 #       .---..-.-.-..-..-..-..-.
      3 #       `| |'| | | || || | >  <
      4 #        `-' `-'-'-'`----''-''-'
      5 #-------~---~----------~----------~----
      6 # file: $HOME/.tmux.conf
      7 #-------~---~----------~----------~----
      8 #
      9 #-------~---~----------~----------~----
     10 #
     11 # + Software used ATOC:
     12 # `-> tmux      => 1.4-3
     13 #
     14 #-------~---~----------~----------~----
     15 
     16 #-------~---~----------~----------~----
     17 # KEYBINDS
     18 #-------~---~----------~----------~----
     19 
     20 #Prefix Key
     21 set -g prefix ^a
     22 set -g status-keys vi
     23 setw -g mode-keys vi
     24 setw -g mode-mouse on
     25 
     26 # Unbinds
     27 # `-> these are part of the default mappings 
     28 #     and will get new functionality
     29 unbind c
     30 unbind i
     31 unbind l
     32 unbind s
     33 unbind w
     34 
     35 # Reload Config File
     36 bind F12 source-file ~/.tmux.conf
     37 
     38 # New Window
     39 bind n neww
     40 
     41 # Choose Window
     42 bind m choose-window
     43 
     44 # Choose Session
     45 bind a choose-session
     46 
     47 # Close Pane
     48 bind c kill-pane
     49 
     50 # Toggle Statusbar
     51 bind t set status
     52 
     53 # Select Windows Ctrl-[1-0]
     54 bind -n ^F1 select-window -t 1
     55 bind -n ^F2 select-window -t 2
     56 bind -n ^F3 select-window -t 3
     57 bind -n ^F4 select-window -t 4
     58 bind -n ^F5 select-window -t 5
     59 bind -n ^F6 select-window -t 6
     60 bind -n ^F7 select-window -t 7
     61 bind -n ^F8 select-window -t 8
     62 bind -n ^F9 select-window -t 9
     63 bind -n ^F10 select-window -t 10
     64 bind -n ^F11 select-window -t 11
     65 #bind -n ^F12 select-window -t 12
     66 
     67 bind ^h select-pane -L
     68 bind ^j select-pane -D
     69 bind ^k select-pane -U
     70 bind ^l select-pane -R
     71 
     72 bind h resize-pane -L
     73 bind j resize-pane -D
     74 bind k resize-pane -U
     75 bind l resize-pane -R
     76 
     77 bind F1 select-pane -t 1
     78 bind F2 select-pane -t 2
     79 bind F3 select-pane -t 3
     80 bind F4 select-pane -t 4
     81 bind F5 select-pane -t 5
     82 bind F6 select-pane -t 6
     83 bind F7 select-pane -t 7
     84 bind F8 select-pane -t 8
     85 bind F9 select-pane -t 9
     86 bind F10 select-pane -t 10
     87 bind F11 select-pane -t 11
     88 # bind F12 select-pane -t 12
     89 
     90 bind i split-window -h
     91 bind s split-window
     92 
     93 # Sessions
     94 #bind t attach -d -t tmux
     95 #bind i attach -d -t irc
     96 #bind r attach -d -t rails
     97 
     98 #-------~---~----------~----------~----
     99 # WINDOWS & PANES
    100 #-------~---~----------~----------~----
    101 
    102 # Start counting at 1
    103 set -g base-index 1
    104 
    105 set -g mouse-select-pane on
    106 setw -g automatic-rename on
    107 set -g display-panes-time 1000
    108 
    109 #-------~---~----------~----------~----
    110 # MISC SETTINGS
    111 #-------~---~----------~----------~----
    112 
    113 # Use ZSH
    114 set -g default-shell /bin/zsh
    115 set -g default-command /bin/zsh
    116 
    117 # Set Window Title
    118 set-window-option -g automatic-rename on
    119 set -g set-titles on
    120 set -g set-titles-string 'tmux: #T'
    121 
    122 # Repeat time
    123 set -g repeat-time 100
    124 
    125 # Monitor and highlight window acitvity
    126 setw -g monitor-activity on
    127 
    128 # 256 Colors plz! KTHXBAI!
    129 set -g default-terminal "rxvt-256color"
    130 
    131 #if [[ $TERM = "rxvt-256color" ]]; then export TERM="rxvt-unicode-256color"; fi
    132 
    133 # Border Colors
    134 set -g pane-border-fg black
    135 set -g pane-active-border-fg black
    136 set -g display-panes-colour white
    137 set -g display-panes-active-colour red
    138 
    139 # UTF8
    140 setw -g utf8 on
    141 set -g status-utf8 on
    142 
    143 # Don't close windows
    144 set -g set-remain-on-exit on
    145 
    146 #-------~---~----------~----------~----
    147 # STATUS & MESSAGE
    148 #-------~---~----------~----------~----
    149 
    150 set -g status-justify right
    151 set -g status-bg default
    152 set -g status-fg default
    153 set -g status-interval 5
    154 
    155 set -g message-attr bold
    156 set -g message-fg black
    157 set -g message-bg yellow
    158 
    159 # Window list
    160 setw -g window-status-current-fg red
    161 setw -g window-status-current-attr none
    162 setw -g window-status-alert-attr bright
    163 setw -g window-status-format '#[fg=black]#W#F'
    164 setw -g window-status-current-format '#[fg=red] #W#F'
    165 
    166 # Left
    167 set -g status-left '#[fg=red]tmux#[fg=black]#H #[fg=red]>>#[fg=black,bold] #T'
    168 set -g status-left-length 40
    169 set -g status-left-fg black
    170 
    171 # Right
    172 set -g status-right '#[fg=black,bold]|%l:%M'