1
###############################################################################
2
# Disable Byobu's f-key keybindings, define a set using screen's escape
5
# Copyright (C) 2009 Dustin Kirkland <kirkland@canonical.com>
7
# This program is free software: you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation, version 3 of the License.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
###############################################################################
20
# This file disables the f-key bindings, but retains the
21
# keybindings that use screen's built-in escape sequence
23
# Disable the f-key bindings
34
# Use the following sequences for byobu functionality
35
# SEQUENCE ACTION F-Key equivalent
36
# ctrl-a-c Create a new window F2
37
# ctrl-a-p Previous window F3
38
# ctrl-a-n Next window F4
39
# ctrl-a-R Reload profile F5
40
register r "^a:source $HOME/.byobu/profile^M"
42
# ctrl-a-d Detach from this session F6
43
# ctrl-a-[ Enter copy/scrollback mode F7
44
# ctrl-a-A Re-title a window F8
45
# ctrl-a-@ Configuration F9
46
bind @ screen -t config 0 byobu-config
47
# ctrl-a-x Lock this terminal F12
48
# ctrl-a-$ Show detailed status
49
bind $ screen -t status 0 byobu-status-detail
50
# ctrl-a-! Toggle f-key keybindings on
51
register e "^a:source /usr/share/byobu/keybindings/f-keys^M"