citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

.tmux.conf (2204B)


      1 # Last modified: 2009-11-12T05:59:41+0800
      2 
      3 # Reload
      4 bind r source-file ~/.tmux.conf
      5 
      6 # Change prefix key to Ctrl+a
      7 unbind C-b
      8 set -g prefix C-a
      9 
     10 # Last active window
     11 unbind l
     12 bind C-a last-window
     13 bind C-n next-window
     14 bind C-p previous-window
     15 bind C-X swap-pane
     16 
     17 # Copy mode
     18 # Use Vi mode
     19 setw -g mode-keys vi
     20 
     21 # Make mouse useful in copy mode
     22 #setw -g mode-mouse on
     23 setw -g escape-time 0
     24 #setw -g mouse-resize-pane on
     25 
     26 # More straight forward key bindings for splitting
     27 unbind %
     28 bind | split-window -h
     29 bind v split-window -h
     30 unbind '"'
     31 bind - split-window -v
     32 
     33 # Swap
     34 bind u swap-pane -U
     35 
     36 # History
     37 set -g history-limit 10000
     38 
     39 # Pane
     40 unbind o
     41 unbind j
     42 unbind k
     43 bind j select-pane -D
     44 bind C-j select-pane -D
     45 bind C-k select-pane -U
     46 bind k select-pane -U
     47 bind C-h select-pane -L
     48 bind h select-pane -L
     49 bind l select-pane -R
     50 bind C-l select-pane -R
     51 
     52 # Terminal emulator window title
     53 set -g set-titles on
     54 set -g set-titles-string "#H.#I.#W"
     55 setw -g window-status-format '#I:#W#F'
     56 setw -g window-status-current-format '#I:#W#F'
     57 setw -g automatic-rename off
     58 
     59 # Status Bar
     60 set -g status-bg colour0
     61 set -g status-fg colour2
     62 #set -g status-interval 1
     63 #set -g status-left '#[fg=colour118]#H#[default]'
     64 #set -g status-right '#[fg=colour238]#(cut -d " " -f 1-4 /proc/loadavg)#[default] #[fg=colour242]%Y-%m-%d %H:%M:%S#[default]'
     65 #set -g status-justify centre
     66 
     67 # Notifying if other windows has activities
     68 setw -g monitor-activity off
     69 set -g visual-activity off
     70 #set -g visual-content off
     71 set -g visual-bell off
     72 
     73 # Highlighting the active window in status bar
     74 #setw -g window-status-current-bg colour233
     75 #setw -g window-status-current-fg colour154
     76 
     77 #set -g pane-border-bg black
     78 #set -g pane-border-fg colour238
     79 
     80 #set -g pane-active-border-bg black
     81 #set -g pane-active-border-fg colour112
     82 
     83 # Clock
     84 setw -g clock-mode-colour green
     85 setw -g clock-mode-style 24
     86 
     87 # Title
     88 
     89 # powerline
     90 #set-option -g status on
     91 #set-option -g status-interval 2
     92 #set-option -g status-utf8 on
     93 #set-option -g status-justify "centre"
     94 #set-option -g status-left-length 60
     95 #set-option -g status-right-length 90
     96 #set-option -g status-left "#(~/dev/tmux-powerline/status-left.sh)"
     97 #set-option -g status-right "#(~/dev/tmux-powerline/status-right.sh)"