From ae1309be1a31a00505c7d9d6216e0253e8bd71f8 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 30 Oct 2011 10:26:09 -0500 Subject: [PATCH] * usr/bin/byobu-select-backend, usr/bin/Makefile.am, usr/share/man/man1/byobu-select-backend.1, usr/share/man/man1/Makefile.am: - add a utility to select default byobu backend (screen or tmux) --- debian/changelog | 4 ++ usr/bin/Makefile.am | 2 +- usr/bin/byobu-select-backend | 62 +++++++++++++++++++++++ usr/share/man/man1/Makefile.am | 2 +- usr/share/man/man1/byobu-select-backend.1 | 25 +++++++++ 5 files changed, 93 insertions(+), 2 deletions(-) create mode 100755 usr/bin/byobu-select-backend create mode 100644 usr/share/man/man1/byobu-select-backend.1 diff --git a/debian/changelog b/debian/changelog index 466977d0..4b7a0f75 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,10 @@ byobu (4.45) unreleased; urgency=low - shift-F11 -> breaks pane out to its own window * usr/lib/byobu/.constants: - comment out utf8 characters that don't look very good + * usr/bin/byobu-select-backend, usr/bin/Makefile.am, + usr/share/man/man1/byobu-select-backend.1, + usr/share/man/man1/Makefile.am: + - add a utility to select default byobu backend (screen or tmux) -- Dustin Kirkland Wed, 26 Oct 2011 10:05:01 -0500 diff --git a/usr/bin/Makefile.am b/usr/bin/Makefile.am index 87cdd067..a0fc383f 100644 --- a/usr/bin/Makefile.am +++ b/usr/bin/Makefile.am @@ -1,4 +1,4 @@ -bin_SCRIPTS = byobu byobu-config byobu-ctrl-a byobu-disable byobu-enable byobu-export byobu-janitor byobu-launch byobu-launcher byobu-launcher-install byobu-launcher-uninstall byobu-quiet byobu-reconnect-sockets byobu-select-profile byobu-select-session byobu-silent byobu-status byobu-status-detail byobu-shell +bin_SCRIPTS = byobu byobu-config byobu-ctrl-a byobu-disable byobu-enable byobu-export byobu-janitor byobu-launch byobu-launcher byobu-launcher-install byobu-launcher-uninstall byobu-quiet byobu-reconnect-sockets byobu-select-backend byobu-select-profile byobu-select-session byobu-silent byobu-status byobu-status-detail byobu-shell install-exec-hook: cd $(DESTDIR)$(bindir) && $(LN_S) byobu byobu-screen diff --git a/usr/bin/byobu-select-backend b/usr/bin/byobu-select-backend new file mode 100755 index 00000000..970d507c --- /dev/null +++ b/usr/bin/byobu-select-backend @@ -0,0 +1,62 @@ +#!/bin/sh -e +# +# byobu-select-backend +# Copyright (C) 2011 Dustin Kirkland +# +# Authors: Dustin Kirkland +# +# 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 . + + +PKG="byobu" +[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX +. "${BYOBU_PREFIX}/lib/${PKG}/.common" + +usage () { + cat < "$BYOBU_CONFIG_DIR/backend" diff --git a/usr/share/man/man1/Makefile.am b/usr/share/man/man1/Makefile.am index a6e28cb8..a03dc359 100644 --- a/usr/share/man/man1/Makefile.am +++ b/usr/share/man/man1/Makefile.am @@ -1 +1 @@ -man_MANS = byobu.1 byobu-config.1 byobu-ctrl-a.1 byobu-disable.1 byobu-enable.1 byobu-export.1 byobu-janitor.1 byobu-launch.1 byobu-launcher.1 byobu-launcher-install.1 byobu-launcher-uninstall.1 byobu-quiet.1 byobu-reconnect-sockets.1 byobu-screen.1 byobu-select-profile.1 byobu-select-session.1 byobu-shell.1 byobu-silent.1 byobu-status.1 byobu-status-detail.1 byobu-tmux.1 +man_MANS = byobu.1 byobu-config.1 byobu-ctrl-a.1 byobu-disable.1 byobu-enable.1 byobu-export.1 byobu-janitor.1 byobu-launch.1 byobu-launcher.1 byobu-launcher-install.1 byobu-launcher-uninstall.1 byobu-quiet.1 byobu-reconnect-sockets.1 byobu-screen.1 byobu-select-backend.1 byobu-select-profile.1 byobu-select-session.1 byobu-shell.1 byobu-silent.1 byobu-status.1 byobu-status-detail.1 byobu-tmux.1 diff --git a/usr/share/man/man1/byobu-select-backend.1 b/usr/share/man/man1/byobu-select-backend.1 new file mode 100644 index 00000000..7b9e32f1 --- /dev/null +++ b/usr/share/man/man1/byobu-select-backend.1 @@ -0,0 +1,25 @@ +.TH byobu\-select\-backend 1 "30 Oct 2011" byobu "byobu" +.SH NAME +byobu\-select\-backend \- select your default Byobu backend window manager + +.SH SYNOPSIS +byobu\-select\-backend [screen|tmux] + +.SH DESCRIPTION +\fBbyobu\-select\-backend\fP is an application that lists the available Byobu backends and allows you to select your default. + +You can select one of either \fBscreen\fP(1) or \fBtmux\fP(1) on the command line, or giving no command line parameters, the utility will run interactively. + +.SH "SEE ALSO" +.PD 0 +.TP +\fBbyobu\fP(1), \fBscreen\fP(1), \fBtmux\fP(1) + +.TP +\fIhttp://launchpad.net/byobu\fP +.PD + +.SH AUTHOR +This manpage and the utility were written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document and the utility under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. + +The complete text of the GNU General Public License can be found in \fI/usr/share/common-licenses/GPL\fP on Debian/Ubuntu systems, or in \fI/usr/share/doc/fedora-release-*/GPL\fP on Fedora systems, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP.