* debian/install, keybindings/common.disable, profiles/common: add support

for enabling/disabling the byobu keybindings, with ctrl-a-( and
    ctrl-a-), LP: #386363


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-12 11:13:55 -05:00
commit 0049efd481
4 changed files with 47 additions and 4 deletions

7
debian/changelog vendored
View file

@ -1,8 +1,11 @@
byobu (2.11) unreleased; urgency=low
* UNRELEASED
* debian/install, keybindings/common.disable, profiles/common: add support
for enabling/disabling the byobu keybindings, with ctrl-a-( and
ctrl-a-), LP: #386363
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Jun 2009 23:30:01 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 12 Jun 2009 11:13:47 -0500
byobu (2.10-0ubuntu1) karmic; urgency=low

3
debian/install vendored
View file

@ -6,8 +6,7 @@ profiles/NONE usr/share/byobu/profiles
profiles/black usr/share/byobu/profiles
profiles/dark usr/share/byobu/profiles
profiles/light usr/share/byobu/profiles
keybindings/common usr/share/byobu/keybindings
keybindings/none usr/share/byobu/keybindings
keybindings/* usr/share/byobu/keybindings
windows/common usr/share/byobu/windows
select-screen-profile usr/bin
byobu usr/bin

View file

@ -0,0 +1,34 @@
###############################################################################
# Disable Byobu's common keybindings
# This configuration profile is intended to be a common header of useful
# keybindings, included by other profiles.
#
# Copyright (C) 2008 Nick Barcet <nick.barcet@canonical.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###############################################################################
# This file disables the common key bindings
bindkey -k k2
bindkey -k k3
bindkey -k k4
bindkey -k k5
bindkey -k k6
bindkey -k k7
bindkey -k k8
bindkey -k k9
bindkey -k F2
bind $
bind @
bind R

View file

@ -65,4 +65,11 @@ altscreen on
# Log 10000 lines
defscrollback 10000
# ctrl-a-( enables common keybindings
register e "^a:source /usr/share/byobu/keybindings/common^M"
bind ( process e
# ctrl-a-) disables common keybindings
register d "^a:source /usr/share/byobu/keybindings/common.disable^M"
bind ) process d
source $HOME/.byobu/keybindings