1
###############################################################################
2
# byobu's tmux f-key keybindings
4
# Copyright (C) 2011 Dustin Kirkland <dustin.kirkland@gmail.com>
6
# Authors: Dustin Kirkland <dustin.kirkland@gmail.com>
8
# This program is free software: you can redistribute it and/or modify
9
# it under the terms of the GNU General Public License as published by
10
# the Free Software Foundation, version 3 of the License.
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
17
# You should have received a copy of the GNU General Public License
18
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19
###############################################################################
21
# Add F12 to the prefix list
25
# Documented in: $BYOBU_PREFIX/share/doc/byobu/help.tmux.txt
26
bind-key -n F1 new-window -k -n config byobu-config
27
bind-key -n S-F1 new-window -k -n help '$BYOBU_PAGER $BYOBU_PREFIX/share/doc/byobu/help.tmux.txt'
28
bind-key -n F2 new-window
29
bind-key -n C-F2 display-panes \; split-window -h
30
bind-key -n S-F2 display-panes \; split-window -v
31
bind-key -n C-S-F2 new-session
32
bind-key -n F3 previous-window
33
bind-key -n F4 next-window
34
bind-key -n C-S-Left previous-window
35
bind-key -n C-S-Right next-window
36
bind-key -n M-Up choose-session \; send-keys Up \; send-keys Enter
37
bind-key -n M-Down choose-session \; send-keys Down \; send-keys Enter
38
bind-key -n S-F3 display-panes \; select-pane -t :.-
39
bind-key -n S-F4 display-panes \; select-pane -t :.+
40
bind-key -n S-Up display-panes \; select-pane -U
41
bind-key -n S-Down display-panes \; select-pane -D
42
bind-key -n S-Left display-panes \; select-pane -L
43
bind-key -n S-Right display-panes \; select-pane -R
44
bind-key -n C-F3 display-panes \; swap-pane -s :. -t :.- \; select-pane -t :.-
45
bind-key -n C-F4 display-panes \; swap-pane -s :. -t :.+ \; select-pane -t :.+
46
bind-key -n C-S-F3 swap-window -t :-1
47
bind-key -n C-S-F4 swap-window -t :+1
48
bind-key -n C-Up resize-pane -U
49
bind-key -n C-Down resize-pane -D
50
bind-key -n C-Left resize-pane -L
51
bind-key -n C-Right resize-pane -R
52
bind-key -n F5 source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc
53
bind-key -n S-F5 new-window -k "$BYOBU_PREFIX/lib/byobu/include/cycle-status" \; source $BYOBU_PREFIX/share/byobu/profiles/tmuxrc
54
bind-key -n C-F5 send-keys ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets" \; send-keys Enter
55
bind-key -n C-S-F5 new-window -d "byobu-select-profile -r"
57
bind-key -n S-F6 run-shell 'exec touch $BYOBU_RUN_DIR/no-logout' \; detach
58
bind-key -n C-F6 kill-pane
59
bind-key -n F7 copy-mode
60
bind-key -n M-NPage copy-mode \; send-keys NPage
61
bind-key -n M-PPage copy-mode \; send-keys PPage
62
bind-key -n F8 command-prompt -p "(rename-window)" "rename-window %%"
63
bind-key -n S-F8 next-layout
64
bind-key -n C-F8 new-window -k "byobu-layout restore; clear; $SHELL"
65
bind-key -n C-S-F8 command-prompt -p "Save byobu layout as:" "run-shell 'byobu-layout save %%'"
66
bind-key -n F9 new-window -k -n config byobu-config
67
bind-key -n M-F11 break-pane
68
bind-key -n C-F11 join-pane -h -s :. -t :-1
69
bind-key -n S-F11 join-pane -v -s :. -t :-1
70
bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable
71
bind-key -n C-S-F12 new-window $BYOBU_PREFIX/lib/byobu/include/mondrian
72
bind-key -n M-IC paste-buffer