20
20
# along with this program. If not, see <http://www.gnu.org/licenses/>.
21
21
###############################################################################
23
# Initialize environment, clean up
23
24
set-environment -g BYOBU_BACKEND tmux
24
25
new-window -d byobu-janitor
26
28
# Change to Screen's ctrl-a escape sequence
27
set-option -g prefix C-a
29
bind-key C-a send-prefix
30
bind-key a send-prefix
33
bind-key -n F1 new-window -k -t config byobu-config
34
bind-key -n F2 new-window
35
bind-key -n F3 previous-window
36
bind-key -n S-left previous-window
37
bind-key -n F4 next-window
38
bind-key -n S-right next-window
39
bind-key -n F5 source /usr/share/byobu/profiles/tmuxrc
41
bind-key -n F7 copy-mode
42
bind-key -n M-NPage copy-mode \; send-keys NPage
43
bind-key -n M-PPage copy-mode -u
44
bind-key -n F8 command-prompt -p "(rename-window)" "rename-window %%"
45
bind-key -n F9 new-window -a byobu-config
46
bind-key -n C-F2 split-window -h
47
bind-key -n C-F3 select-pane -L
48
bind-key -n C-F4 select-pane -R
49
bind-key -n S-F2 split-window -v
50
bind-key -n S-F3 select-pane -D
51
bind-key -n S-F4 select-pane -U
52
bind-key -n S-F5 kill-pane -a
53
bind-key -n C-F6 kill-pane
29
source /usr/share/doc/tmux/examples/screen-keys.conf
30
# On Archlinux, this file is not under the same directory
31
source /usr/share/tmux/screen-keys.conf
33
# Add F12 to the prefix list
37
source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux
55
39
set-option -g set-titles on
56
40
set-option -g set-titles-string '#(whoami)@#H - byobu (#S)'
57
set-option -g pane-active-border-fg magenta
58
set-option -g pane-border-fg magenta
41
set-option -g pane-active-border-bg $BYOBU_ACCENT
42
set-option -g pane-active-border-fg $BYOBU_ACCENT
43
set-option -g pane-border-fg $BYOBU_LIGHT
44
set-option -g history-limit 10000
45
set-option -g display-panes-time 150
46
set-option -g display-panes-colour $BYOBU_ACCENT
47
set-option -g display-panes-active-colour $BYOBU_HIGHLIGHT
48
set-option -g clock-mode-colour $BYOBU_ACCENT
49
set-option -g clock-mode-style 24
50
set-option -g mode-keys vi
51
set-option -g mode-bg $BYOBU_ACCENT
52
set-option -g mode-fg $BYOBU_LIGHT
60
54
set-window-option -g window-status-attr default
61
set-window-option -g window-status-bg black
62
set-window-option -g window-status-fg white
63
set-window-option -g window-status-current-attr default
64
set-window-option -g window-status-current-bg white
65
set-window-option -g window-status-current-fg black
66
set-window-option -g window-status-alert-bg black
67
set-window-option -g window-status-alert-fg white
55
set-window-option -g window-status-bg $BYOBU_DARK
56
set-window-option -g window-status-fg $BYOBU_LIGHT
57
set-window-option -g window-status-current-attr reverse
58
set-window-option -g window-status-current-bg $BYOBU_DARK
59
set-window-option -g window-status-current-fg $BYOBU_LIGHT
60
set-window-option -g window-status-alert-bg $BYOBU_DARK
61
set-window-option -g window-status-alert-fg $BYOBU_LIGHT
68
62
set-window-option -g window-status-alert-attr bold
69
63
set-window-option -g automatic-rename on
70
64
set-window-option -g aggressive-resize on
74
68
# Must set default-command to $SHELL, in order to not source ~/.profile
75
69
# BUG: Should *not* hardcode /bin/bash here
76
set -g default-terminal "screen-256color"
70
set -g default-terminal "screen-bce"
77
71
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
78
set -g default-command /bin/bash
79
set -g status-bg black
80
set -g status-fg white
72
set -g default-command $SHELL
73
set -g status-bg $BYOBU_DARK
74
set -g status-fg $BYOBU_LIGHT
81
75
set -g status-interval 1
82
76
set -g status-left-length 256
83
77
set -g status-right-length 256
84
78
set -g status-left '#(byobu-status tmux_left)['
85
79
set -g status-right ']#(byobu-status tmux_right)'
86
set -g message-bg magenta
80
set -g message-bg $BYOBU_ACCENT
87
81
set -g message-fg white
83
# Allow local overrides
84
source $BYOBU_CONFIG_DIR/.tmux.conf