Home | History | Annotate | Line # | Download | only in dist
      1      1.1  christos #
      2      1.1  christos # Example .tmux.conf
      3      1.1  christos #
      4      1.1  christos # By Nicholas Marriott. Public domain.
      5      1.1  christos #
      6      1.1  christos 
      7      1.1  christos # Some tweaks to the status line
      8      1.1  christos set -g status-right "%H:%M"
      9  1.1.1.4  christos set -g window-status-current-style "underscore"
     10      1.1  christos 
     11  1.1.1.2  christos # If running inside tmux ($TMUX is set), then change the status line to red
     12  1.1.1.2  christos %if #{TMUX}
     13  1.1.1.2  christos set -g status-bg red
     14  1.1.1.2  christos %endif
     15  1.1.1.2  christos 
     16  1.1.1.2  christos # Enable RGB colour if running in xterm(1)
     17  1.1.1.6       wiz set-option -sa terminal-features ",xterm*:RGB"
     18  1.1.1.2  christos 
     19  1.1.1.2  christos # Change the default $TERM to tmux-256color
     20  1.1.1.2  christos set -g default-terminal "tmux-256color"
     21  1.1.1.2  christos 
     22      1.1  christos # No bells at all
     23      1.1  christos set -g bell-action none
     24      1.1  christos 
     25      1.1  christos # Keep windows around after they exit
     26      1.1  christos set -g remain-on-exit on
     27      1.1  christos 
     28      1.1  christos # Change the prefix key to C-a
     29      1.1  christos set -g prefix C-a
     30      1.1  christos unbind C-b
     31      1.1  christos bind C-a send-prefix
     32      1.1  christos 
     33      1.1  christos # Turn the mouse on, but without copy mode dragging
     34      1.1  christos set -g mouse on
     35      1.1  christos unbind -n MouseDrag1Pane
     36  1.1.1.2  christos unbind -Tcopy-mode MouseDrag1Pane
     37      1.1  christos 
     38      1.1  christos # Some extra key bindings to select higher numbered windows
     39      1.1  christos bind F1 selectw -t:10
     40      1.1  christos bind F2 selectw -t:11
     41      1.1  christos bind F3 selectw -t:12
     42      1.1  christos bind F4 selectw -t:13
     43      1.1  christos bind F5 selectw -t:14
     44      1.1  christos bind F6 selectw -t:15
     45      1.1  christos bind F7 selectw -t:16
     46      1.1  christos bind F8 selectw -t:17
     47      1.1  christos bind F9 selectw -t:18
     48      1.1  christos bind F10 selectw -t:19
     49      1.1  christos bind F11 selectw -t:20
     50      1.1  christos bind F12 selectw -t:21
     51      1.1  christos 
     52  1.1.1.3  christos # A key to toggle between smallest and largest sizes if a window is visible in
     53  1.1.1.3  christos # multiple places
     54  1.1.1.3  christos bind F set -w window-size
     55  1.1.1.3  christos 
     56  1.1.1.3  christos # Keys to toggle monitoring activity in a window and the synchronize-panes option
     57      1.1  christos bind m set monitor-activity
     58      1.1  christos bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'
     59      1.1  christos 
     60  1.1.1.3  christos # Create a single default session - because a session is created here, tmux
     61  1.1.1.2  christos # should be started with "tmux attach" rather than "tmux new"
     62      1.1  christos new -d -s0 -nirssi 'exec irssi'
     63      1.1  christos set -t0:0 monitor-activity on
     64  1.1.1.5       wiz set -t0:0 aggressive-resize on
     65      1.1  christos neww -d -ntodo 'exec emacs ~/TODO'
     66      1.1  christos setw -t0:1 aggressive-resize on
     67      1.1  christos neww -d -nmutt 'exec mutt'
     68      1.1  christos setw -t0:2 aggressive-resize on
     69      1.1  christos neww -d
     70      1.1  christos neww -d
     71      1.1  christos neww -d
     72