1 # Id: t-williams.conf,v 1.1 2009-11-02 18:59:28 nicm Exp
3 # ~/.tmux.conf - tmux terminal multiplexer config
4 # Thayer Williams (http://cinderwick.ca)
5 # "Feel free to do whatever you like with it."
7 # I typically start tmux from ~/.xinitrc with the following:
9 # urxvt -e bash -c "tmux attach -d -t mysession" &
11 # and recall it any time thereafter with xbindkeys (Mod4+s):
13 # "urxvt -e bash -c 'tmux attach -d -t mysession'"
17 # set prefix key to ctrl+a until I have time to adapt
21 # send the prefix to client inside window (ala nested sessions)
22 bind-key a send-prefix
24 # toggle last window like screen
25 bind-key C-a last-window
27 # confirm before killing a window or the server
28 bind-key k confirm kill-window
29 bind-key K confirm kill-server
32 bind-key b set-option status
34 # ctrl+left/right cycles thru windows
35 bind-key -n C-right next
36 bind-key -n C-left prev
38 # open a man page in new window
39 bind / command-prompt "split-window 'exec man %%'"
41 # quick view of processes
42 bind '~' split-window "exec htop"
44 # scrollback buffer n lines
45 set -g history-limit 5000
47 # listen for activity on all windows
48 set -g bell-action any
50 # on-screen time for display-panes in ms
51 set -g display-panes-time 2000
53 # start window indexing at one instead of zero
56 # enable wm window titles
59 # wm window title string (uses statusbar variables)
60 set -g set-titles-string "tmux.#I.#W"
62 # session initialization
70 # statusbar --------------------------------------------------------------
72 set -g display-time 2000
74 # default statusbar colors
75 set -g status-fg white
76 set -g status-bg default
77 set -g status-attr default
79 # default window title colors
80 set-window-option -g window-status-fg cyan
81 set-window-option -g window-status-bg default
82 set-window-option -g window-status-attr dim
84 # active window title colors
85 set-window-option -g window-status-current-fg white
86 set-window-option -g window-status-current-bg default
87 set-window-option -g window-status-current-attr bright
89 # command/message line colors
90 set -g message-fg white
91 set -g message-bg black
92 set -g message-attr bright
94 # center align the window list
95 set -g status-justify centre
97 # show some useful stats but only when tmux is started
98 # outside of Xorg, otherwise dwm statusbar shows these already
99 set -g status-right ""
100 set -g status-left ""
101 if '[ -z "$DISPLAY" ]' 'set -g status-left "[#[fg=green] #H #[default]]"'
102 if '[ -z "$DISPLAY" ]' 'set -g status-right "[ #[fg=magenta]#(cat /proc/loadavg | cut -d \" \" -f 1,2,3)#[default] ][ #[fg=cyan,bright]%a %Y-%m-%d %H:%M #[default]]"'
103 if '[ -z "$DISPLAY" ]' 'set -g status-right-length 50'