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