diff --git a/debian/changelog b/debian/changelog index af2f289d..27517965 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,10 @@ byobu (4.2) unreleased; urgency=low - turn on battery, disk_io, users, wifi, as nothing is displayed if we have none * usr/lib/byobu/disk: add trailing whitespace + * usr/bin/byobu-silent, usr/bin/Makefile.am: add a total silence + mode for Byobu + * usr/share/man/man1/byobu-quiet.1, usr/share/man/man1/byobu-silent.1: + - add a manpage for byobu-silent.1, and update byobu-silent.1 [ Scott Moser ] * usr/bin/byobu, usr/bin/byobu-reconnect-sockets, diff --git a/usr/bin/Makefile.am b/usr/bin/Makefile.am index 500103a2..9c12fd44 100644 --- a/usr/bin/Makefile.am +++ b/usr/bin/Makefile.am @@ -1,2 +1,2 @@ -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-status byobu-status-detail 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-profile byobu-select-session byobu-silent byobu-status byobu-status-detail shell diff --git a/usr/bin/byobu-silent b/usr/bin/byobu-silent new file mode 100755 index 00000000..7d691dd2 --- /dev/null +++ b/usr/bin/byobu-silent @@ -0,0 +1,32 @@ +#!/bin/sh +# +# byobu-silence - disable the hardstatus, all indicators, and the window list +# Copyright (C) 2011 Canonical Ltd. +# +# 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" +FLAG="$HOME/.$PKG/status.disable" + +# Clean up environment +sed -i "/caption/d" "$HOME/.$PKG/keybindings" || true +if [ "$1" = "--undo" ]; then + rm -f "$FLAG" +else + touch "$FLAG" + echo "caption splitonly ''" >> "$HOME/.$PKG/keybindings" +fi +exec byobu-quiet "$@" diff --git a/usr/share/man/man1/byobu-quiet.1 b/usr/share/man/man1/byobu-quiet.1 index 92523652..af3ff110 100644 --- a/usr/share/man/man1/byobu-quiet.1 +++ b/usr/share/man/man1/byobu-quiet.1 @@ -8,7 +8,10 @@ byobu\-quiet [--undo] .SH DESCRIPTION \fBbyobu\-quiet\fP will disable ALL of Byobu's status indicators and eliminate the hardstatus line. -Some administrators, in some environments, at some times may prefer a very minimal, quiet Byobu, without the potentially distracting status indicators and eye candy. However, the window menu is preserved, as well as all of Byobu's keybindings and helper utilities. +Some administrators, in some environments, at some times may prefer a very minimal, quiet Byobu, without the potentially distracting status indicators and eye candy. However, the window menu is preserved, as well as all of Byobu's keybindings and helper utilities. To elminate the window list, use \fBbyobu-silent\fP(1). + +.SH SEE ALSO +\fBbyobu-silent\fP(1) .TP \fIhttp://launchpad.net/byobu\fP diff --git a/usr/share/man/man1/byobu-silent.1 b/usr/share/man/man1/byobu-silent.1 new file mode 100644 index 00000000..4cfec71c --- /dev/null +++ b/usr/share/man/man1/byobu-silent.1 @@ -0,0 +1,25 @@ +.TH byobu-silent 1 "21 May 2011" byobu "byobu" +.SH NAME +byobu\-silent\- Silence all of Byobu's status indicators, eliminate the hardstatus line, and the window list + +.SH USAGE +byobu\-silent [--undo] + +.SH DESCRIPTION +\fBbyobu\-silent\fP will disable ALL of Byobu's status indicators, eliminate the hardstatus line, and the window list. + +Some administrators, in some environments, at some times may prefer a very minimal, quiet Byobu, without the potentially distracting status indicators and eye candy. + +\fBbyobu-silent\fP implies \fBbyobu-quiet\fP. + +.SH SEE ALSO +\fBbyobu-quiet\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.