]> git.phdru.name Git - dotfiles.git/blob - .tmux.conf
Add .hushlogin, show /etc/motd in .profile if it was changed
[dotfiles.git] / .tmux.conf
1 # Set the command prefix to match GNU screen (CTRL+a)
2 # set-option -g prefix C-a
3 #
4 # Use C-a C-a key to send prefix instead of the default
5 # unbind-key C-b
6 # bind-key C-a send-prefix
7 #
8 # <prefix> C-a for last-window
9 # bind-key C-a last-window
10
11 # Start window numbers at 1 to match keyboard order with tmux window order
12 set-option -g base-index 1
13 set-option -g pane-base-index 1
14 # Renumber windows sequentially after closing any of them
15 set-option -g renumber-windows on
16
17 # Pass [Ctrl]+[PgUp/PgDn]
18 set-window-option -g xterm-keys on
19
20 # Mouse
21 set-window-option -g mode-mouse on
22 set-option -g mouse-select-pane on
23 set-option -g mouse-resize-pane on
24 # Mouse can be used to select windows (by clicking in the status bar)
25 set-option -g mouse-select-window on
26
27 # Rather than constraining window size to the maximum size of any client
28 # connected to the *session*, constrain window size to the maximum size of any
29 # client connected to *that window*. Much more reasonable.
30 set-window-option -g aggressive-resize on
31
32 # Activity monitoring
33 set-option -g visual-activity on
34 set-window-option -g monitor-activity on
35
36 # Clock color
37 set-window-option -g clock-mode-colour black
38
39 # Attempt to set the client terminal title
40 set-option -g set-titles on
41 # Terminal emulator window title
42 set-option -g set-titles-string 'tmux #S.#I.#P #W #T' # session, window number, pane number, window name, title
43
44 set-option -g message-bg black
45 set-option -g message-fg white
46
47 # Soften status bar color from black on harsh green to black on cyan
48 set-option -g status-bg cyan
49 set-option -g status-fg black
50
51 set-option -g pane-active-border-bg default
52 set-option -g pane-active-border-fg green
53 set-option -g pane-border-bg default
54 set-option -g pane-border-fg white
55
56 set-window-option -g mode-bg black
57
58 set-window-option -g window-status-bg cyan
59 set-window-option -g window-status-current-attr default
60 set-window-option -g window-status-current-fg blue
61 set-window-option -g window-status-bell-attr default
62 set-window-option -g window-status-bell-fg red
63 set-window-option -g window-status-content-attr default
64 set-window-option -g window-status-content-fg yellow
65 set-window-option -g window-status-activity-attr default
66 set-window-option -g window-status-activity-fg yellow
67
68 set-option -g status-left '[#S.#I.#P]'
69
70 # set-option -g status-interval 5
71 # set-option -g status-right '%H:%M'
72 set-option -g status-right '#T'
73
74 # Increase scrollback lines
75 set-option -g history-limit 1000
76
77 # <prefix> R to reload config without restart
78 bind-key R source-file ~/.tmux.conf