├── .bzrignore ├── Applications └── Byobu.app │ └── Contents │ ├── Info.plist │ ├── MacOS │ └── Byobu │ ├── PkgInfo │ └── Resources │ ├── Byobu.icns │ ├── Icon-72.png │ ├── Icon-Small-50.png │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ ├── Icon.png │ ├── Icon@2x.png │ └── iTunesArtwork ├── COPYING ├── Makefile.am ├── README.md ├── autogen.sh ├── byobu.txt ├── configure.ac ├── debian ├── changelog ├── compat ├── config ├── control ├── copyright ├── docs ├── install ├── links ├── lintian │ └── byobu ├── po │ ├── POTFILES.in │ ├── de.po │ ├── en_GB.po │ ├── es.po │ ├── pt.po │ ├── ru.po │ └── templates.pot ├── postinst ├── postrm ├── rules ├── source │ └── format ├── source_byobu.py ├── templates └── watch ├── etc ├── byobu │ ├── Makefile.am │ ├── backend │ └── socketdir └── profile.d │ ├── Makefile.am │ └── Z97-byobu.sh.in ├── experimental └── byobu-classroom ├── po ├── POTFILES.Python ├── POTFILES.Shell ├── bg.po ├── byobu.pot ├── cs.po ├── de.po ├── en_GB.po ├── es.po ├── fr.po ├── hu.po ├── id.po ├── is.po ├── it.po ├── ja.po ├── la.po ├── lt.po ├── nl.po ├── pt.po ├── pt_BR.po ├── ru.po ├── sv.po ├── tr.po └── uk.po └── usr ├── bin ├── Makefile.am ├── byobu-config.in ├── byobu-ctrl-a.in ├── byobu-disable-prompt.in ├── byobu-disable.in ├── byobu-enable-prompt.in ├── byobu-enable.in ├── byobu-export.in ├── byobu-janitor.in ├── byobu-keybindings ├── byobu-launch.in ├── byobu-launcher-install.in ├── byobu-launcher-uninstall.in ├── byobu-launcher.in ├── byobu-layout.in ├── byobu-prompt.in ├── byobu-quiet.in ├── byobu-reconnect-sockets.in ├── byobu-screen ├── byobu-select-backend.in ├── byobu-select-profile.in ├── byobu-select-session.in ├── byobu-shell.in ├── byobu-silent.in ├── byobu-status-detail.in ├── byobu-status.in ├── byobu-tmux ├── byobu-ugraph.in ├── byobu-ulevel.in ├── byobu.in ├── col1 ├── ctail ├── manifest ├── purge-old-kernels ├── tmpfsffs ├── vigpg ├── whats-my-public-ip └── wifi-status ├── lib └── byobu │ ├── Makefile.am │ ├── apport │ ├── arch │ ├── battery │ ├── color │ ├── cpu_count │ ├── cpu_freq │ ├── cpu_temp │ ├── custom │ ├── date │ ├── disk │ ├── disk_io │ ├── distro │ ├── entropy │ ├── fan_speed │ ├── hostname │ ├── include │ ├── Makefile.am │ ├── colors │ ├── common │ ├── config.py.in │ ├── constants │ ├── cycle-status │ ├── dirs.in │ ├── icons │ ├── mondrian │ ├── notify_osd │ ├── select-session.py │ ├── shutil │ ├── tmux-detach-all-but-current-client │ ├── tmux-send-command-to-all-panes │ ├── tmux-send-command-to-all-windows │ └── toggle-utf8.in │ ├── ip_address │ ├── load_average │ ├── logo │ ├── mail │ ├── memory │ ├── menu │ ├── network │ ├── notify_osd │ ├── packages │ ├── processes │ ├── raid │ ├── reboot_required │ ├── release │ ├── services │ ├── session │ ├── swap │ ├── time │ ├── time_binary │ ├── time_utc │ ├── trash │ ├── updates_available │ ├── uptime │ ├── users │ ├── whoami │ └── wifi_quality └── share ├── appdata └── byobu.appdata.xml ├── byobu ├── desktop │ ├── Makefile.am │ ├── byobu.desktop │ └── byobu.desktop.old ├── keybindings │ ├── Makefile.am │ ├── common │ ├── f-keys │ ├── f-keys.screen │ ├── f-keys.screen.disable │ ├── f-keys.tmux │ ├── f-keys.tmux.disable │ ├── mouse.tmux.disable │ ├── mouse.tmux.enable │ ├── none │ └── tmux-screen-keys.conf ├── pixmaps │ ├── Makefile.am │ ├── byobu-banner.svg │ ├── byobu.14.png │ ├── byobu.192.png │ ├── byobu.64.png │ ├── byobu.png │ ├── byobu.svg │ ├── byobu_backup.svg │ └── highcontrast │ │ └── byobu.svg ├── profiles │ ├── Makefile.am │ ├── NONE │ ├── bashrc │ ├── byoburc │ ├── classroom │ ├── common │ ├── dircolors │ ├── screenrc │ ├── tmux │ └── tmuxrc ├── status │ ├── Makefile.am │ ├── status │ └── statusrc ├── tests │ ├── Makefile.am │ └── byobu-time-notifications.in └── windows │ ├── Makefile.am │ └── common ├── dbus-1 └── services │ ├── Makefile.am │ └── us.kirkland.terminals.byobu.service ├── doc └── byobu │ ├── Makefile.am │ ├── help.screen.txt │ └── help.tmux.txt ├── man └── man1 │ ├── Makefile.am │ ├── byobu-config.1 │ ├── byobu-ctrl-a.1 │ ├── byobu-disable-prompt.1 │ ├── byobu-disable.1 │ ├── byobu-enable-prompt.1 │ ├── byobu-enable.1 │ ├── byobu-export.1 │ ├── byobu-janitor.1 │ ├── byobu-keybindings.1 │ ├── byobu-launch.1 │ ├── byobu-launcher-install.1 │ ├── byobu-launcher-uninstall.1 │ ├── byobu-launcher.1 │ ├── byobu-layout.1 │ ├── byobu-prompt.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-detail.1 │ ├── byobu-status.1 │ ├── byobu-tmux.1 │ ├── byobu-ugraph.1 │ ├── byobu-ulevel.1 │ ├── byobu.1 │ ├── col1.1 │ ├── ctail.1 │ ├── manifest.1 │ ├── purge-old-kernels.1 │ ├── vigpg.1 │ └── wifi-status.1 └── sounds └── byobu └── byobu.ogg /.bzrignore: -------------------------------------------------------------------------------- 1 | # generic autoconf excludes 2 | Makefile 3 | Makefile.in 4 | /aclocal.m4 5 | /autom4te.cache 6 | /config.log 7 | /config.status 8 | /configure 9 | /install-sh 10 | /missing 11 | 12 | # generated from .in 13 | /etc/profile.d/Z97-byobu.sh 14 | /usr/bin/byobu 15 | /usr/bin/byobu-config 16 | /usr/bin/byobu-ctrl-a 17 | /usr/bin/byobu-disable 18 | /usr/bin/byobu-disable-prompt 19 | /usr/bin/byobu-enable 20 | /usr/bin/byobu-enable-prompt 21 | /usr/bin/byobu-export 22 | /usr/bin/byobu-janitor 23 | /usr/bin/byobu-launch 24 | /usr/bin/byobu-launcher 25 | /usr/bin/byobu-launcher-install 26 | /usr/bin/byobu-launcher-uninstall 27 | /usr/bin/byobu-layout 28 | /usr/bin/byobu-prompt 29 | /usr/bin/byobu-quiet 30 | /usr/bin/byobu-reconnect-sockets 31 | /usr/bin/byobu-select-backend 32 | /usr/bin/byobu-select-profile 33 | /usr/bin/byobu-select-session 34 | /usr/bin/byobu-shell 35 | /usr/bin/byobu-silent 36 | /usr/bin/byobu-status 37 | /usr/bin/byobu-status-detail 38 | /usr/bin/byobu-ugraph 39 | /usr/bin/byobu-ulevel 40 | /usr/lib/byobu/include/config.py 41 | /usr/lib/byobu/include/dirs 42 | /usr/lib/byobu/include/toggle-utf8 43 | /usr/share/byobu/tests/byobu-time-notifications 44 | 45 | # produced tarballs 46 | /byobu-*.tar.gz 47 | -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/MacOS/Byobu: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Byobu - wrapper script for Mac OS X Application Launcher 4 | # Copyright (C) 2012-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | set -e 21 | 22 | if [ -x /Applications/iTerm.app/Contents/MacOS/iTerm ]; then 23 | if [ -x /usr/local/bin/byobu ]; then 24 | exec /Applications/iTerm.app/Contents/MacOS/iTerm /usr/local/bin/byobu 25 | else 26 | echo "You should install byobu into /usr/local" 1>&2 27 | echo "HINT: brew install byobu" 1>&2 28 | exit 1 29 | fi 30 | else 31 | echo "You should install iTerm2 into your /Applications" 1>&2 32 | echo "HINT: http://www.iterm2.com" 1>&2 33 | exit 1 34 | fi 35 | -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPLBYOB 2 | -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Byobu.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Byobu.icns -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Icon-72.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Icon-72.png -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Icon-Small-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Icon-Small-50.png -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Icon-Small.png -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Icon-Small@2x.png -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Icon.png -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/Icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/Icon@2x.png -------------------------------------------------------------------------------- /Applications/Byobu.app/Contents/Resources/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/Applications/Byobu.app/Contents/Resources/iTunesArtwork -------------------------------------------------------------------------------- /Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = etc/byobu \ 2 | etc/profile.d \ 3 | usr/share/byobu/desktop \ 4 | usr/share/byobu/keybindings \ 5 | usr/share/byobu/pixmaps \ 6 | usr/share/byobu/profiles \ 7 | usr/share/byobu/status \ 8 | usr/share/byobu/tests \ 9 | usr/share/byobu/windows \ 10 | usr/share/dbus-1/services \ 11 | usr/share/doc/byobu \ 12 | usr/lib/byobu \ 13 | usr/lib/byobu/include \ 14 | usr/share/man/man1 \ 15 | usr/bin 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Byobu is a GPLv3 open source text-based window manager and terminal multiplexer. It was originally designed to provide elegant enhancements to the otherwise functional, plain, practical GNU Screen, for the Ubuntu server distribution. Byobu now includes an enhanced profiles, convenient keybindings, configuration utilities, and toggle-able system status notifications for both the GNU Screen window manager and the more modern Tmux terminal multiplexer, and works on most Linux, BSD, and Mac distributions. 2 | 3 | For more information about this package, please visit: 4 | http://byobu.org 5 | 6 | If *Byobu* is not packaged for your Linux or UNIX OS, or if you do not have administrative privileges in order to install Byobu, you may be able to install locally, using the following instructions... 7 | 8 | ### INSTALATION 9 | 1. If you want to pull the source from the upstream git: 10 | 11 | `git clone git://github.com/dustinkirkland/byobu.git byobu-src` 12 | `cd byobu-src ./debian/rules autoconf` 13 | 14 | 2. Or download the latest officially released version from: 15 | https://github.com/dustinkirkland/byobu 16 | 17 | 3. Extract: 18 | 19 | `tar zxvf byobu*.tar.gz && cd byobu*` 20 | 21 | 4. Configure: 22 | 23 | `./configure --prefix="$HOME/byobu"` 24 | 25 | ***OPTIONAL*** : You may use python from your environment, rather than from your distro 26 | 27 | ***echo "export BYOBU_PYTHON='/usr/bin/env python'" >> $HOME/.bashrc*** 28 | 29 | 5. Build: 30 | `make` 31 | 32 | 6. Install: 33 | 34 | `make install` 35 | 36 | 7. Update your `PATH` and `BYOBU_PREFIX` environment variables 37 | 38 | `echo "export PATH=$HOME/byobu/bin:$PATH" >> $HOME/.bashrc` 39 | `. $HOME/.bashrc` 40 | 41 | 8. Run: 42 | 43 | `byobu` 44 | 45 | > Note that you will need to have a few dependencies installed: 46 | * tmux >= 1.5 and screen 47 | * python-newt (if you want to use Byobu's configuration utility) 48 | * gsed (if your sed implementation doesn't support -i) 49 | 50 | ### CONTRIBUTION 51 | 52 | You may contribute to Byobu by forking the project on Github: 53 | 54 | $ git clone git://github.com/dustinkirkland/byobu.git 55 | 56 | You commit changes locally, and then propose a merge in Launchpad (ideally), or submit a pull request on Github (less ideally). 57 | 58 | As for coding standards, please use tabs, rather than spaces. Thanks! 59 | 60 | ### AUTHORS 61 | * Primary: Dustin Kirkland 62 | * Emeritus: Nick Barcet , Raphaël Pinson , Derek Carter 63 | 64 | ### LICENSE: 65 | https://github.com/dustinkirkland/byobu/blob/master/COPYING 66 | 67 | Dustin Kirkland 68 | 69 | 2023-11-22 70 | -------------------------------------------------------------------------------- /autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | autoreconf -fiv 5 | 6 | cat << EOF 7 | The byobu build system is now prepared. 8 | 9 | To build here, run: 10 | ./configure 11 | make 12 | EOF 13 | -------------------------------------------------------------------------------- /configure.ac: -------------------------------------------------------------------------------- 1 | # -*- Autoconf -*- 2 | # Process this file with autoconf to produce a configure script. 3 | 4 | AC_PREREQ([2.61]) 5 | AC_INIT([byobu], [5.121], [http://byobu.org]) 6 | AC_CONFIG_SRCDIR([usr/bin/byobu.in]) 7 | AM_INIT_AUTOMAKE([foreign]) 8 | AC_PROG_LN_S 9 | 10 | # Checks for programs. 11 | 12 | # Checks for libraries. 13 | 14 | # Checks for header files. 15 | 16 | # Checks for typedefs, structures, and compiler characteristics. 17 | 18 | # Checks for library functions. 19 | 20 | AC_OUTPUT(Makefile \ 21 | etc/byobu/Makefile \ 22 | etc/profile.d/Makefile \ 23 | etc/profile.d/Z97-byobu.sh \ 24 | usr/bin/byobu \ 25 | usr/bin/byobu-config \ 26 | usr/bin/byobu-ctrl-a \ 27 | usr/bin/byobu-disable \ 28 | usr/bin/byobu-disable-prompt \ 29 | usr/bin/byobu-enable \ 30 | usr/bin/byobu-enable-prompt \ 31 | usr/bin/byobu-export \ 32 | usr/bin/byobu-janitor \ 33 | usr/bin/byobu-launch \ 34 | usr/bin/byobu-launcher \ 35 | usr/bin/byobu-launcher-install \ 36 | usr/bin/byobu-launcher-uninstall \ 37 | usr/bin/byobu-layout \ 38 | usr/bin/byobu-prompt \ 39 | usr/bin/byobu-quiet \ 40 | usr/bin/byobu-reconnect-sockets \ 41 | usr/bin/byobu-select-backend \ 42 | usr/bin/byobu-select-profile \ 43 | usr/bin/byobu-select-session \ 44 | usr/bin/byobu-shell \ 45 | usr/bin/byobu-silent \ 46 | usr/bin/byobu-status \ 47 | usr/bin/byobu-status-detail \ 48 | usr/bin/byobu-ugraph \ 49 | usr/bin/byobu-ulevel \ 50 | usr/lib/byobu/include/config.py \ 51 | usr/lib/byobu/include/dirs \ 52 | usr/lib/byobu/include/toggle-utf8 \ 53 | usr/share/byobu/tests/byobu-time-notifications \ 54 | usr/share/byobu/desktop/Makefile \ 55 | usr/share/byobu/keybindings/Makefile \ 56 | usr/share/byobu/pixmaps/Makefile \ 57 | usr/share/byobu/profiles/Makefile \ 58 | usr/share/byobu/status/Makefile \ 59 | usr/share/byobu/tests/Makefile \ 60 | usr/share/byobu/windows/Makefile \ 61 | usr/share/dbus-1/services/Makefile \ 62 | usr/share/doc/byobu/Makefile \ 63 | usr/lib/byobu/Makefile \ 64 | usr/lib/byobu/include/Makefile \ 65 | usr/share/man/man1/Makefile usr/bin/Makefile) 66 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 13 2 | -------------------------------------------------------------------------------- /debian/config: -------------------------------------------------------------------------------- 1 | #! /bin/sh -e 2 | 3 | . /usr/share/debconf/confmodule 4 | db_version 2.0 5 | 6 | db_input medium byobu/launch-by-default || true 7 | db_go 8 | 9 | exit 0 10 | 11 | # vi: syntax=sh ts=4 noexpandtab 12 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: byobu 2 | Section: misc 3 | Priority: optional 4 | Maintainer: Dustin Kirkland 5 | Uploaders: Antoine Beaupré 6 | Standards-Version: 4.1.3 7 | Build-Depends: debhelper (>= 13), gettext-base, automake, autoconf, dh-python, python3 8 | Homepage: https://byobu.org 9 | Vcs-Git: https://github.com/dustinkirkland/byobu 10 | 11 | Package: byobu 12 | Architecture: all 13 | Depends: 14 | ${misc:Depends}, ${perl:Depends}, ${python3:Depends}, 15 | debconf (>= 0.5) | debconf-2.0, 16 | gettext-base, 17 | iproute2, 18 | python3, 19 | python3-newt, 20 | tmux (>= 1.5), 21 | gawk, 22 | Recommends: 23 | less, 24 | pastebinit, 25 | sensible-utils, 26 | run-one 27 | Suggests: 28 | apport, 29 | ccze, 30 | gnome-terminal|xterm, 31 | gnupg, 32 | lsb-release, 33 | po-debconf, 34 | screen, 35 | speedometer, 36 | ttf-ubuntu-font-family (>= 0.80-0ubuntu1~medium), 37 | update-notifier-common, 38 | vim, 39 | wireless-tools 40 | Provides: 41 | screen-profiles, 42 | screen-profiles-extras, 43 | byobu-extras 44 | Replaces: 45 | screen-profiles (<< 2.0), 46 | screen-profiles-extras (<< 2.0), 47 | byobu-extras (<< 2.17), 48 | bikeshed (<< 1.64) 49 | Breaks: 50 | screen-profiles (<< 2.0), 51 | screen-profiles-extras (<< 2.0), 52 | byobu-extras (<< 2.17), 53 | bikeshed (<< 1.64) 54 | Enhances: screen 55 | Description: text window manager, shell multiplexer, integrated DevOps environment 56 | Byobu is Ubuntu's powerful text-based window manager, shell multiplexer, and 57 | integrated DevOps environment. 58 | . 59 | Using Byobu, you can quickly create and move between different windows 60 | over a single SSH connection or TTY terminal, split each of those windows into 61 | multiple panes, monitor dozens of important statistics about your system, 62 | detach and reattach to sessions later while your programs continue to run in 63 | the background. 64 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | This package was debianized by Dustin Kirkland 2 | Sun, 14 Dec 2008 13:11:37 -0600 3 | 4 | It was downloaded from: https://github.com/dustinkirkland/byobu 5 | 6 | Upstream Authors: 7 | Dustin Kirkland 8 | 9 | Copyright: 10 | Copyright (C) 2008-2009 Canonical Ltd. 11 | Copyright (C) 2009-2023 Dustin Kirkland 12 | 13 | All rights reserved. 14 | 15 | License: 16 | 17 | This program is free software: you can redistribute it and/or modify 18 | it under the terms of the GNU General Public License as published by 19 | the Free Software Foundation version 3 of the License. 20 | 21 | This program is distributed in the hope that it will be useful, 22 | but WITHOUT ANY WARRANTY; without even the implied warranty of 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 | GNU General Public License for more details. 25 | 26 | You should have received a copy of the GNU General Public License 27 | along with this program. If not, see . 28 | 29 | On Debian systems, the complete text of the GNU General Public 30 | License, version 3, can be found in /usr/share/common-licenses/GPL-3. 31 | 32 | The Ubuntu packaging: 33 | Copyright (C) 2008-2009 Canonical Ltd. 34 | Copyright (C) 2009-2014 Dustin Kirkland 35 | released under the GPL-3. 36 | -------------------------------------------------------------------------------- /debian/docs: -------------------------------------------------------------------------------- 1 | README.md 2 | -------------------------------------------------------------------------------- /debian/install: -------------------------------------------------------------------------------- 1 | etc/byobu/socketdir etc/byobu/ 2 | etc/byobu/backend etc/byobu/ 3 | etc/profile.d/Z97-byobu.sh etc/profile.d/ 4 | usr/share/byobu/pixmaps/byobu.svg usr/share/icons/hicolor/scalable/apps/ 5 | usr/share/byobu/pixmaps/highcontrast/byobu.svg usr/share/icons/HighContrast/scalable/apps/ 6 | debian/source_byobu.py usr/share/apport/package-hooks 7 | -------------------------------------------------------------------------------- /debian/links: -------------------------------------------------------------------------------- 1 | usr/share/byobu/pixmaps/byobu.svg usr/share/icons/hicolor/scalable/apps/byobu.svg 2 | usr/bin/col1 usr/bin/col2 3 | usr/bin/col1 usr/bin/col3 4 | usr/bin/col1 usr/bin/col4 5 | usr/bin/col1 usr/bin/col5 6 | usr/bin/col1 usr/bin/col6 7 | usr/bin/col1 usr/bin/col7 8 | usr/bin/col1 usr/bin/col8 9 | usr/bin/col1 usr/bin/col9 10 | usr/bin/col1 usr/bin/NF 11 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col2.1.gz 12 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col3.1.gz 13 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col4.1.gz 14 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col5.1.gz 15 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col6.1.gz 16 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col7.1.gz 17 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col8.1.gz 18 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/col9.1.gz 19 | /usr/share/man/man1/col1.1.gz /usr/share/man/man1/NF.1.gz 20 | -------------------------------------------------------------------------------- /debian/lintian/byobu: -------------------------------------------------------------------------------- 1 | byobu: binary-without-manpage 2 | # The manpages are, of course, part of the original screen package. 3 | -------------------------------------------------------------------------------- /debian/po/POTFILES.in: -------------------------------------------------------------------------------- 1 | [type: gettext/rfc822deb] templates 2 | -------------------------------------------------------------------------------- /debian/po/de.po: -------------------------------------------------------------------------------- 1 | # German translation for byobu 2 | # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 3 | # This file is distributed under the same license as the byobu package. 4 | # FIRST AUTHOR , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: byobu\n" 9 | "Report-Msgid-Bugs-To: byobu@packages.debian.org\n" 10 | "POT-Creation-Date: 2013-01-24 18:31-0600\n" 11 | "PO-Revision-Date: 2010-02-27 23:46+0000\n" 12 | "Last-Translator: hintze \n" 13 | "Language-Team: German \n" 14 | "Language: de\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2010-03-01 05:02+0000\n" 19 | "X-Generator: Launchpad (build Unknown)\n" 20 | 21 | #. Type: boolean 22 | #. Description 23 | #: ../templates:1001 24 | msgid "Do you want to launch Byobu at shell login for all users?" 25 | msgstr "" 26 | "Soll Byobu bei allen Benutzern beim Anmelden in der Shell gestartet werden?" 27 | 28 | #. Type: boolean 29 | #. Description 30 | #: ../templates:1001 31 | msgid "" 32 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 33 | "attachable/detachable window manager on the command line." 34 | msgstr "" 35 | "Byobu kann beim Anmelden automatisch gestartet werden (z.B. Konsole, SSH), " 36 | "um einen anfügbaren/ablösbaren Fenstermanager in der Kommandozeile zu bieten." 37 | 38 | #. Type: boolean 39 | #. Description 40 | #: ../templates:1001 41 | msgid "" 42 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 43 | "This setting is system-wide, for all users logging into the system. " 44 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 45 | "or configuring with 'byobu-config'." 46 | msgstr "" 47 | "Wird diese Option gewählt, wird Byobu einen Symlink in /etc/profile.d " 48 | "erstellen. Diese Einstellung ist Systemweit und gilt für jeden Benutzer, der " 49 | "sich an dieses System anmeldet. Die einzelnen Benutzer können dies " 50 | "abschalten, indem sie die Datei ~/.byobu/disable-autolaunch anlegen oder " 51 | "Byobu mit 'byobu-config' konfigurieren." 52 | -------------------------------------------------------------------------------- /debian/po/en_GB.po: -------------------------------------------------------------------------------- 1 | # English (United Kingdom) translation for byobu 2 | # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 3 | # This file is distributed under the same license as the byobu package. 4 | # FIRST AUTHOR , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: byobu\n" 9 | "Report-Msgid-Bugs-To: byobu@packages.debian.org\n" 10 | "POT-Creation-Date: 2013-01-24 18:31-0600\n" 11 | "PO-Revision-Date: 2010-02-09 10:59+0000\n" 12 | "Last-Translator: Nick Trew \n" 13 | "Language-Team: English (United Kingdom) \n" 14 | "Language: \n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2010-02-10 04:44+0000\n" 19 | "X-Generator: Launchpad (build Unknown)\n" 20 | 21 | #. Type: boolean 22 | #. Description 23 | #: ../templates:1001 24 | msgid "Do you want to launch Byobu at shell login for all users?" 25 | msgstr "Do you want to launch Byobu at shell login for all users?" 26 | 27 | #. Type: boolean 28 | #. Description 29 | #: ../templates:1001 30 | msgid "" 31 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 32 | "attachable/detachable window manager on the command line." 33 | msgstr "" 34 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 35 | "attachable/detachable window manager on the command line." 36 | 37 | #. Type: boolean 38 | #. Description 39 | #: ../templates:1001 40 | msgid "" 41 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 42 | "This setting is system-wide, for all users logging into the system. " 43 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 44 | "or configuring with 'byobu-config'." 45 | msgstr "" 46 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 47 | "This setting is system-wide, for all users logging into the system. " 48 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 49 | "or configuring with 'byobu-config'." 50 | -------------------------------------------------------------------------------- /debian/po/es.po: -------------------------------------------------------------------------------- 1 | # Spanish translation for byobu 2 | # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 3 | # This file is distributed under the same license as the byobu package. 4 | # FIRST AUTHOR , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: byobu\n" 9 | "Report-Msgid-Bugs-To: byobu@packages.debian.org\n" 10 | "POT-Creation-Date: 2013-01-24 18:31-0600\n" 11 | "PO-Revision-Date: 2010-03-27 18:26+0000\n" 12 | "Last-Translator: DiegoJ \n" 13 | "Language-Team: Spanish \n" 14 | "Language: es\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2010-03-28 03:47+0000\n" 19 | "X-Generator: Launchpad (build Unknown)\n" 20 | 21 | #. Type: boolean 22 | #. Description 23 | #: ../templates:1001 24 | msgid "Do you want to launch Byobu at shell login for all users?" 25 | msgstr "" 26 | "¿Quiere lanzar Byobu cuando cualquier usuario inicie sesión por terminal?" 27 | 28 | #. Type: boolean 29 | #. Description 30 | #: ../templates:1001 31 | msgid "" 32 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 33 | "attachable/detachable window manager on the command line." 34 | msgstr "" 35 | "Byobu puede lanzarse automáticamente al iniciar sesión (por ejemplo, " 36 | "consola, ssh), proporcionando un gestor de ventanas acoplable/desacoplable " 37 | "en la línea de órdenes." 38 | 39 | #. Type: boolean 40 | #. Description 41 | #: ../templates:1001 42 | msgid "" 43 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 44 | "This setting is system-wide, for all users logging into the system. " 45 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 46 | "or configuring with 'byobu-config'." 47 | msgstr "" 48 | "Si selecciona esta opción, Byobu instalará un enlace simbólico en /etc/" 49 | "profile.d. Esta opción es global al sistema, para todos los usuarios que se " 50 | "registren en el sistema. Los usuarios individuales pueden deshabilitar esta " 51 | "opción tocando ~/.byobu/disable-autolaunch o accediendo a la configuración " 52 | "con «byobu-config»." 53 | -------------------------------------------------------------------------------- /debian/po/pt.po: -------------------------------------------------------------------------------- 1 | # Portuguese translation for byobu 2 | # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 3 | # This file is distributed under the same license as the byobu package. 4 | # FIRST AUTHOR , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: byobu\n" 9 | "Report-Msgid-Bugs-To: byobu@packages.debian.org\n" 10 | "POT-Creation-Date: 2013-01-24 18:31-0600\n" 11 | "PO-Revision-Date: 2010-04-05 13:18+0000\n" 12 | "Last-Translator: Tiago Silva \n" 13 | "Language-Team: Portuguese \n" 14 | "Language: pt\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2010-04-06 04:02+0000\n" 19 | "X-Generator: Launchpad (build Unknown)\n" 20 | 21 | #. Type: boolean 22 | #. Description 23 | #: ../templates:1001 24 | msgid "Do you want to launch Byobu at shell login for all users?" 25 | msgstr "Deseja lançar Byobu na entrada em shell para todos os utilizadores?" 26 | 27 | #. Type: boolean 28 | #. Description 29 | #: ../templates:1001 30 | msgid "" 31 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 32 | "attachable/detachable window manager on the command line." 33 | msgstr "" 34 | 35 | #. Type: boolean 36 | #. Description 37 | #: ../templates:1001 38 | msgid "" 39 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 40 | "This setting is system-wide, for all users logging into the system. " 41 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 42 | "or configuring with 'byobu-config'." 43 | msgstr "" 44 | -------------------------------------------------------------------------------- /debian/po/ru.po: -------------------------------------------------------------------------------- 1 | # Russian translation for byobu 2 | # Copyright (c) 2010 Rosetta Contributors and Canonical Ltd 2010 3 | # This file is distributed under the same license as the byobu package. 4 | # FIRST AUTHOR , 2010. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: byobu\n" 9 | "Report-Msgid-Bugs-To: byobu@packages.debian.org\n" 10 | "POT-Creation-Date: 2013-01-24 18:31-0600\n" 11 | "PO-Revision-Date: 2010-03-19 15:49+0000\n" 12 | "Last-Translator: Vadim Rutkovsky \n" 13 | "Language-Team: Russian \n" 14 | "Language: ru\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "X-Launchpad-Export-Date: 2010-03-20 04:48+0000\n" 19 | "X-Generator: Launchpad (build Unknown)\n" 20 | 21 | #. Type: boolean 22 | #. Description 23 | #: ../templates:1001 24 | msgid "Do you want to launch Byobu at shell login for all users?" 25 | msgstr "" 26 | 27 | #. Type: boolean 28 | #. Description 29 | #: ../templates:1001 30 | msgid "" 31 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 32 | "attachable/detachable window manager on the command line." 33 | msgstr "" 34 | 35 | #. Type: boolean 36 | #. Description 37 | #: ../templates:1001 38 | msgid "" 39 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 40 | "This setting is system-wide, for all users logging into the system. " 41 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 42 | "or configuring with 'byobu-config'." 43 | msgstr "" 44 | "При выборе этой опции, Byobu добавит ссылку в каталог /etc/profile.d. Эта " 45 | "настройка влияет на всех пользователей, которые войдут в систему. Отдельные " 46 | "пользователи могут быть отключены, создав файл ~/.byobu/disable-autolaunch " 47 | "или в конфигурации с помощью команды 'byobu-config'." 48 | -------------------------------------------------------------------------------- /debian/po/templates.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: byobu\n" 10 | "Report-Msgid-Bugs-To: byobu@packages.debian.org\n" 11 | "POT-Creation-Date: 2013-01-24 18:31-0600\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #. Type: boolean 21 | #. Description 22 | #: ../templates:1001 23 | msgid "Do you want to launch Byobu at shell login for all users?" 24 | msgstr "" 25 | 26 | #. Type: boolean 27 | #. Description 28 | #: ../templates:1001 29 | msgid "" 30 | "Byobu can launch automatically at login (e.g. console, ssh), providing an " 31 | "attachable/detachable window manager on the command line." 32 | msgstr "" 33 | 34 | #. Type: boolean 35 | #. Description 36 | #: ../templates:1001 37 | msgid "" 38 | "If you select this option, Byobu will install a symlink in /etc/profile.d. " 39 | "This setting is system-wide, for all users logging into the system. " 40 | "Individual users can disable this by touching ~/.byobu/disable-autolaunch, " 41 | "or configuring with 'byobu-config'." 42 | msgstr "" 43 | -------------------------------------------------------------------------------- /debian/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | . /usr/share/debconf/confmodule 4 | db_version 2.0 5 | 6 | PKG="byobu" 7 | 8 | db_get byobu/launch-by-default || true 9 | if [ "$RET" = true ]; then 10 | touch /etc/$PKG/autolaunch 11 | else 12 | rm -f /etc/$PKG/autolaunch 13 | fi 14 | 15 | # Install correct .desktop file 16 | if [ -x /usr/lib/gnome-terminal/gnome-terminal-server ]; then 17 | ln -sf /usr/share/$PKG/desktop/$PKG.desktop /usr/share/applications/$PKG.desktop 18 | else 19 | ln -sf /usr/share/$PKG/desktop/$PKG.desktop.old /usr/share/applications/$PKG.desktop 20 | fi 21 | 22 | # Clean up any old-school screen-profiles diversions of /usr/bin/screen 23 | if [ -f /usr/bin/screen ] && [ -f /usr/bin/screen.real ]; then 24 | divertpkg=$(dpkg-divert --listpackage /usr/bin/screen || true) 25 | if [ "$divertpkg" = "screen-profiles" ]; then 26 | rm -f /usr/bin/screen 27 | dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen 28 | fi 29 | fi 30 | 31 | # Remove the short-lived MOTD message 32 | rm -f /etc/update-motd.d/55-window-manager 33 | 34 | # Attempt to notify users that they should reload their profile 35 | touch_flag() { 36 | touch "$1" || true 37 | chown --reference $(dirname "$1") "$1" || true 38 | chmod 700 "$1" || true 39 | } 40 | [ -r "/etc/$PKG/socketdir" ] && . "/etc/$PKG/socketdir" 41 | if [ -d "$SOCKETDIR" ]; then 42 | for d in "$SOCKETDIR"/S-*; do 43 | if [ -d "$d/$PKG" ]; then 44 | # New location of the reload flag 45 | touch_flag "$d/$PKG/reload-required" 46 | elif [ -d "$d" ]; then 47 | # Old location of the reload flag 48 | touch_flag "$d/$PKG.reload-required" 49 | fi 50 | done 51 | fi 52 | 53 | # Clean-up obsolete config file 54 | rm -f /etc/byobu/statusrc || true 55 | 56 | #DEBHELPER# 57 | 58 | # vi: syntax=sh ts=4 noexpandtab 59 | -------------------------------------------------------------------------------- /debian/postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | 3 | PKG="byobu" 4 | 5 | # Clean-up obsolete config file 6 | rm -f /etc/byobu/statusrc || true 7 | 8 | # Clean-up linked desktop file 9 | rm -rf /usr/share/applications/$PKG.desktop 10 | 11 | #DEBHELPER# 12 | 13 | # vi: syntax=sh ts=4 noexpandtab 14 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | %: 3 | dh $@ --with python3 4 | 5 | override_dh_auto_build: 6 | # Check python syntax 7 | # pep8 gone from Debian 8 | #pep8 --verbose --repeat --ignore W191,E501,E117 usr/lib/byobu/include/config.py usr/lib/byobu/include/select-session.py 9 | # Check shell syntax 10 | sh -n `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;` 11 | # Check for bashisms in shell scripts 12 | checkbashisms `find . -type f -exec grep -l "^\#\!/bin/sh" '{}' \;` 2>&1 | grep "^possible bashism in " | grep -v "sleep only takes one integer" | grep -v "sourced script with arguments" || true 13 | dh_auto_build 14 | 15 | override_dh_perl: 16 | dh_perl -d 17 | 18 | autoconf: clean 19 | dh_testdir 20 | cp debian/changelog ChangeLog 21 | aclocal 22 | automake --add-missing --copy 23 | autoconf 24 | 25 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (quilt) 2 | -------------------------------------------------------------------------------- /debian/source_byobu.py: -------------------------------------------------------------------------------- 1 | '''apport package hook for byobu 2 | 3 | (c) 2009 Canonical Ltd. 4 | Author: Dustin Kirkland 5 | ''' 6 | 7 | from apport.hookutils import * 8 | from os import path 9 | 10 | def add_info(report): 11 | attach_related_packages(report, ['byobu*', 'screen*']) 12 | report['Binaries'] = command_output(['sh', '-c', 'ls -alF /usr/bin/screen* /usr/bin/byobu*']) 13 | -------------------------------------------------------------------------------- /debian/templates: -------------------------------------------------------------------------------- 1 | Template: byobu/launch-by-default 2 | Type: boolean 3 | Default: false 4 | _Description: Do you want to launch Byobu at shell login for all users? 5 | Byobu can launch automatically at login (e.g. console, ssh), providing 6 | an attachable/detachable window manager on the command line. 7 | . 8 | If you select this option, Byobu will install a symlink in /etc/profile.d. 9 | This setting is system-wide, for all users logging into the system. 10 | Individual users can disable this by touching 11 | ~/.byobu/disable-autolaunch, or configuring with 'byobu-config'. 12 | -------------------------------------------------------------------------------- /debian/watch: -------------------------------------------------------------------------------- 1 | version=3 2 | https://launchpad.net/byobu/+download http://launchpad.net/byobu/.*/byobu_(.+).orig.tar.gz 3 | -------------------------------------------------------------------------------- /etc/byobu/Makefile.am: -------------------------------------------------------------------------------- 1 | etcdir = @sysconfdir@/@PACKAGE@/ 2 | etc_DATA = backend socketdir 3 | -------------------------------------------------------------------------------- /etc/byobu/backend: -------------------------------------------------------------------------------- 1 | # BYOBU_BACKEND can currently be "screen" or "tmux" 2 | # Override this on a per-user basis by editing "$BYOBU_CONFIG_DIR/backend" 3 | # or by launching either "byobu-screen" or "byobu-tmux" instead of "byobu". 4 | BYOBU_BACKEND="tmux" 5 | -------------------------------------------------------------------------------- /etc/byobu/socketdir: -------------------------------------------------------------------------------- 1 | # Set the location of the socket directory that byobu will use. 2 | # On Debian/Ubuntu systems, this is in /var/run/screen, but on 3 | # other distros, it might be elsewhere, such as /tmp/screens 4 | # depending on your compilation. 5 | # 6 | # This file will be sourced by both shell scripts and python code, 7 | # so please ensure that: 8 | # * the variable name is SOCKETDIR 9 | # * there is no space around the "=" 10 | # * and that the path value is quoted 11 | SOCKETDIR="/var/run/screen" 12 | -------------------------------------------------------------------------------- /etc/profile.d/Makefile.am: -------------------------------------------------------------------------------- 1 | etcdir = @sysconfdir@/profile.d 2 | etc_DATA = Z97-byobu.sh 3 | -------------------------------------------------------------------------------- /etc/profile.d/Z97-byobu.sh.in: -------------------------------------------------------------------------------- 1 | # Z97-byobu.sh - allow any user to opt into auto-launching byobu 2 | # Copyright (C) 2011 Canonical Ltd. 3 | # 4 | # Authors: Dustin Kirkland 5 | # 6 | # This program is free software: you can redistribute it and/or modify 7 | # it under the terms of the GNU General Public License as published by 8 | # the Free Software Foundation, version 3 of the License. 9 | # 10 | # This program is distributed in the hope that it will be useful, 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | # GNU General Public License for more details. 14 | # 15 | # You should have received a copy of the GNU General Public License 16 | # along with this program. If not, see . 17 | 18 | # Allow any user to opt into auto-launching byobu by setting LC_BYOBU=1 19 | # Apologies for borrowing the LC_BYOBU namespace, but: 20 | # a) it's reasonable to assume that no one else is using LC_BYOBU 21 | # b) LC_* is sent and receieved by most /etc/ssh/ssh*_config 22 | 23 | if [ -r "@prefix@/bin/byobu-launch" ]; then 24 | if [ "$LC_BYOBU" = "0" ]; then 25 | true 26 | elif [ "$LC_BYOBU" = "1" ]; then 27 | . @prefix@/bin/byobu-launch 28 | elif [ -e "/etc/byobu/autolaunch" ]; then 29 | . @prefix@/bin/byobu-launch 30 | elif [ "$LC_TERMTYPE" = "byobu" ]; then 31 | . @prefix@/bin/byobu-launch 32 | elif [ "$LC_TERMTYPE" = "byobu-screen" ]; then 33 | export BYOBU_BACKEND="screen" 34 | . @prefix@/bin/byobu-launch 35 | elif [ "$LC_TERMTYPE" = "byobu-tmux" ]; then 36 | export BYOBU_BACKEND="tmux" 37 | . @prefix@/bin/byobu-launch 38 | fi 39 | fi 40 | 41 | # vi: syntax=sh ts=4 noexpandtab 42 | -------------------------------------------------------------------------------- /po/POTFILES.Python: -------------------------------------------------------------------------------- 1 | # List of source files containing translatable Python strings. 2 | # Please keep this file sorted alphabetically. 3 | usr/bin/byobu-config 4 | -------------------------------------------------------------------------------- /po/POTFILES.Shell: -------------------------------------------------------------------------------- 1 | # List of source files containing translatable sh strings. 2 | # Please keep this file sorted alphabetically. 3 | usr/lib/byobu/menu 4 | usr/bin/byobu-export 5 | usr/bin/byobu-select-profile 6 | -------------------------------------------------------------------------------- /usr/bin/Makefile.am: -------------------------------------------------------------------------------- 1 | bin_SCRIPTS = byobu byobu-config byobu-ctrl-a byobu-disable byobu-disable-prompt byobu-enable byobu-enable-prompt byobu-export byobu-janitor byobu-keybindings byobu-launch byobu-launcher byobu-launcher-install byobu-launcher-uninstall byobu-layout byobu-prompt byobu-quiet byobu-reconnect-sockets byobu-select-backend byobu-select-profile byobu-select-session byobu-silent byobu-status byobu-status-detail byobu-shell byobu-ugraph byobu-ulevel col1 ctail wifi-status vigpg manifest purge-old-kernels 2 | 3 | install-exec-hook: 4 | cd $(DESTDIR)$(bindir) && rm -f byobu-screen && $(LN_S) byobu byobu-screen 5 | cd $(DESTDIR)$(bindir) && rm -f byobu-tmux && $(LN_S) byobu byobu-tmux 6 | -------------------------------------------------------------------------------- /usr/bin/byobu-config.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-config - interactive byobu configuration wrapper script 4 | # Copyright (C) 2013-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 22 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 23 | 24 | ${BYOBU_PYTHON} "${BYOBU_PREFIX}/lib/${PKG}/include/config.py" 25 | -------------------------------------------------------------------------------- /usr/bin/byobu-disable-prompt.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-disable-prompt 4 | # Copyright (C) 2013-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | [ -w "$HOME/.bashrc" ] || exit 1 26 | 27 | $BYOBU_SED_INLINE -e "/#byobu-prompt#$/d" "$HOME/.bashrc" 28 | 29 | if [ "$1" != "--no-reload" ]; then 30 | if [ -n "$TMUX" ] && [ "$SHELL" = "/bin/bash" ]; then 31 | tmux send-keys " . ~/.bashrc" \; send-keys Enter 32 | else 33 | echo 34 | echo "You will need to reload your shell configuration for this to take effect..." 35 | echo " . ~/.bashrc" 36 | echo 37 | fi 38 | fi 39 | 40 | # vi: syntax=sh ts=4 noexpandtab 41 | -------------------------------------------------------------------------------- /usr/bin/byobu-disable.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-disable: disable byobu at login 4 | # Copyright (C) 2010 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | byobu-launcher-uninstall 26 | 27 | echo 28 | echo "The Byobu window manager will no longer be launched automatically at login." 29 | echo 30 | echo "To re-enable this behavior later, just run:" 31 | echo " byobu-enable" 32 | echo 33 | 34 | # If we're in a byobu session, let's exit that too 35 | case "$STY" in 36 | *byobu) 37 | $BYOBU_BACKEND -X at 0 quit 38 | ;; 39 | esac 40 | 41 | # vi: syntax=sh ts=4 noexpandtab 42 | -------------------------------------------------------------------------------- /usr/bin/byobu-enable-prompt.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-enable-prompt 4 | # Copyright (C) 2013-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | [ "$SHELL" = "/bin/bash" ] || exit 1 21 | 22 | PKG="byobu" 23 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 24 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 25 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 26 | 27 | 28 | prompt="${BYOBU_CONFIG_DIR}/prompt" 29 | printf ". ${BYOBU_PREFIX}/share/${PKG}/profiles/bashrc #byobu-prompt#\n" > "$prompt" 30 | $PKG-disable-prompt --no-reload "$1" || true 31 | printf "[ -r $prompt ] && . $prompt #byobu-prompt#\n" >> "$HOME/.bashrc" 32 | 33 | if [ -n "$TMUX" ]; then 34 | tmux send-keys " . ~/.bashrc" \; send-keys Enter 35 | else 36 | echo 37 | echo "You will need to reload your shell configuration for this to take effect..." 38 | echo " . ~/.bashrc" 39 | echo 40 | fi 41 | 42 | # vi: syntax=sh ts=4 noexpandtab 43 | -------------------------------------------------------------------------------- /usr/bin/byobu-enable.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-enable: enable launch byobu at login 4 | # Copyright (C) 2010 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | byobu-launcher-install 26 | 27 | echo 28 | echo "The Byobu window manager will be launched automatically at each text login." 29 | echo 30 | echo "To disable this behavior later, just run:" 31 | echo " byobu-disable" 32 | echo 33 | 34 | # vi: syntax=sh ts=4 noexpandtab 35 | -------------------------------------------------------------------------------- /usr/bin/byobu-export.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-export 4 | # Copyright (C) 2008-2010 Canonical Ltd. 5 | # Copyright (C) 2023 Dustin Kirkland 6 | # 7 | # Authors: Dustin Kirkland 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, version 3 of the License. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see . 20 | 21 | PKG="byobu" 22 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 23 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 24 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 25 | 26 | if eval $BYOBU_TEST gettext >/dev/null 2>&1; then 27 | command=gettext 28 | else 29 | command=echo 30 | fi 31 | 32 | $command " 33 | The byobu-export utility is now deprecated. 34 | 35 | To install byobu on a system for which byobu is not packaged, or 36 | where you are not the root user, simply: 37 | * Download the latest release (>= 3.0) from: 38 | https://github.com/dustinkirkland/byobu 39 | * And follow the instructions in the README 40 | 41 | " 42 | 43 | # vi: syntax=sh ts=4 noexpandtab 44 | -------------------------------------------------------------------------------- /usr/bin/byobu-keybindings: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # byobu-keybindings - toggle on/off the Byobu f-key shortcuts 4 | # Copyright (C) 2013-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | 21 | case "$BYOBU_BACKEND" in 22 | "tmux") 23 | enabled=$(tmux list-keys | grep "f-keys.tmux.disable ;") 24 | if [ -n "$enabled" ]; then 25 | tmux source "$BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux.disable" 26 | echo "Byobu keybindings: [OFF]" 27 | else 28 | tmux source "$BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux" 29 | echo "Byobu keybindings: [ON]" 30 | fi 31 | 32 | ;; 33 | "screen") 34 | if [ -n "$STY" ]; then 35 | flag="$BYOBU_RUN_DIR/.${STY}__f-keys_disabled" 36 | if [ -e "$flag" ]; then 37 | screen -X -S $STY at "*" eval 'process x' 'process e' 38 | rm -f "$flag" 39 | echo "Byobu keybindings: [ON]" 40 | else 41 | screen -X -S $STY at "*" eval 'process x' 'process d' 42 | touch "$flag" 43 | echo "Byobu keybindings: [OFF]" 44 | fi 45 | fi 46 | ;; 47 | esac 48 | -------------------------------------------------------------------------------- /usr/bin/byobu-launcher-install.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-launcher-install 4 | # Copyright (C) 2008 Canonical Ltd. 5 | # 6 | # Authors: Nick Barcet 7 | # Dustin Kirkland 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, version 3 of the License. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see . 20 | 21 | PKG="byobu" 22 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 23 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 24 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 25 | 26 | FLAG="$BYOBU_CONFIG_DIR/no-logout-on-detach" 27 | 28 | LOGOUT_ON_DETACH=1 29 | for i in $@; do 30 | case "$i" in 31 | -n|--no-logout) 32 | LOGOUT_ON_DETACH=0 33 | ;; 34 | esac 35 | done 36 | 37 | update_flag() { 38 | if [ "$LOGOUT_ON_DETACH" = "1" ]; then 39 | rm -f "$FLAG" 40 | else 41 | touch "$FLAG" 42 | fi 43 | } 44 | 45 | install_launcher() { 46 | $PKG-launcher-uninstall "$1" || true 47 | printf "_byobu_sourced=1 . ${BYOBU_PREFIX}/bin/byobu-launch 2>/dev/null || true\n" >> "$1" 48 | } 49 | 50 | install_launcher_fish() { 51 | $PKG-launcher-uninstall "$1" || true 52 | printf "if not set -q VSCODE_CWD; " >> "$1" 53 | printf " status --is-login; and status --is-interactive; and exec byobu-launcher;" >> "$1" 54 | printf "end" >> "$1" 55 | } 56 | 57 | # Sanitize the environment 58 | $PKG-launcher-uninstall || true 59 | 60 | # Handle bourne shells, if not set globally in /etc/profile.d 61 | if [ ! -h "/etc/profile.d/Z97-$PKG.sh" ]; then 62 | # Install in $HOME/.profile unconditionally 63 | install_launcher "$HOME/.profile" 64 | # Now, install in any shell-specific profiles, if they exist 65 | # This list may grow to support other shells 66 | for i in ".bash_profile" ".bash_login"; do 67 | if [ -w "$HOME/$i" ]; then 68 | install_launcher "$HOME/$i" 69 | fi 70 | done 71 | fi 72 | 73 | # Install in zprofile if default shell is zsh 74 | case "$SHELL" in 75 | *zsh) 76 | install_launcher "$HOME/.zprofile" 77 | ;; 78 | esac 79 | 80 | # Handle fish shell 81 | if [ -d "$HOME/.config/fish" ]; then 82 | install_launcher_fish "$HOME/.config/fish/config.fish" 83 | fi 84 | 85 | # Hush login, since we will handle motd printing 86 | touch "$HOME"/.hushlogin 87 | rm -f "$BYOBU_CONFIG_DIR/disable-autolaunch" 88 | 89 | # Update the logout/nologout flag 90 | update_flag 91 | 92 | # vi: syntax=sh ts=4 noexpandtab 93 | -------------------------------------------------------------------------------- /usr/bin/byobu-launcher-uninstall.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-launcher-uninstall 4 | # Copyright (C) 2008 Canonical Ltd. 5 | # 6 | # Authors: Nick Barcet 7 | # Dustin Kirkland 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, version 3 of the License. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see . 20 | 21 | PKG="byobu" 22 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 23 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 24 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 25 | 26 | remove_launcher() { 27 | dest=$1 28 | if [ -w "$dest" ]; then 29 | # keep any comments, and remove lines invoking byobu: 30 | $BYOBU_SED_INLINE -e '/^\s*#/n' -e "/\b$PKG-launch/d" -e "/\bscreen-launch/d" "$dest" 31 | fi 32 | } 33 | 34 | if [ -f "$1" ]; then 35 | remove_launcher "$1" 36 | else 37 | for i in ".profile" ".bashrc" ".bash_profile" ".bash_login" ".zprofile" ".config/fish/config.fish"; do 38 | remove_launcher "$HOME/$i" 39 | done 40 | fi 41 | 42 | mkdir -p "$BYOBU_CONFIG_DIR" 43 | touch "$BYOBU_CONFIG_DIR/disable-autolaunch" 44 | # install disabled motd printing; re-enable 45 | rm -f "$HOME"/.hushlogin 46 | 47 | # vi: syntax=sh ts=4 noexpandtab 48 | -------------------------------------------------------------------------------- /usr/bin/byobu-launcher.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-launcher - conditionally launch byobu 4 | # Copyright (C) 2010 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | # Bad things happen if you run byobu, but you don't own your $HOME 22 | # ie, rather than "sudo byobu", you must run "sudo -H byobu" 23 | if [ -O "$HOME" ]; then 24 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 25 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 26 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 27 | if [ -e "$BYOBU_CONFIG_DIR/disable-autolaunch" ]; then 28 | false 29 | else 30 | case "$TERM" in 31 | *screen*) 32 | # Handle nesting 33 | if [ -n "$SSH_CONNECTION" ] && [ "$(printf "$SSH_CONNECTION" | awk '{print $1}')" != "$(printf "$SSH_CONNECTION" | awk '{print $3}')" ]; then 34 | # Safeguard against ssh-ing into ourself, which causes an infinite loop 35 | exec $BYOBU_PREFIX/bin/byobu "$@" 36 | else 37 | echo "INFO: Disabling auto-launch of Byobu in this SSH connection, to avoid a potential infinite loop" 1>&2 38 | echo "INFO: You can still run 'byobu' manually at the command line, if you know what you're doing" 1>&2 39 | true 40 | fi 41 | ;; 42 | dumb) 43 | # Dumb terminal, don't launch 44 | false 45 | ;; 46 | *) 47 | exec $BYOBU_PREFIX/bin/byobu "$@" 48 | ;; 49 | esac 50 | fi 51 | fi 52 | false 53 | 54 | # vi: syntax=sh ts=4 noexpandtab 55 | -------------------------------------------------------------------------------- /usr/bin/byobu-prompt.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-prompt 4 | # Copyright (C) 2013-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | echo 26 | echo -n "Do you want to enable Byobu's bash color prompt? [Y/n]: " 27 | answer=$(head -n1) 28 | echo 29 | case "$answer" in 30 | "n"|"N") 31 | exec byobu-disable-prompt 32 | ;; 33 | *) 34 | exec byobu-enable-prompt 35 | esac 36 | 37 | # vi: syntax=sh ts=4 noexpandtab 38 | -------------------------------------------------------------------------------- /usr/bin/byobu-quiet.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # byobu-quiet - disable the hardstatus and all indicators 4 | # Copyright (C) 2011 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | FLAG="$BYOBU_CONFIG_DIR/status.disable" 26 | 27 | # Clean up environment 28 | $BYOBU_SED_INLINE "/hardstatus/d" "$BYOBU_CONFIG_DIR/keybindings" || true 29 | if [ "$1" = "--undo" ]; then 30 | rm -f "$FLAG" 31 | else 32 | touch "$FLAG" 33 | # BUG: Need to make this dynamic and following 34 | status="$USER@$(hostname)" 35 | echo "hardstatus lastline '$status'" >> "$BYOBU_CONFIG_DIR/keybindings" 36 | fi 37 | $BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile" 38 | 39 | # vi: syntax=sh ts=4 noexpandtab 40 | -------------------------------------------------------------------------------- /usr/bin/byobu-screen: -------------------------------------------------------------------------------- 1 | byobu -------------------------------------------------------------------------------- /usr/bin/byobu-select-backend.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-select-backend 4 | # Copyright (C) 2011-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | 21 | PKG="byobu" 22 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 23 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 24 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 25 | 26 | usage () { 27 | cat < "$BYOBU_CONFIG_DIR/backend" 64 | -------------------------------------------------------------------------------- /usr/bin/byobu-select-session.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # byobu-select-session - interactive session select wrapper script 4 | # Copyright (C) 2013-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 22 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 23 | 24 | exec ${BYOBU_PYTHON} "${BYOBU_PREFIX}/lib/${PKG}/include/select-session.py" 25 | -------------------------------------------------------------------------------- /usr/bin/byobu-shell.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # byobu-shell: display the MOTD and launch the default shell 4 | # Copyright (C) 2008 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | FLAG="$BYOBU_CONFIG_DIR/.welcome-displayed" 26 | 27 | # Find a MOTD, seems that they're moving around 28 | for i in /etc/motd /run/motd.dynamic /run/motd; do 29 | [ -r $i ] && [ ! -e "$HOME"/.hushlogin ] && cat $i && break 30 | done 31 | 32 | if [ ! -e "$FLAG" ]; then 33 | echo 34 | echo "Welcome to the light, powerful, text window manager, Byobu." 35 | echo "You can toggle the launch of Byobu at login with:" 36 | echo " 'byobu-disable' and 'byobu-enable'" 37 | echo 38 | echo "For tips, tricks, and more information, see:" 39 | echo " * https://bit.ly/byobu-tips" 40 | echo 41 | touch "$FLAG" 42 | fi 43 | 44 | # This needs to be a -l login shell, in order to source profiles 45 | # and colorize the prompt 46 | [ -n "$SHELL" -a -x "$SHELL" ] && exec "$SHELL" -l || exec /bin/sh -l 47 | 48 | # vi: syntax=sh ts=4 noexpandtab 49 | -------------------------------------------------------------------------------- /usr/bin/byobu-silent.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # byobu-silence - disable the hardstatus, all indicators, and the window list 4 | # Copyright (C) 2011 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | FLAG="$BYOBU_CONFIG_DIR/status.disable" 26 | 27 | # Clean up environment 28 | $BYOBU_SED_INLINE "/caption/d" "$BYOBU_CONFIG_DIR/keybindings" || true 29 | if [ "$1" = "--undo" ]; then 30 | rm -f "$FLAG" 31 | else 32 | touch "$FLAG" 33 | echo "caption splitonly ''" >> "$BYOBU_CONFIG_DIR/keybindings" 34 | fi 35 | exec byobu-quiet "$@" 36 | 37 | # vi: syntax=sh ts=4 noexpandtab 38 | -------------------------------------------------------------------------------- /usr/bin/byobu-status-detail.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # byobu-status-detail 4 | # Copyright (C) 2008 Canonical Ltd. 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | PKG="byobu" 21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc" 22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX 23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common" 24 | 25 | if which vim >/dev/null && `vim --version | grep -q +folding`; then 26 | byobu-status --detail | vim -c "set foldmethod=indent" -c "set foldminlines=0" -c "set foldnestmax=1" -c "set foldcolumn=2" -R - 27 | else 28 | byobu-status --detail | $BYOBU_PAGER 29 | fi 30 | 31 | # vi: syntax=sh ts=4 noexpandtab 32 | -------------------------------------------------------------------------------- /usr/bin/byobu-tmux: -------------------------------------------------------------------------------- 1 | byobu -------------------------------------------------------------------------------- /usr/bin/col1: -------------------------------------------------------------------------------- 1 | #!/bin/sh -e 2 | # 3 | # col1..col9 - handy hack to print a column from standard in 4 | # 5 | # Copyright (C) 2010 Dustin Kirkland 6 | # 7 | # Authors: 8 | # Dustin Kirkland 9 | # 10 | # This program is free software: you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation, either version 3 of the License. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | if [ $# -gt 0 ]; then 23 | ifs='-F'"$1" 24 | shift || true 25 | else 26 | ifs="-F " 27 | fi 28 | b=$(basename $0) 29 | awk "$ifs" '{print $'${b#col}'}' "$@" 30 | -------------------------------------------------------------------------------- /usr/bin/ctail: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # ctail - colorize and follow a log file 4 | # 5 | # Copyright (C) 2012 Dustin Kirkland 6 | # 7 | # Authors: 8 | # Dustin Kirkland 9 | # 10 | # This program is free software: you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation, version 3 of the License. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | 22 | if which ccze >/dev/null 2>&1; then 23 | tail -F "$@" | ccze -A 24 | else 25 | echo "ERROR: ccze not found, hint..." 1>&2 26 | echo " sudo apt-get install ccze" 2>&1 27 | exit 1 28 | fi 29 | -------------------------------------------------------------------------------- /usr/bin/manifest: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # manifest - import/export a list of packages 4 | # Copyright (C) 2016 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | 20 | set -e 21 | 22 | if ! command -v pastebinit >/dev/null 2>&1; then 23 | echo "ERROR: pastebinit not found. Hint:" 1>&2 24 | echo " sudo apt install pastebinit" 1>&2 25 | exit 1 26 | fi 27 | 28 | export_packages() { 29 | if [ "$OBJECT" = "-" ]; then 30 | dpkg -l 31 | elif echo "$OBJECT" | grep -qs ".*://.*"; then 32 | dpkg -l | gzip -9 | base64 | pastebinit -b "${OBJECT##*/}" 33 | else 34 | dpkg -l > "$OBJECT" 35 | fi 36 | } 37 | 38 | import_packages() { 39 | if [ "$OBJECT" = "-" ]; then 40 | sudo apt install $(cat /dev/stdin | grep "^ii\s" | col2) 41 | elif echo "$OBJECT" | grep -qs ".*://.*"; then 42 | sudo apt install $(wget -q -O- "$OBJECT" | grep -A 999999999 '
' | grep -B 999999999 "^
" | sed -e "s/.*
//" -e "s/^<\/pre>.*//" | base64 -d | gunzip | grep "^ii\s" | col2)
43 | 	else
44 | 		sudo apt install $(cat "$OBJECT" | grep "^ii\s" | col2)
45 | 	fi
46 | }
47 | 
48 | usage() {
49 | 	cat <
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #             Kees Cook 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | # apt autoremove supposedly works correctly now.
22 | #
23 | # Thus, we're deprecating the functionality previously found
24 | # in purge-old-kernels.
25 | #
26 | # If you still have old kernels lying around after this, please
27 | # file a bug against apt: https://bugs.launchpad.net/ubuntu/+source/apt/+filebug
28 | 
29 | sudo apt-get $@ autoremove
30 | 


--------------------------------------------------------------------------------
/usr/bin/tmpfsffs:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    tmpfsffs - setup /tmp on tmpfs, for faster seeks
 4 | #    Copyright (C) 2016 Dustin Kirkland
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #
 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.
11 | #
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.
16 | #
17 | #    You should have received a copy of the GNU General Public License
18 | #    along with this program.  If not, see .
19 | 
20 | 
21 | set -e
22 | 
23 | if grep -qs "^tmpfs[[:space:]]/tmp[[:space:]]tmpfs" /etc/fstab; then
24 | 	echo "SUCCESS: /tmp is already a tmpfs"
25 | else
26 | 	echo "tmpfs /tmp tmpfs rw,nosuid,nodev,noexec" >> /etc/fstab
27 | 	dir=$(mktemp -d "/dev/shm/tmp.XXXXXXXXXXXX")
28 | 	mv /tmp/* /tmp/.* "$dir/"
29 | 	mount -a
30 | 	mv "$dir/"* "$dir/."* /tmp/
31 | fi
32 | 


--------------------------------------------------------------------------------
/usr/bin/vigpg:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    vigpg - edit an encrypted file
 4 | #    Copyright (C) 2010-2015 Dustin Kirkland
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #
 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.
11 | #
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.
16 | #
17 | #    You should have received a copy of the GNU General Public License
18 | #    along with this program.  If not, see .
19 | 
20 | 
21 | set -e
22 | 
23 | # Create a temporary workspace, in memory
24 | # Note that this unfortunately is not mlock(2)-able
25 | cleartext_file=$(mktemp /dev/shm/.vigpg-XXXXXXXXXXXX)
26 | 
27 | # Ensure that we always remove the cleartext_file on any exit
28 | trap "shred -f ${cleartext_file} ${cleartext_file}.gpg 2>/dev/null || true" EXIT HUP INT QUIT TERM
29 | 
30 | # Encrypted file from argv
31 | encrypted_file="$1"
32 | 
33 | # Define our bail out function
34 | error() {
35 | 	# Log to stderr
36 | 	echo "ERROR: $1" 1>&2
37 | 	# Remove our cleartext files, just in case the trap misses them somehow
38 | 	rm -f "$cleartext_file" "$cleartext_file".gpg
39 | 	# Exit non-zero to note the error condition
40 | 	exit 1
41 | }
42 | 
43 | if ! which gpg >/dev/null 2>&1; then
44 | 	echo "ERROR: gpg not found, hint..." 1>&2
45 | 	echo "  sudo apt-get install gnupg" 2>&1
46 | 	exit 1
47 | fi
48 | 
49 | # Try to decrypt the target file
50 | if [ -e "$encrypted_file" ]; then
51 | 	rm -f "$cleartext_file"
52 | 	gpg -o "$cleartext_file" -d "$encrypted_file" 		|| error "Unable to decrypt target"
53 | fi
54 | 
55 | # Grab a checksum of the cleartext data before modification
56 | before=$(sha512sum "$cleartext_file")
57 | 
58 | # Open the target cleartext file in your editor of choice
59 | # It's up to this editor to save the file, if edited
60 | sensible-editor "$cleartext_file"				|| error "Unable to edit target"
61 | 
62 | # Calculate a checksum afterward, to dectect modification
63 | after=$(sha512sum "$cleartext_file")
64 | 
65 | if [ "$before" != "$after" ]; then
66 | 	# File was modified, so we need to re-encrypt and overwrite our previous file
67 | 	run-one-until-success gpg --default-recipient-self -s -e "$cleartext_file"	 	|| error "Unable to re-encrypt target"
68 | 	cat "$cleartext_file".gpg > "$1"				|| error "Unable to write new encrypted file"
69 | 	echo
70 | 	echo "Successfully encrypted update file [$encrypted_file]"
71 | else
72 | 	# File was not modified, so do not re-encrypt/overwrite
73 | 	echo
74 | 	echo "The encrypted file was not modified [$encrypted_file]"
75 | fi
76 | rm -f "$cleartext_file" "$cleartext_file".gpg
77 | 


--------------------------------------------------------------------------------
/usr/bin/whats-my-public-ip:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | 
3 | #wget http://ipinfo.io/ip -qO -
4 | 
5 | curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
6 | 


--------------------------------------------------------------------------------
/usr/bin/wifi-status:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    wifi-status - monitor a wireless network connection
 4 | #
 5 | #    Copyright (C) 2003-2014 Dustin Kirkland 
 6 | #
 7 | #    Authors:
 8 | #        Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | trap "pkill -f -9 wifi-status >/dev/null 2>&1; exit 0" EXIT HUP INT QUIT TERM
23 | 
24 | if [ -z "$1" ]; then
25 | 	dev=$(iw dev|grep Interface|awk '{print $2}')
26 | else
27 | 	dev="$1"
28 | fi
29 | 
30 | router=$(ip route show|head -n 1|awk '{print $3}')
31 | 
32 | if [ -z "$TMUX" ]; then
33 | 	watch -n1 "iw $dev info; ip addr show $dev; ip route; echo; (journalctl -b --no-pager -q | grep -i $dev | tail -n 10 | sort -r); echo; ping -I $dev -c 1 8.8.8.8"
34 | else
35 | 	# Note that the speedometer item will silently fail, if the speedometer command is not found;  I don't want byobu to depend on speedometer, but it can suggest it
36 | 	tmux new-window -n wifi-status "watch -c iw $dev info \| ccze -A" \; \
37 | 		split-window -t wifi-status -v "watch -c ip addr show $dev \| ccze -A" \; \
38 | 		split-window -t wifi-status -v "watch -c ip route \| ccze -A" \; \
39 | 		split-window -t wifi-status -h "ping -I $dev $router" \; \
40 | 		split-window -t wifi-status -v "watch -c journalctl -b --no-pager -q \| grep -i $dev \| tail -n 10 \| sort -r \| ccze -A" \; \
41 | 		split-window -t wifi-status -h "ping -I $dev 8.8.8.8" \; \
42 | 		split-window -t wifi-status -v "speedometer -t $dev -r $dev" \; \
43 | 		select-layout -t wifi-status tiled
44 | fi
45 | 
46 | while true; do
47 | 	if [ $(tmux list-panes -t wifi-status | wc -l) -lt 5 ]; then
48 | 		tmux kill-window -t wifi-status
49 | 		exit 0
50 | 	fi
51 | 	sleep 1
52 | done
53 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/Makefile.am:
--------------------------------------------------------------------------------
1 | libdirdir = $(prefix)/lib/@PACKAGE@
2 | libdir_SCRIPTS = apport  arch  battery  cpu_count  cpu_freq  cpu_temp  color  custom  date  disk  disk_io  distro  entropy  fan_speed  hostname  ip_address  load_average  logo  mail  memory  menu  network  packages  processes  raid  reboot_required  release  services  session  swap  time  time_binary time_utc trash updates_available  uptime  users  whoami  wifi_quality
3 | 
4 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/apport:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    apport: note if there are crash dumps available for apporting
 4 | #
 5 | #    Copyright (C) 2009 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __apport_detail() {
23 | 	for i in /var/crash/*.crash; do
24 | 		if [ -f "$i" ]; then
25 | 			printf "\nTo file bugs on the existing crash reports, run:\n"
26 | 			which apport-cli >/dev/null || printf "  sudo apt-get install apport\n"
27 | 			for i in /var/crash/*.crash; do
28 | 				printf "  apport-cli $i\n"
29 | 			done
30 | 			printf "\nTo clear the pending reports:\n"
31 | 			printf "  rm -f /var/crash/*.crash\n\n"
32 | 			return
33 | 		fi
34 | 	done
35 | 	printf "No pending crash reports\n"
36 | }
37 | 
38 | __apport() {
39 | 	# Print {!} if a /var/crash/*.crash file exists
40 | 	for i in /var/crash/*.crash; do
41 | 		if [ -f "$i" ]; then
42 | 			color y k; printf "{!}"; color --
43 | 			return
44 | 		fi
45 | 	done
46 | 	rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/apport"*
47 | }
48 | 
49 | # vi: syntax=sh ts=4 noexpandtab
50 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/arch:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    arch: print the machine architecture
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __arch_detail() {
23 | 	uname -a
24 | }
25 | 
26 | __arch() {
27 | 	printf "%s " $(uname -m)
28 | }
29 | 
30 | # vi: syntax=sh ts=4 noexpandtab
31 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/color:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    color: print the background/foreground color escape codes
 4 | #
 5 | #    Copyright (C) 2011-2014 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | __color_detail() {
22 | 	true
23 | }
24 | 
25 | __color() {
26 | 	[ -z "$FOREGROUND" ] && FOREGROUND="w"
27 | 	[ -z "$BACKGROUND" ] && BACKGROUND="k"
28 | 	case "$BYOBU_BACKEND" in
29 | 		tmux)
30 | 			true
31 | 		;;
32 | 		screen)
33 | 			printf "\005{= $BACKGROUND$FOREGROUND}"
34 | 		;;
35 | 	esac
36 | }
37 | 
38 | # vi: syntax=sh ts=4 noexpandtab
39 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/cpu_count:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    cpu_count: count cpu's on a systems
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __cpu_count_detail() {
23 | 	grep -i "^model name" /proc/cpuinfo
24 | }
25 | 
26 | __cpu_count() {
27 | 	local c
28 | 	c=$(getconf _NPROCESSORS_ONLN 2>/dev/null || grep -ci "^processor" /proc/cpuinfo)
29 | 	[ "$c" = "1" ] || printf "%sx" "$c"
30 | }
31 | 
32 | # vi: syntax=sh ts=4 noexpandtab
33 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/cpu_freq:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    cpu_freq: calculate current cpu frequency
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __cpu_freq_detail() {
23 | 	cat /proc/cpuinfo
24 | }
25 | 
26 | __cpu_freq() {
27 | 	local hz freq count
28 | 	if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" ]; then
29 | 		read hz < /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
30 | 		fpdiv $hz "1000000" 1 # 1Ghz
31 | 		freq="$_RET"
32 | 	elif [ -r "/proc/cpuinfo" ]; then
33 | 		if egrep -q -s -i -m 1 "^cpu MHz|^clock" /proc/cpuinfo; then
34 | 			freq=$(egrep -i -m 1 "^cpu MHz|^clock" /proc/cpuinfo | awk -F"[:.]" '{ printf "%01.1f", $2 / 1000 }')
35 | 		else
36 | 			# Must scale frequency by number of processors, if counting bogomips
37 | 			count=$(getconf _NPROCESSORS_ONLN 2>/dev/null || grep -ci "^processor" /proc/cpuinfo)
38 | 			freq=$(egrep -i -m 1 "^bogomips" /proc/cpuinfo | awk -F"[:.]" '{ print $2 }')
39 | 			freq=$(printf "%s %s" "$freq" "$count" | awk '{printf "%01.1f\n", $1/$2/1000}')
40 | 		fi
41 | 	elif hz=$(sysctl -n hw.cpufrequency 2>/dev/null); then
42 | 		fpdiv $hz "1000000000" 1 # 1Ghz
43 | 		freq="$_RET"
44 | 	fi
45 | 	[ -n "$freq" ] || return
46 | 	color b c W; printf "%s" "$freq"; color -; color c W; printf "%s" "$ICON_GHz"; color --
47 | }
48 | 
49 | # vi: syntax=sh ts=4 noexpandtab
50 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/cpu_temp:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    cpu_temp: cpu temperature
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __cpu_temp_detail() {
23 | 	local i
24 | 	for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/device/temp*_input /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature /sys/class/thermal/thermal_zone*/temp; do
25 | 		[ -r "$i" ] || continue
26 | 		printf "%s\n" "$i:"
27 | 		cat "$i"/*
28 | 	done
29 | }
30 | 
31 | __cpu_temp() {
32 | 	local i t unit
33 | 	for i in $MONITORED_TEMP /sys/class/hwmon/hwmon*/device/temp*_input /sys/class/hwmon/hwmon*/temp*_input /proc/acpi/ibm/thermal /proc/acpi/thermal_zone/*/temperature /sys/class/thermal/thermal_zone*/temp; do
34 | 		case "$i" in
35 | 			*temp*_input|*thermal_zone*/temp)
36 | 				[ -s "$i" ] && read t < "$i" && t=$(($t/1000))
37 | 			;;
38 | 			*)
39 | 				[ -s "$i" ] && t=$($BYOBU_SED -e "s/^[^0-9]\+//" -e "s/\s.*$//" "$i")
40 | 			;;
41 | 		esac
42 | 		if [ -n "$t" ] && [ "$t" -gt 0 ]; then
43 | 			unit="$ICON_C"
44 | 			if [ "$TEMP" = "F" ]; then
45 | 				t=$(($t*9/5 + 32))
46 | 				unit="$ICON_F"
47 | 			fi
48 | 			color b k Y; printf "%s" "$t"; color -; color k Y; printf "%s" "$unit"; color --
49 | 			break
50 | 		fi
51 | 	done
52 | }
53 | 
54 | # vi: syntax=sh ts=4 noexpandtab
55 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/custom:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    custom: run the user's custom status scripts
 4 | #
 5 | #    Copyright (C) 2009 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __custom_detail() {
23 | 	return
24 | }
25 | 
26 | __custom() {
27 | 	local cache="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/custom"
28 | 	local i= output=
29 | 	for i in "$BYOBU_CONFIG_DIR/bin/"[0-9]*_*; do
30 | 		# Loop over custom scripts
31 | 		# Ensure executable
32 | 		[ -x "$i" ] || continue
33 | 		# Ignore vim backup files ending in ~
34 | 		case "$i" in
35 | 			*~) continue ;;
36 | 		esac
37 | 		local now="$(date +%s)"
38 | 		local script=${i##*/}
39 | 		local freq=${script%%_*}
40 | 		freq=${freq#0}
41 | 		local lastrun=
42 | 		[ -r "$cache.$script.last" ] && read lastrun < "$cache.$script.last" || lastrun=0
43 | 		local expiration=$(($lastrun+$freq))
44 | 		if [ $now -ge $expiration ]; then
45 | 			"$i" > "$cache.$script" 2>/dev/null
46 | 			printf "%s\n" "${now}" > "$cache.$script.last"
47 | 		fi
48 | 		readfile < "$cache.$script"
49 | 		local str="${_RET}"
50 | 		case "$str" in
51 | 			*"$ESC{"*)
52 | 				# User has formatted the colors
53 | 				output="$output$(printf "$str")"
54 | 			;;
55 | 			*)
56 | 				# Default coloring
57 | 				output="$output$str "
58 | 			;;
59 | 		esac
60 | 	done
61 | 	if [ -z "$output" ]; then
62 | 		rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/custom"*
63 | 		return
64 | 	fi
65 | 	printf "$output" | $BYOBU_SED ':a;N;$!ba;s/\n//g'
66 | }
67 | 
68 | # vi: syntax=sh ts=4 noexpandtab
69 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/date:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    date: print the date in YYYY-MM-DD format
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __date_detail() {
23 | 	date
24 | }
25 | 
26 | __date() {
27 | 	case "$BYOBU_BACKEND" in
28 | 		screen)
29 | 			color none; printf "\005Y-\005m-\005d"; color --
30 | 		;;
31 | 	esac
32 | }
33 | 
34 | # vi: syntax=sh ts=4 noexpandtab
35 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/disk:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    disk: print the current disk space and usage
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __disk_detail() {
23 | 	df -h
24 | }
25 | 
26 | __disk() {
27 | 	local out="" MP="" size="" pct="" unit=""
28 | 	# Default to /, but let users override
29 | 	[ -z "$MONITORED_DISK" ] && MP="/" || MP="$MONITORED_DISK"
30 | 	case $MP in
31 | 		/dev/*) MP=$(awk '$1 == m { print $2; exit(0); }' "m=$MP" /proc/mounts);;
32 | 	esac
33 | 	# this could be done faster with 'stat --file-system --format'
34 | 	# but then we'd have to do blocks -> human units ourselves
35 | 	out=$(df -h "$MP" 2>/dev/null | awk 'END { printf("%s %s", $2, $5); }')
36 | 	set -- ${out}
37 | 	size=${1}; pct=${2};
38 | 	unit=${size#${size%?}} # get the unit (last char)
39 | 	size=${size%?}; # take the unit off
40 | 	pct=${pct%?}; # take off the '%'
41 | 	case "$unit" in
42 | 		k*|K*) unit="$ICON_KB" ;;
43 | 		m*|M*) unit="$ICON_MB" ;;
44 | 		g*|G*) unit="$ICON_GB" ;;
45 | 		t*|T*) unit="$ICON_TB" ;;
46 | 	esac
47 | 	[ -n "$size" ] || return
48 | 	color b m W; printf "%s" "$size"; color -; color m W; printf "%s" "$unit"; color -;
49 | 	color b m W; printf "%s" "$pct";  color -; color m W; printf "%s" "$PCT"; color --;
50 | }
51 | 
52 | # vi: syntax=sh ts=4 noexpandtab
53 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/distro:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    distro: grab the distro/os
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __distro_detail() {
23 | 	lsb_release -a 2>/dev/null
24 | }
25 | 
26 | __distro() {
27 | 	local DISTRO="${DISTRO}"
28 | 	if [ -n "$DISTRO" ]; then
29 | 		# user defined
30 | 		true
31 | 	else
32 | 		DISTRO="$BYOBU_DISTRO"
33 | 	fi
34 | 	color bold2; printf "%s" "$DISTRO"; color --
35 | }
36 | 
37 | # vi: syntax=sh ts=4 noexpandtab
38 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/entropy:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    entropy: system entropy
 4 | #
 5 | #    Copyright (C) 2011-2014 Dustin Kirkland 
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | __entropy_detail() {
22 | 	cat /proc/sys/kernel/random/entropy_avail 2>/dev/null
23 | }
24 | 
25 | __entropy() {
26 | 	if [ -r /proc/sys/kernel/random/entropy_avail ]; then
27 | 		local e=$(cat /proc/sys/kernel/random/entropy_avail)
28 | 		[ -n "$e" ] || return
29 | 		color K Y; printf "e%s" "$e"; color --
30 | 	fi
31 | }
32 | 
33 | # vi: syntax=sh ts=4 noexpandtab
34 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/fan_speed:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    fan_speed: speed of the cpu or case fan
 4 | #
 5 | #    Copyright (C) 2009 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __fan_speed_detail() {
23 | 	# Nothing interesting to say here about fan speed
24 | 	return
25 | }
26 | 
27 | __fan_speed() {
28 | 	local i="" speed=0
29 | 	# Let's check a few different probes for fan speed
30 | 	# This seems to cover most of them:
31 | 	for i in $FAN /sys/class/hwmon/*/*/fan1_input /sys/class/hwmon/*/device/hwmon/*/fan1_input; do
32 | 		[ -f "$i" ] || continue
33 | 		read speed < "$i"
34 | 		if [ -n "$speed" ] && [ "$speed" -gt 0 ]; then
35 | 			color bold1; printf "%s" "$speed"; color -; color none; printf "rpm"; color --
36 | 			return 0
37 | 		fi
38 | 	done
39 | 
40 | 	# But others (e.g. Dell Inspirons) seem to be here:
41 | 	if [ -r /proc/i8k ]; then
42 | 		local line=""
43 | 		read line < /proc/i8k
44 | 		set -- $line
45 | 		for speed in $7 $8; do
46 | 			if [ -n "$speed" ] && [ "$speed" -gt 0 ]; then
47 | 				# I8K_FAN_MULT defaults to 30 (buggy BIOS workaround?),
48 | 				# use `modprobe i8k fan_mult=1` to disable if unneeded,
49 | 				# resulting in nonsensical speeds
50 | 				[ "$speed" -gt 10000 ] && speed=$((${speed} / 30))
51 | 				color bold1; printf "%s" "$speed"; color -; color none; printf "rpm"; color --
52 | 				return 0
53 | 			fi
54 | 		done
55 | 	fi
56 | }
57 | 
58 | # vi: syntax=sh ts=4 noexpandtab
59 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/hostname:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    hostname: report a host's name
 4 | #
 5 | #    Copyright (C) 2008-2011 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __hostname_detail() {
23 | 	hostname -f 2>/dev/null
24 | }
25 | 
26 | __hostname() {
27 | 	local h=
28 | 	if eval $BYOBU_TEST hostname >/dev/null 2>&1; then
29 | 		h=$(hostname -s 2>/dev/null || hostname)
30 | 	elif [ -r /proc/sys/kernel/hostname ]; then
31 | 		read h < /proc/sys/kernel/hostname
32 | 	fi
33 | 	if metadata_available; then
34 | 		local cache="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/hostname"
35 | 		# Background a retrieval of our public hostname
36 | 		timeout 0.2 wget -q -O- http://169.254.169.254/latest/meta-data/public-hostname "$cache" 2>/dev/null &
37 | 		sleep 0.02
38 | 		[ -s "$cache" ] && read h < "$cache"
39 | 	fi
40 | 	[ -n "$h" ] || return
41 | 	color bold2; printf "%s" "$h"; color --
42 | }
43 | 
44 | # vi: syntax=sh ts=4 noexpandtab
45 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/Makefile.am:
--------------------------------------------------------------------------------
1 | inclibdirdir = $(prefix)/lib/@PACKAGE@/include
2 | inclibdir_SCRIPTS = common colors config.py constants cycle-status dirs icons mondrian notify_osd shutil select-session.py tmux-detach-all-but-current-client tmux-send-command-to-all-panes tmux-send-command-to-all-windows toggle-utf8
3 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/colors:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    colors: some color values needed by all library status scripts
 4 | #
 5 | #    Copyright (C) 2014 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | # Default colors
22 | # Inspired by http://design.ubuntu.com/brand/colour-palette
23 | 
24 | # Cool grey
25 | export BYOBU_DARK="\#333333"
26 | 
27 | # Warm white
28 | export BYOBU_LIGHT="\#EEEEEE"
29 | 
30 | # Aubergine
31 | export BYOBU_ACCENT="\#75507B"
32 | 
33 | # Ubuntu orange
34 | export BYOBU_HIGHLIGHT="\#DD4814"
35 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/common:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    common: common stuff sourced by all scripts
 4 | #
 5 | #    Copyright (C) 2011-2014 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then
22 | 	# Needed to set up $BYOBU_CONFIG_DIR
23 | 	. "${BYOBU_PREFIX}/lib/${PKG}/include/dirs"
24 | 
25 | 	# Find command/type/which
26 | 	for BYOBU_TEST in "command -v" "type" "which"; do
27 | 		eval $BYOBU_TEST ls >/dev/null 2>&1 && break || true
28 | 	done
29 | 
30 | 	# If the backend is already set (eg. running `byobu-tmux`), do nothing.
31 | 	if [ -z "${BYOBU_BACKEND}" ]; then
32 | 		[ -r "/etc/$PKG/backend" ] && . "/etc/$PKG/backend"
33 | 		[ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend"
34 | 		# Just in case there's no config file at all
35 | 		if [ -z "${BYOBU_BACKEND}" ]; then
36 | 			# New byobu configuration, default to tmux
37 | 			if eval $BYOBU_TEST tmux >/dev/null; then
38 | 				BYOBU_BACKEND="tmux"
39 | 			elif eval $BYOBU_TEST screen >/dev/null; then
40 | 				BYOBU_BACKEND="screen"
41 | 			else
42 | 				printf "%s\n" "ERROR: $PKG won't work without tmux or screen installed" 1>&2
43 | 			fi
44 | 		fi
45 |   	fi
46 | 
47 | 	# Creating backend cache
48 | 	[ -d "$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND" ] || mkdir -p "$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND"
49 | 
50 | 	. "${BYOBU_PREFIX}/lib/${PKG}/include/shutil"
51 | 	. "${BYOBU_PREFIX}/lib/${PKG}/include/constants"
52 | 	get_distro || true
53 | 	export BYOBU_DISTRO="$_RET"
54 | 	BYOBU_INCLUDED_LIBS=1
55 | fi
56 | 
57 | case "$1" in
58 | 	-v|--version) [ "$(basename $0)" != "byobu" ] && exec byobu -v ;;
59 | 	-h|--help) exec man $(basename $0) ;;
60 | esac
61 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/cycle-status:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    cycle-status: cycle the status bar through multiple configurations
 4 | #
 5 | #    Copyright (C) 2011-2014 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | 
22 | # Find line number of the enabled tmux_right
23 | current=$(grep -n "^tmux_right=" "$BYOBU_CONFIG_DIR/status" | awk -F: '{print $1}' | tail -n1)
24 | 
25 | # Find next line number to enable
26 | all=$(grep -n "tmux_right=" "$BYOBU_CONFIG_DIR/status" | awk -F: '{print $1}')
27 | next=
28 | for i in $all $all; do
29 | 	if [ "$next" = "flagged" ]; then
30 | 		next="$i"
31 | 		break
32 | 	elif [ "$i" = "$current" ]; then
33 | 		next="flagged"
34 | 	fi
35 | done
36 | 
37 | # Disable all
38 | sed -i -e "s/^tmux_right=/#tmux_right=/" "$BYOBU_CONFIG_DIR/status"
39 | 
40 | # Enable the next one
41 | sed -i -e "${next}s/^#tmux_right=/tmux_right=/" "$BYOBU_CONFIG_DIR/status"
42 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/dirs.in:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    dirs: some dirs needed by all library status scripts
 4 | #
 5 | #    Copyright (C) 2011-2014 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | PKG="byobu"
22 | 
23 | # Some users build and install byobu themselves, rather than from a distro
24 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc"
25 | [ -n "$BYOBU_PREFIX" ] || BYOBU_PREFIX="@prefix@"
26 | 
27 | # Create and export the user configuration directory
28 | # BYOBU_CONFIG_DIR if set, ~/.byobu if it exists, otherwise XDG_CONFIG_HOME/byobu
29 | if [ -z "$BYOBU_CONFIG_DIR" ]; then
30 | 	if [ -d "$HOME/.$PKG" ]; then
31 | 		export BYOBU_CONFIG_DIR="$HOME/.$PKG"
32 | 	else
33 | 		_xdg="${XDG_CONFIG_HOME:-"$HOME"/.config}"
34 | 		# Spec says XDG_CONFIG_HOME must not be world-readable
35 | 		[ -d "$_xdg" ] || mkdir -p -m 700 "$_xdg"
36 | 		export BYOBU_CONFIG_DIR="$_xdg/$PKG"
37 | 		unset _xdg
38 | 	fi
39 | fi
40 | [ -d "$BYOBU_CONFIG_DIR/bin" ] || mkdir -p "$BYOBU_CONFIG_DIR/bin"
41 | 
42 | # Grab the global, then local socket directory
43 | [ -r "/etc/$PKG/socketdir" ] && . "/etc/$PKG/socketdir"
44 | [ -r "$BYOBU_CONFIG_DIR/socketdir" ] && . "$BYOBU_CONFIG_DIR/socketdir"
45 | 
46 | # Create and export the runtime cache directory
47 | if [ -w /dev/shm ]; then
48 | 	# Use shm for performance, if possible
49 | 	for i in /dev/shm/$PKG-$USER-*; do
50 | 		if [ -d "$i" ] && [ -O "$i" ]; then
51 | 			export BYOBU_RUN_DIR="$i"
52 | 			break
53 | 		fi
54 | 	done
55 | 	# Still empty, make a new one
56 | 	if [ ! -d "$BYOBU_RUN_DIR" ] || [ ! -O "$BYOBU_RUN_DIR" ]; then
57 | 		export BYOBU_RUN_DIR=$(mktemp -d /dev/shm/$PKG-$USER-XXXXXXXX)
58 | 	fi
59 | fi
60 | if [ ! -d "$BYOBU_RUN_DIR" ] || [ ! -O "$BYOBU_RUN_DIR" ] || [ ! -w "$BYOBU_RUN_DIR" ]; then
61 | 	# For distros that don't have a /dev/shm, use local disk
62 | 	if [ -d "$XDG_CACHE_HOME" ]; then
63 | 		# Use XDG, as some users insist on such nonsense :-)
64 | 		export BYOBU_RUN_DIR="$XDG_CACHE_HOME/$PKG"
65 | 	else
66 | 		# But if not, we'll use a cache directory
67 | 		export BYOBU_RUN_DIR="$HOME/.cache/$PKG"
68 | 	fi
69 | fi
70 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/icons:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    icons: some icon characters for status scripts
 4 | #
 5 | #    Copyright (C) 2011-2014 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | PKG="byobu"
22 | 
23 | # UTF-8 support in the hardstatus is coming one day in Screen
24 | if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
25 | 	#ICON_C="℃"
26 | 	#ICON_F="℉"
27 | 	ICON_C="C"
28 | 	ICON_F="F"
29 | 	ICON_RD="◂"
30 | 	ICON_WR="▸"
31 | 	ICON_MAIL="⍌"
32 | 	ICON_UP="▴"
33 | 	ICON_DN="▾"
34 | 	ICON_TRASH="♸"
35 | 	ICON_WIFI=
36 | 	ICON_REBOOT="⟳"
37 | 	ICON_UPDATES="!"
38 | 	ICON_UPGRADE="⚠"
39 | 	ICON_SECURITY="‼"
40 | 	#ICON_KB="㎅"
41 | 	#ICON_MB="㎆"
42 | 	#ICON_GB="㎇"
43 | 	ICON_KB="K"
44 | 	ICON_MB="M"
45 | 	ICON_GB="G"
46 | 	ICON_TB="T"
47 | 	#ICON_KHz="㎑"
48 | 	#ICON_MHz="㎒"
49 | 	#ICON_GHz="㎓"
50 | 	ICON_KHz="KHz"
51 | 	ICON_MHz="MHz"
52 | 	ICON_GHz="GHz"
53 | 	#ICON_MBPS="㏔㎰"
54 | 	ICON_MBPS="Mb"
55 | 	ICON_SESSION="〣"
56 | 	ICON_LIVEPATCHED="🗹 "
57 | else
58 | 	# Only use 0-127 ANSI: http://ascii-table.com/ascii.php
59 | 	ICON_C="C"
60 | 	ICON_F="F"
61 | 	ICON_RD="<"
62 | 	ICON_WR=">"
63 | 	ICON_MAIL="[M]"
64 | 	ICON_UP="^"
65 | 	ICON_DN="v"
66 | 	ICON_TRASH="T"
67 | 	ICON_WIFI=
68 | 	ICON_REBOOT="(R)"
69 | 	ICON_UPDATES="!"
70 | 	ICON_UPGRADE="/!\\\\\\"
71 | 	ICON_SECURITY="!!"
72 | 	ICON_KB="KB"
73 | 	ICON_MB="MB"
74 | 	ICON_GB="GB"
75 | 	ICON_TB="TB"
76 | 	ICON_KHz="kHz"
77 | 	ICON_MHz="MHz"
78 | 	ICON_GHz="GHz"
79 | 	ICON_MBPS="Mbps"
80 | 	ICON_SESSION="|"
81 | 	ICON_LIVEPATCHED="[/]"
82 | fi
83 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/notify_osd:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/perl
 2 | #
 3 | #    notify_osd: perform some string manipulation on notify-osd messages
 4 | #                 and then send to the screen message window
 5 | #    Copyright (C) 2010 Canonical Ltd.
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #             with help from Mathias Gug 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | $/ = "\n\n";
23 | $PKG = "byobu";
24 | $sleep = 5;
25 | while () {
26 | 	# Ensure that the notify_osd indicator is enabled
27 | 	my $skip = 0;
28 | 	open(F, "<$ENV{BYOBU_CONFIG_DIR}/status");
29 | 	foreach my $i () {
30 | 		if ($i =~ /notify_osd=0/) {
31 | 			$skip = 1;
32 | 		}
33 | 	}
34 | 	close(F);
35 | 	if ($skip == 1) {
36 | 		next;
37 | 	}
38 | 	$msg = $_;
39 | 	$msg =~ s/\[[^,]*, //;		# strip the leading "[timestamp, "
40 | 	$msg =~ s/\] /: /;		# replace the " ] " following the indicator name, with ":"
41 | 	$msg =~ s/\s+/ /g;		# collapse multi-whitespace into one
42 | 	$msg =~ s/\s+$//g;		# strip trailing whitespace
43 | 	$msg =~ s/^\s+//g;		# strip leading whitespace
44 | 	system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "msgwait", "$sleep");
45 | 	system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "echo", "[$msg]");
46 | 	sleep($sleep);
47 | 	system("/usr/bin/screen", "-X", "-S", "$ARGV[0]", "at", "*", "msgwait", "0");
48 | }
49 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/tmux-detach-all-but-current-client:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    tmux-detach-all-but-current-client
 4 | #    Copyright (C) 2013-2014 Dustin Kirkland
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #
 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.
11 | #
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.
16 | #
17 | #    You should have received a copy of the GNU General Public License
18 | #    along with this program.  If not, see .
19 | 
20 | a1=
21 | a2=
22 | tty1=
23 | tty2=
24 | # List all clients, ordered by most recent activity descending
25 | for c in $(tmux list-clients -F "#{client_activity}___#{client_tty}" | sort -n -r); do
26 | 	if [ -z "$a1" ]; then
27 | 		a1=${c%%___*}
28 | 		tty1=${c##*___}
29 | 	elif [ -z "$a2" ]; then
30 | 		a2=${c%%___*}
31 | 		tty2=${c##*___}
32 | 	fi
33 | 	if [ -n "$a1" ] && [ -n "$a2" ]; then
34 | 		if [ "$a1" = "$a2" ]; then
35 | 			# Activity timestamps match in top 2 attached clients
36 | 			# Let's not detach anyone here!
37 | 			tmux display-message "Multiple active attached clients detected, refusing to detach" >/dev/null 2>&1
38 | 		elif [ -n "$tty1" ]; then
39 | 			# Detach all but the current client, iterating across each
40 | 			# Tempting to use detach-client -a -t here, but there's a bug
41 | 			# in there, keeping that from working properly
42 | 			tmux detach-client -t "$tty2" >/dev/null 2>&1
43 | 			a2=
44 | 		fi
45 | 	fi
46 | done
47 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/tmux-send-command-to-all-panes:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    tmux-send-command-to-all-panes
 4 | #    Copyright (C) 2014 Dustin Kirkland
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #
 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.
11 | #
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.
16 | #
17 | #    You should have received a copy of the GNU General Public License
18 | #    along with this program.  If not, see .
19 | 
20 | w=$(tmux list-windows | grep "\*" | awk -F: '{print $1}')
21 | for p in $(tmux list-panes | $BYOBU_SED -e "s/:.*//"); do
22 | 	tmux send-keys -t $w.$p "$@" || true
23 | 	tmux send-keys -t $w.$p Enter || true
24 | done
25 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/tmux-send-command-to-all-windows:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    tmux-send-command-to-all-windows
 4 | #    Copyright (C) 2014 Dustin Kirkland
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #
 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.
11 | #
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.
16 | #
17 | #    You should have received a copy of the GNU General Public License
18 | #    along with this program.  If not, see .
19 | 
20 | for w in $(tmux list-windows | $BYOBU_SED -e "s/:.*//"); do
21 | 	tmux send-keys -t :$w "$@"
22 | 	tmux send-keys -t :$w Enter
23 | done
24 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/include/toggle-utf8.in:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    toggle-utf8
 4 | #    Copyright (C) 2013-2014 Dustin Kirkland
 5 | #
 6 | #    Authors: Dustin Kirkland 
 7 | #
 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.
11 | #
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.
16 | #
17 | #    You should have received a copy of the GNU General Public License
18 | #    along with this program.  If not, see .
19 | 
20 | PKG="byobu"
21 | [ -r "$HOME/.byoburc" ] && . "$HOME/.byoburc"
22 | [ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="@prefix@" || export BYOBU_PREFIX
23 | . "${BYOBU_PREFIX}/lib/${PKG}/include/common"
24 | [ -r "$BYOBU_CONFIG_DIR/statusrc" ] && . "$BYOBU_CONFIG_DIR/statusrc"
25 | 
26 | if [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
27 | 	if grep -qs "^BYOBU_CHARMAP=" $BYOBU_CONFIG_DIR/statusrc 2>/dev/null; then
28 | 		sed -i -e "s/^BYOBU_CHARMAP=.*/BYOBU_CHARMAP=x/" $BYOBU_CONFIG_DIR/statusrc
29 | 	else
30 | 		echo "BYOBU_CHARMAP=x" >> $BYOBU_CONFIG_DIR/statusrc
31 | 	fi
32 | 	export BYOBU_CHARMAP=x
33 | else
34 | 	if grep -qs "^BYOBU_CHARMAP=" $BYOBU_CONFIG_DIR/statusrc 2>/dev/null; then
35 | 		sed -i -e "s/^BYOBU_CHARMAP=.*/BYOBU_CHARMAP=UTF-8/" $BYOBU_CONFIG_DIR/statusrc
36 | 	else
37 | 		echo "BYOBU_CHARMAP=UTF-8" >> $BYOBU_CONFIG_DIR/statusrc
38 | 	fi
39 | 	export BYOBU_CHARMAP=UTF-8
40 | fi
41 | if [ -n "$TMUX" ]; then
42 | 	RC_FILE=$(echo "$SHELL" | $BYOBU_SED "s:.*/::")
43 | 	tmux send-keys " export BYOBU_CHARMAP=$BYOBU_CHARMAP ; . ~/.${RC_FILE}rc" \; send-keys Enter
44 | fi
45 | 
46 | # vi: syntax=sh ts=4 noexpandtab
47 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/load_average:
--------------------------------------------------------------------------------
 1 | #!/bin/sh
 2 | #
 3 | #    load_average: grab the current load average
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __load_average_detail() {
23 | 	cat /proc/loadavg
24 | }
25 | 
26 | __load_average() {
27 | 	if [ -r "/proc/loadavg" ]; then
28 | 		read one five fifteen other < /proc/loadavg
29 | 	else
30 | 		one=$(uptime | sed -e "s/.*://" | awk '{print $1}')
31 | 	fi
32 | 	[ -n "$one" ] || return
33 | 	color Y k; printf "$one"; color --
34 | }
35 | 
36 | # vi: syntax=sh ts=4 noexpandtab
37 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/mail:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    mail: notify the user if they have system mail
 4 | #
 5 | #    Copyright (C) 2009 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | MAILFILE="/var/spool/mail/$USER"
23 | 
24 | __mail_detail() {
25 | 	[ ! -d "$MAILFILE" ] && [ -s "$MAILFILE" ] && ls -alF "$MAILFILE" 2>&1
26 | 	[ -d "$MAILFILE/new" ] && ls -AlF "$MAILFILE/new" 2>&1
27 | }
28 | 
29 | __mail() {
30 | 	if [ -f "$MAILFILE" ] && [ -s "$MAILFILE" ]; then
31 | 		 color b; printf "%s" "$ICON_MAIL"; color --
32 | 	elif [ -d "$MAILFILE/new" ] && "$(ls -A "$MAILFILE/new" 2>/dev/null)"; then
33 | 		 color b; printf "%s" "$ICON_MAIL"; color --
34 | 	else
35 | 		rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/mail"*
36 | 	fi
37 | }
38 | 
39 | # vi: syntax=sh ts=4 noexpandtab
40 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/memory:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    mem_available: grab the current memory and usage
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __memory_detail() {
23 | 	free
24 | }
25 | 
26 | __memory() {
27 | 	local free="" total="" buffers="" cached=""
28 | 	local kb_main_used=0 buffers_plus_cached=0 fo_buffers=0 fo_cached=0
29 | 	if [ -r /proc/meminfo ]; then
30 | 		while read tok val unit; do
31 | 			case "$tok" in
32 | 				MemTotal:) total=${val};;
33 | 				MemFree:) free=${val};;
34 | 				Buffers:) buffers=${val};;
35 | 				Cached:) cached=${val};;
36 | 			esac
37 | 			[ -n "${free}" -a -n "${total}" -a -n "${buffers}" -a -n "${cached}" ] && break;
38 | 		done < /proc/meminfo
39 | 	elif eval $BYOBU_TEST vm_stat >/dev/null 2>&1; then
40 | 		# MacOS support
41 | 		# calculation borrowed from http://apple.stackexchange.com/a/48195/18857
42 | 		free_blocks=$(vm_stat | grep free | awk '{ print $3 }' | sed -e 's/\.//')
43 | 		inactive_blocks=$(vm_stat | grep inactive | awk '{ print $3 }' | sed -e 's/\.//')
44 | 		speculative_blocks=$(vm_stat | grep speculative | awk '{ print $3 }' | sed -e 's/\.//')
45 | 		free=$((($free_blocks+speculative_blocks)*4))
46 | 		inactive=$(($inactive_blocks*4))
47 | 		total=$((($free+$inactive)))
48 | 		buffers=0
49 | 		cached=0
50 | 	fi
51 |         kb_main_used=$(($total-$free))
52 |         buffers_plus_cached=$(($buffers+$cached))
53 |         # "free output" buffers and cache (output from 'free')
54 |         fo_buffers=$(($kb_main_used - $buffers_plus_cached))
55 |         fpdiv $((100*${fo_buffers})) "${total}" 0;
56 |         usage=${_RET}
57 | 	if [ $total -ge 1048576 ]; then
58 | 		fpdiv "$total" 1048567 1
59 | 		total=${_RET}
60 | 		unit="$ICON_GB"
61 | 	elif [ $total -ge 1024 ]; then
62 | 		fpdiv "$total" 1024 0
63 | 		total=${_RET}
64 | 		unit="$ICON_MB"
65 | 	else
66 | 		unit="$ICON_KB"
67 | 	fi
68 | 	if [ $usage -gt 90 ]; then
69 | 		# Change foreground to yellow, if usage over 90%
70 | 		fg="Y"
71 | 	else
72 | 		fg="W"
73 | 	fi
74 | 	[ -n "$total" ] || return
75 | 	color b g W; printf "%s" "$total"; color -; color g W; printf "%s" "$unit"; color -; color b g "$fg"; printf "%s" "$usage"; color -; color g "$fg"; printf "%s" "$PCT"; color --
76 | }
77 | 
78 | # vi: syntax=sh ts=4 noexpandtab
79 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/menu:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    menu: display the menu text
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland 
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __menu_detail() {
23 | 	return
24 | }
25 | 
26 | __menu() {
27 | 	local bindings esc key text
28 | 	[ -r "$BYOBU_CONFIG_DIR/keybindings" ] && bindings="$BYOBU_CONFIG_DIR/keybindings" || bindings="$BYOBU_CONFIG_DIR/.screenrc"
29 | 	if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null || grep -qs "^source.*f-keys.screen.disable$" $bindings 2>/dev/null || [ "$1" = "--disable-f-keys" ]; then
30 | 		# Get the second to last byte from the "escape" option
31 | 		esc=`grep "^escape" $bindings | tail -c 3 | head -c 1`
32 | 		[ -n "$esc" ] && key="^$esc-@" || key="^a-@"
33 | 	elif grep -qs "^source.*none$" $bindings 2>/dev/null; then
34 | 		key="byobu-config"
35 | 	else
36 | 		key="F9"
37 | 	fi
38 | 	text=$(gettext "Menu" 2>/dev/null) || text="Menu"
39 | 	color k w; printf "%s:<" "$text"; color -; color b k w; printf "%s" "$key"; color k w; printf ">"
40 | }
41 | 
42 | # vi: syntax=sh ts=4 noexpandtab
43 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/notify_osd:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    notify_osd: print notify-osd messages in the notification buffer
 4 | #
 5 | #    Copyright (C) 2010 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #             with help from Mathias Gug 
10 | #
11 | #    This program is free software: you can redistribute it and/or modify
12 | #    it under the terms of the GNU General Public License as published by
13 | #    the Free Software Foundation, version 3 of the License.
14 | #
15 | #    This program is distributed in the hope that it will be useful,
16 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
17 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 | #    GNU General Public License for more details.
19 | #
20 | #    You should have received a copy of the GNU General Public License
21 | #    along with this program.  If not, see .
22 | 
23 | NOTIFY_OSD_LOG="$HOME"/.cache/notify-osd.log
24 | 
25 | __notify_osd_detail() {
26 | 	cat "$NOTIFY_OSD_LOG" || true
27 | }
28 | 
29 | __notify_osd() {
30 | 	# This line operates basically as a daemon, watching the notify-osd log file,
31 | 	# processing new messages and sending them to the session
32 | 	CMD="tail --pid $PPID -n 0 -F $NOTIFY_OSD_LOG"
33 | 	pkill -f "$CMD" || true
34 | 	$CMD | $BYOBU_PREFIX/lib/byobu/include/notify_osd "$PPID" &
35 | }
36 | 
37 | # vi: syntax=sh ts=4 noexpandtab
38 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/packages:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    packages: count the number of packages installed
 4 | #
 5 | #    Copyright (C) 2023 Dustin Kirkland
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | __packages_detail() {
22 | 	if eval $BYOBU_TEST dpkg >/dev/null 2>&1; then
23 | 		dpkg -l | grep ^ii
24 | 	fi
25 | 	if eval $BYOBU_TEST snap >/dev/null 2>&1; then
26 | 		snap list
27 | 	fi
28 | 	if eval $BYOBU_TEST apk >/dev/null 2>&1; then
29 | 		apk info
30 | 	fi
31 | 	return
32 | }
33 | 
34 | __packages() {
35 | 	local packages=0
36 | 	if eval $BYOBU_TEST dpkg >/dev/null 2>&1; then
37 | 		count=$(dpkg -l | grep -c ^ii)
38 | 		packages=$((packages+count))
39 | 	fi
40 | 	if eval $BYOBU_TEST snap >/dev/null 2>&1; then
41 | 		count=$(snap list | grep -c -v "^Name\s")
42 | 		packages=$((packages+count))
43 | 	fi
44 | 	if eval $BYOBU_TEST apk >/dev/null 2>&1; then
45 | 		count=$(apk info | wc -l)
46 | 		packages=$((packages+count))
47 | 	fi
48 | 	[ -n "$packages" ] || return
49 | 	color w y; printf "[%s]" "$count"; color --;
50 | 
51 | }
52 | 
53 | # vi: syntax=sh ts=4 noexpandtab
54 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/processes:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    processes: report number of running processes
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __processes_detail() {
23 | 	ps -ej 2>/dev/null
24 | }
25 | 
26 | __processes() {
27 | 	local count=
28 | 	if [ -r /proc ]; then
29 | 		count=$(ls -d /proc/[0-9]* 2>/dev/null | wc -l)
30 | 	else
31 | 		count=$(ps -ef | wc -l)
32 | 	fi
33 | 	[ -n "$count" ] || return
34 | 	color b y w; printf "%s" "$count"; color -; color y w; printf "&"; color --
35 | }
36 | 
37 | # vi: syntax=sh ts=4 noexpandtab
38 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/raid:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    raid: notify raid events, failures and syncing
 4 | #
 5 | #    Copyright (C) 2010 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __raid_detail() {
23 | 	[ -r /proc/mdstat ] && cat /proc/mdstat || true
24 | }
25 | 
26 | __raid() {
27 | 	[ -r /proc/mdstat ] || return
28 | 	while read line; do
29 | 		local p msg
30 | 		# Errors in your raid
31 | 		case "$line" in
32 | 			*\ blocks\ *\[*_*\])
33 | 				[ -z "${msg}" ] && msg="RAID"
34 | 			;;
35 | 			*%*)
36 | 				p="${line%%\%*}${PCT}"; p=${p##* };
37 | 				[ -z "$msg" ] && msg="RAID"
38 | 				msg="$msg,$p"
39 | 			;;
40 | 		esac
41 | 	done < /proc/mdstat
42 | 	if [ -n "$msg" ]; then
43 | 		color B w r; printf "%s" "$msg"; color --
44 | 	elif [ -e "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/raid" ]; then
45 | 		# Clear out cached raid message
46 | 		rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/raid"*
47 | 	fi
48 | }
49 | 
50 | # vi: syntax=sh ts=4 noexpandtab
51 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/reboot_required:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    reboot_required: determine if a reboot is required
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | REBOOT_FLAG="/var/run/reboot-required"
23 | RELOAD_FLAG="$BYOBU_RUN_DIR/reload-required"
24 | POWERNAP_FLAG="/var/run/powernap/powersave"
25 | UNATTENDED_UPGRADE_FLAG="/var/run/unattended-upgrades.pid"
26 | 
27 | __reboot_required_detail() {
28 | 		[ -e "$REBOOT_FLAG" ] && ls -alF "$REBOOT_FLAG" 2>&1
29 | 		[ -e "$RELOAD_FLAG" ] && ls -alF "$RELOAD_FLAG" 2>&1
30 | 		[ -e "$POWERNAP_FLAG" ] && ls -alF "$POWERNAP_FLAG" 2>&1
31 | 		[ -e "$POWERNAP_FLAG" ] && cat "$POWERNAP_FLAG" 2>&1
32 | }
33 | 
34 | __reboot_required() {
35 | 	local status="$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/reboot_required"
36 | 	local livepatched=0
37 | 	if [ -e "$UNATTENDED_UPGRADE_FLAG" ]; then
38 | 		color b R W; printf "$ICON_UPGRADE "; color --;
39 | 	fi
40 | 	while read line; do
41 | 		set -- ${line}
42 | 		case "$line" in
43 | 			kpatch_livepatch_*)
44 | 				color k G; printf "$ICON_LIVEPATCHED"; color -;
45 | 				livepatched=1
46 | 				break
47 | 			;;
48 | 		esac
49 | 	done < /proc/modules
50 | 	if [ -e "$REBOOT_FLAG" ]; then
51 | 		if [ "$livepatched" = "1" ]; then
52 | 			color k G; printf "$ICON_REBOOT"; color --;
53 | 		else
54 | 			color b k R; printf "$ICON_REBOOT"; color --;
55 | 		fi
56 | 	fi
57 | 	if [ -e "$RELOAD_FLAG" ]; then
58 | 		color b W; printf "<"; color -; color b b W; printf "F5"; color -; color b W; printf ">"; color -; printf " "
59 | 	elif [ -s "$status" ]; then
60 | 		rm -f "$status"
61 | 	fi
62 | 	if [ -e "$POWERNAP_FLAG" ]; then
63 | 		color b W; printf ".zZ"; color --
64 | 	elif [ -s "$status" ]; then
65 | 		rm -f "$status"
66 | 	fi
67 | }
68 | 
69 | # vi: syntax=sh ts=4 noexpandtab
70 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/release:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    release: grab the os/distro release version
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2023 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __release_detail() {
23 | 	lsb_release -a 2>/dev/null
24 | }
25 | 
26 | __release() {
27 | 	local RELEASE="${RELEASE}"
28 | 	if [ -n "$RELEASE" ]; then
29 | 		# user defined
30 | 		true
31 | 	elif [ "$BYOBU_DISTRO" = "Wolfi" ]; then
32 | 		# Wolfi, and perhaps other distroless distros don't really have release versions
33 | 		RELEASE="Wolfi"
34 | 	elif [ -r "/etc/os-release" ]; then
35 | 		# lsb_release is *really* slow;  try to use /etc/os-release
36 | 		RELEASE=$(. /etc/os-release && echo "$VERSION_ID")
37 | 	elif [ -r "/etc/issue" ]; then
38 | 		# next try /etc/issue first
39 | 		local issue
40 | 		read issue < /etc/issue
41 | 		case "$issue" in
42 | 			Ubuntu*)
43 | 				set -- $issue;
44 | 				RELEASE="$2";
45 | 			;;
46 | 			Debian*)
47 | 				local ver
48 | 				read ver < /etc/debian_version
49 | 				RELEASE="$ver"
50 | 			;;
51 | 		esac
52 | 	elif eval $BYOBU_TEST sw_vers >/dev/null 2>&1; then
53 | 		RELEASE="$(sw_vers -productVersion)"
54 | 	fi
55 | 	if [ -z "$RELEASE" ] && eval $BYOBU_TEST lsb_release >/dev/null 2>&1; then
56 | 		# If lsb_release is available, use it
57 | 		RELEASE=$(lsb_release -s -r)
58 | 	fi
59 | 	if [ -n "$RELEASE_ABBREVIATED" ] && [ $RELEASE_ABBREVIATED -gt 0 ]; then
60 | 		color bold2; printf "%.${RELEASE_ABBREVIATED}s" "$RELEASE"; color --
61 | 	else
62 | 		color bold2; printf "%s" "$RELEASE"; color --
63 | 	fi
64 | }
65 | 
66 | # vi: syntax=sh ts=4 noexpandtab
67 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/services:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    services: show what services are running on this server (configurable)
 4 | #
 5 | #    Copyright (C) 2009 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __services_detail() {
23 | 	return
24 | }
25 | 
26 | service_running() {
27 | 	if [ -f "/etc/init/$1.conf" ]; then
28 | 		# Use upstart
29 | 		case "$(status $1 2>/dev/null)" in
30 | 			*running*)
31 | 				true
32 | 			;;
33 | 			*)
34 | 				false
35 | 			;;
36 | 		esac
37 | 	elif [ -f "/etc/init.d/$1" ]; then
38 | 		# Fall back to sysvinit
39 | 		/etc/init.d/$1 status >/dev/null 2>&1
40 | 	else
41 | 		false
42 | 	fi
43 | }
44 | 
45 | __services() {
46 | 	local services="$SERVICES"
47 | 	# Users can define a list of services to monitor in $BYOBU_CONFIG_DIR/status
48 | 	if [ -z "$services" ]; then
49 | 		if [ -f "/etc/eucalyptus/eucalyptus.conf" ]; then
50 | 			# If the user has not defined any services, but this system is a
51 | 			# UEC system, default to the list of Ubuntu Enterprise Cloud Services
52 | 			services="eucalyptus-cloud|CLC eucalyptus-walrus|WC eucalyptus-cc|CC eucalyptus-sc|SC eucalyptus-nc|NC"
53 | 		fi
54 | 	fi
55 | 	output=
56 | 	for i in $services; do
57 | 		service=${i%|*}
58 | 		nick=${i#*|}
59 | 		case "$service" in
60 | 			eucalyptus-nc)
61 | 				if service_running $service; then
62 | 					# This is a node controller, determine VM usage
63 | 					. /etc/eucalyptus/eucalyptus.conf
64 | 					count=$(pgrep -c -f /usr/bin/kvm || true)
65 | 					output="$output,NC:$count"
66 | 				fi
67 | 			;;
68 | 			*)
69 | 				service_running $service && output="$output,$nick"
70 | 			;;
71 | 		esac
72 | 	done
73 | 	[ -n "$output" ] || return
74 | 	color w c; printf "%s" ${output#,}; color --
75 | }
76 | 
77 | # vi: syntax=sh ts=4 noexpandtab
78 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/session:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    session: tmux session name
 4 | #
 5 | #    Copyright (C) 2013-2014 Dustin Kirkland 
 6 | #
 7 | #    Authors: Dustin Kirkland 
 8 | #
 9 | #    This program is free software: you can redistribute it and/or modify
10 | #    it under the terms of the GNU General Public License as published by
11 | #    the Free Software Foundation, version 3 of the License.
12 | #
13 | #    This program is distributed in the hope that it will be useful,
14 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 | #    GNU General Public License for more details.
17 | #
18 | #    You should have received a copy of the GNU General Public License
19 | #    along with this program.  If not, see .
20 | 
21 | __session_detail() {
22 | 	tmux list-sessions
23 | }
24 | 
25 | __session() {
26 | 	# Note: This will only work in byobu-tmux
27 | 	case "$BYOBU_BACKEND" in
28 | 		tmux)
29 | 			local count=$(tmux list-sessions 2>/dev/null | grep -v "^_" | wc -l)
30 | 			if [ $count -gt 1 ]; then
31 | 				color u W k; printf "${ICON_SESSION}#S"; color --
32 | 			else
33 | 				echo
34 | 			fi
35 | 		;;
36 | 		screen)
37 | 			local count=$(screen -ls | grep "^\s\+.*)$" | wc -l)
38 | 			if [ $count -gt 1 ]; then
39 | 				color u W k; printf "${ICON_SESSION}%S"; color --
40 | 			else
41 | 				echo
42 | 			fi
43 | 		;;
44 | 	esac
45 | }
46 | 
47 | # vi: syntax=sh ts=4 noexpandtab
48 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/swap:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    mem_swap: show the current swap available and used
 4 | #
 5 | #    Copyright (C) 2010 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __swap_detail() {
23 | 	cat /proc/meminfo
24 | }
25 | 
26 | __swap() {
27 | 	local stotal="" sfree="" name="" val="" unit="" mem="" f="";
28 | 	while read name val unit; do
29 | 		if [ "$name" = "SwapTotal:" ]; then
30 | 			stotal="$val"
31 | 		elif [ "$name" = "SwapFree:" ]; then
32 | 			sfree="$val"
33 | 		else
34 | 			continue
35 | 		fi
36 | 		[ -n "$stotal" -a -n "$sfree" ] && break;
37 | 	done < /proc/meminfo
38 | 	if [ "${stotal:-0}" = "0" ]; then
39 | 		printf ""
40 | 		rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/swap"
41 | 	else
42 | 		mem=${stotal}
43 | 		f=$(((100*($stotal-$sfree))/$stotal))
44 | 		if [ $mem -ge 1048576 ]; then
45 | 		fpdiv "${mem}" 1048576 1
46 | 			mem=${_RET}
47 | 			unit="$ICON_GB"
48 | 		elif [ $mem -ge 1024 ]; then
49 | 			fpdiv "${mem}" 1024 0
50 | 			mem=${_RET}
51 | 			unit="$ICON_MB"
52 | 		else
53 | 			mem="$mem"
54 | 			unit="$ICON_KB"
55 | 		fi
56 | 		[ -n "$mem" ] || return
57 | 		color b G k; printf "s%s" "$mem"; color -; color G k; printf "%s" "$unit"; color -;
58 | 		color b G k; printf "%s" "$f"; color -; color G k; printf "%s" "$PCT"; color --
59 | 	fi
60 | }
61 | 
62 | # vi: syntax=sh ts=4 noexpandtab
63 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/time:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    time: print the time in HH:MM:SS format
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __time_detail() {
23 | 	date
24 | }
25 | 
26 | __time() {
27 | 	local secs=1
28 | 	[ -n "$TIME_SECONDS" ] && secs=$TIME_SECONDS
29 | 	case "$BYOBU_BACKEND" in
30 | 		screen)
31 | 			format="\0050c"
32 | 			[ "$secs" != "0" ] && format="$format:\005s"
33 | 			printf $format
34 | 		;;
35 | 	esac
36 | }
37 | 
38 | # vi: syntax=sh ts=4 noexpandtab
39 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/time_utc:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    time_utc: print UTC time in HH:MM
 4 | #
 5 | #    Copyright (C) 2010 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | __time_utc_detail() {
23 | 	date -u
24 | }
25 | 
26 | __time_utc() {
27 | 	d=$(date -u +%H:%M)
28 | 	color invert; printf "%sUTC" "$d"; color --
29 | }
30 | 
31 | # vi: syntax=sh ts=4 noexpandtab
32 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/trash:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    trash: show icon (and optionally count) if entries in trash.
 4 | #
 5 | #    Copyright (C) 2011 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: James Hunt 
 9 | #             Dustin Kirkland 
10 | #
11 | #    This program is free software: you can redistribute it and/or modify
12 | #    it under the terms of the GNU General Public License as published by
13 | #    the Free Software Foundation, version 3 of the License.
14 | #
15 | #    This program is distributed in the hope that it will be useful,
16 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
17 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 | #    GNU General Public License for more details.
19 | #
20 | #    You should have received a copy of the GNU General Public License
21 | #    along with this program.  If not, see .
22 | 
23 | TRASH_DIR="$HOME/.local/share/Trash/files"
24 | 
25 | __trash_detail() {
26 | 	find "$TRASH_DIR"
27 | }
28 | 
29 | __trash() {
30 | 	local count
31 | 	[ -d "$TRASH_DIR" ] || return
32 | 	count=$(ls $dir|wc -l)
33 | 	[ "$count" = "0" ] && return
34 | 	printf "%s[%s]" "$ICON_TRASH" "$count"
35 | }
36 | 
37 | # vi: syntax=sh ts=4 noexpandtab
38 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/uptime:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    uptime: condensed uptime of the machine
 4 | #
 5 | #    Copyright (C) 2009 Raphaël Pinson.
 6 | #    Copyright (C) 2009 Canonical Ltd.
 7 | #    Copyright (C) 2011-2014 Dustin Kirkland
 8 | #
 9 | #    Authors: Raphaël Pinson 
10 | #             Dustin Kirkland 
11 | #
12 | #    This program is free software: you can redistribute it and/or modify
13 | #    it under the terms of the GNU General Public License as published by
14 | #    the Free Software Foundation, version 3 of the License.
15 | #
16 | #    This program is distributed in the hope that it will be useful,
17 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 | #    GNU General Public License for more details.
20 | #
21 | #    You should have received a copy of the GNU General Public License
22 | #    along with this program.  If not, see .
23 | 
24 | __uptime_detail() {
25 | 	uptime
26 | }
27 | 
28 | __uptime() {
29 | 	local u= idle= str=
30 | 	if [ -r /proc/uptime ]; then
31 | 		read u idle < /proc/uptime
32 | 		u=${u%.*}
33 | 	elif [ -x /usr/sbin/sysctl ]; then
34 | 		# MacOS support
35 | 		u=$(/usr/sbin/sysctl -n kern.boottime | cut -f4 -d' ' | cut -d',' -f1)
36 | 		u=$(($(date +%s) - $u))
37 | 	fi
38 | 	if [ "$u" ]; then
39 | 		if [ "$u" -gt 86400 ]; then
40 | 			str="$(($u / 86400))d$((($u % 86400) / 3600))h"
41 | 		elif [ "$u" -gt 3600 ]; then
42 | 			str="$(($u / 3600))h$((($u % 3600) / 60))m"
43 | 		elif [ "$u" -gt 60 ]; then
44 | 			str="$(($u / 60))m"
45 | 		else
46 | 			str="${u}s"
47 | 		fi
48 | 	else
49 | 		# Last ditch hack
50 | 		str=$(uptime | sed -e "s/.* up *//" -e "s/ *days, */d/" -e "s/:/h/" -e "s/,.*/m/")
51 | 	fi
52 | 	[ -n "$str" ] || return
53 | 	color w b; printf "%s" "${str}"; color --
54 | }
55 | 
56 | # vi: syntax=sh ts=4 noexpandtab
57 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/users:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    users: print the number of remote users on the machine
 4 | #
 5 | #    Copyright (C) 2009 Raphaël Pinson.
 6 | #    Copyright (C) 2009 Canonical Ltd.
 7 | #    Copyright (C) 2011-2014 Dustin Kirkland
 8 | #
 9 | #    Authors: Raphaël Pinson 
10 | #             Dustin Kirkland 
11 | #
12 | #    This program is free software: you can redistribute it and/or modify
13 | #    it under the terms of the GNU General Public License as published by
14 | #    the Free Software Foundation, version 3 of the License.
15 | #
16 | #    This program is distributed in the hope that it will be useful,
17 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 | #    GNU General Public License for more details.
20 | #
21 | #    You should have received a copy of the GNU General Public License
22 | #    along with this program.  If not, see .
23 | 
24 | __users_detail() {
25 | 	ps -ef 2>/dev/null | grep "sshd:.*@" | grep -v grep
26 | }
27 | 
28 | __users() {
29 | 	local count=0
30 | 	if [ "$USERS_DISTINCT" = "1" ]; then
31 | 		count=$(pgrep -fl 'sshd:.*@' | cut -f3 -d\ | cut -f1 -d@ | sort -u | wc -l)
32 | 	else
33 | 		# Note: we'd like to use pgrep -c, however, this isn't available in
34 | 		# busybox and some distro's pgrep (and it doesn't exit non-zero).
35 | 		count=$(pgrep -f "^sshd:.*@|^/usr/sbin/sshd -i" | wc -l) || return
36 | 	fi
37 | 	if [ $count -gt 0 ]; then
38 | 		color b w r; printf "%d" "$count"; color -; color w r; printf "##"; color --
39 | 	else
40 | 		rm -f "$BYOBU_RUN_DIR/status.$BYOBU_BACKEND/users"*
41 | 	fi
42 | }
43 | 
44 | # vi: syntax=sh ts=4 noexpandtab
45 | 


--------------------------------------------------------------------------------
/usr/lib/byobu/whoami:
--------------------------------------------------------------------------------
 1 | #!/bin/sh -e
 2 | #
 3 | #    whoami: report current logged in user
 4 | #
 5 | #    Copyright (C) 2008 Canonical Ltd.
 6 | #    Copyright (C) 2011-2014 Dustin Kirkland
 7 | #
 8 | #    Authors: Dustin Kirkland 
 9 | #
10 | #    This program is free software: you can redistribute it and/or modify
11 | #    it under the terms of the GNU General Public License as published by
12 | #    the Free Software Foundation, version 3 of the License.
13 | #
14 | #    This program is distributed in the hope that it will be useful,
15 | #    but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 | #    GNU General Public License for more details.
18 | #
19 | #    You should have received a copy of the GNU General Public License
20 | #    along with this program.  If not, see .
21 | 
22 | ___get_user() {
23 | 	if eval $BYOBU_TEST whoami >/dev/null 2>&1; then
24 | 		whoami
25 | 	elif eval $BYOBU_TEST id >/dev/null 2>&1; then
26 | 		id -un
27 | 	fi
28 | }
29 | 
30 | __whoami_detail() {
31 | 	local user=$(___get_user)
32 | 	[ -n "$user" ] || return
33 | 	if eval $BYOBU_TEST getent >/dev/null 2>&1; then
34 | 		getent -- passwd "$user"
35 | 	else
36 | 		grep "^$user:" /etc/passwd
37 | 	fi
38 | }
39 | 
40 | __whoami() {
41 | 	local user=$(___get_user)
42 | 	[ -n "$user" ] || return
43 | 	color bold2; printf "%s@" "$user"; color -
44 | }
45 | 
46 | # vi: syntax=sh ts=4 noexpandtab
47 | 


--------------------------------------------------------------------------------
/usr/share/appdata/byobu.appdata.xml:
--------------------------------------------------------------------------------
 1 | 
 2 | 
 3 | 
 4 |  byobu.desktop
 5 |  GPL-3
 6 |  GPL-3
 7 |  Byobu
 8 |  Text window manager, shell multiplexer, integrated DevOps environment
 9 |  
10 |   

11 | Byobu is a GPLv3 open source text-based window manager and terminal multiplexer. It was originally designed to provide elegant enhancements to the otherwise functional, plain, practical GNU Screen, for the Ubuntu server distribution. Byobu now includes an enhanced profiles, convenient keybindings, configuration utilities, and toggle-able system status notifications for both the GNU Screen window manager and the more modern Tmux terminal multiplexer, and works on most Linux, BSD, and Mac distributions. 12 |

13 |

14 | Using Byobu, you can quickly create and move between different windows over a single SSH connection or TTY terminal, split each of those windows into multiple panes, monitor dozens of important statistics about your system, detach and reattach to sessions later while your programs continue to run in the background. 15 |

16 |
17 | 18 | http://byobu.org/img/screenshot.png 19 | 20 | http://byobu.org 21 | kirkland@byobu.org 22 | Byobu 23 |
24 | -------------------------------------------------------------------------------- /usr/share/byobu/desktop/Makefile.am: -------------------------------------------------------------------------------- 1 | desktopdir = $(datadir)/@PACKAGE@/desktop 2 | desktop_SCRIPTS = byobu.desktop byobu.desktop.old 3 | -------------------------------------------------------------------------------- /usr/share/byobu/desktop/byobu.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Byobu Terminal 3 | Comment=Advanced Command Line and Text Window Manager 4 | Icon=byobu 5 | Exec=gnome-terminal --app-id us.kirkland.terminals.byobu --class=us.kirkland.terminals.byobu -- byobu 6 | Type=Application 7 | Categories=GNOME;GTK;System;Utility;TerminalEmulator; 8 | StartupWMClass=us.kirkland.terminals.byobu 9 | X-GNOME-Gettext-Domain=byobu 10 | -------------------------------------------------------------------------------- /usr/share/byobu/desktop/byobu.desktop.old: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Byobu Terminal 3 | Comment=Advanced Command Line and Text Window Manager 4 | Icon=byobu 5 | Exec=env TERM=xterm-256color byobu 6 | Terminal=true 7 | Type=Application 8 | Categories=GNOME;GTK;Utility; 9 | X-GNOME-Gettext-Domain=byobu 10 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/Makefile.am: -------------------------------------------------------------------------------- 1 | keybindingsdir = $(datadir)/@PACKAGE@/keybindings 2 | keybindings_DATA = common f-keys f-keys.screen f-keys.screen.disable f-keys.tmux f-keys.tmux.disable mouse.tmux.disable mouse.tmux.enable none tmux-screen-keys.conf 3 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/common: -------------------------------------------------------------------------------- 1 | source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.screen.disable 2 | source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.screen 3 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/f-keys: -------------------------------------------------------------------------------- 1 | source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.screen 2 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/f-keys.tmux.disable: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # disable byobu's tmux f-key keybindings 3 | # 4 | # Copyright (C) 2011-2014 Dustin Kirkland 5 | # 6 | # Authors: Dustin Kirkland 7 | # 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. 11 | # 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. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program. If not, see . 19 | ############################################################################### 20 | 21 | # Undo Byobu's Keybindings 22 | unbind-key -n F1 23 | unbind-key -n S-F1 24 | unbind-key -n F2 25 | unbind-key -n C-F2 26 | unbind-key -n S-F2 27 | unbind-key -n C-S-F2 28 | unbind-key -n F3 29 | unbind-key -n F4 30 | unbind-key -n C-Up 31 | unbind-key -n C-Down 32 | unbind-key -n C-Left 33 | unbind-key -n C-Right 34 | unbind-key -n C-S-Left 35 | unbind-key -n C-S-Right 36 | unbind-key -n C-S-Up 37 | unbind-key -n C-S-Down 38 | unbind-key -n S-F3 39 | unbind-key -n S-F4 40 | unbind-key -n S-Up 41 | unbind-key -n S-Down 42 | unbind-key -n S-Left 43 | unbind-key -n S-Right 44 | unbind-key -n C-F3 45 | unbind-key -n C-F4 46 | unbind-key -n C-S-F3 47 | unbind-key -n C-S-F4 48 | unbind-key -n M-Up 49 | unbind-key -n M-Down 50 | unbind-key -n M-Left 51 | unbind-key -n M-Right 52 | unbind-key -n S-M-Up 53 | unbind-key -n S-M-Down 54 | unbind-key -n S-M-Left 55 | unbind-key -n S-M-Right 56 | unbind-key -n F5 57 | unbind-key -n M-F5 58 | unbind-key -n S-F5 59 | unbind-key -n C-F5 60 | unbind-key -n C-S-F5 61 | unbind-key -n F6 62 | unbind-key -n M-F6 63 | unbind-key -n S-F6 64 | unbind-key -n C-F6 65 | unbind-key -n F7 66 | unbind-key -n S-F7 67 | unbind-key -n M-NPage 68 | unbind-key -n M-PPage 69 | unbind-key -n F8 70 | unbind-key -n C-F8 71 | unbind-key -n C-S-F8 72 | unbind-key -n M-S-F8 73 | unbind-key -n S-F8 74 | unbind-key -n F9 75 | unbind-key -n M-F9 76 | unbind-key -n S-F9 77 | unbind-key -n C-F9 78 | unbind-key -n M-F11 79 | unbind-key -n C-F11 80 | unbind-key -n S-F11 81 | bind-key -n S-F12 source $BYOBU_PREFIX/share/byobu/keybindings/f-keys.tmux \; source $BYOBU_CONFIG_DIR/keybindings.tmux \; display-message "Byobu F-keys: ENABLED" 82 | unbind-key -n M-F12 83 | unbind-key -n C-S-F12 84 | unbind-key -n M-IC 85 | unbind-key -n C-a 86 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/mouse.tmux.disable: -------------------------------------------------------------------------------- 1 | # New, as of tmux 2.1 2 | set -g mouse on 3 | set -g mouse-utf8 on 4 | # Old, before tmux 2.1 5 | set -g mouse-resize-pane on 6 | set -g mouse-select-pane on 7 | set -g mouse-select-window on 8 | set -g mode-mouse on 9 | bind-key -n M-F12 source $BYOBU_PREFIX/share/byobu/keybindings/mouse.tmux.enable \; display-message "Mouse: OFF" 10 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/mouse.tmux.enable: -------------------------------------------------------------------------------- 1 | # New, as of tmux 2.1 2 | set -g mouse off 3 | set -g mouse-utf8 off 4 | # Old, before tmux 2.1 5 | set -g mouse-resize-pane off 6 | set -g mouse-select-pane off 7 | set -g mouse-select-window off 8 | set -g mode-mouse off 9 | bind-key -n M-F12 source $BYOBU_PREFIX/share/byobu/keybindings/mouse.tmux.disable \; display-message "Mouse: ON" 10 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/none: -------------------------------------------------------------------------------- 1 | # This is intended to be a completely empty set of keybindings 2 | -------------------------------------------------------------------------------- /usr/share/byobu/keybindings/tmux-screen-keys.conf: -------------------------------------------------------------------------------- 1 | # tmux-screen-keys.conf 2 | # 3 | # By Nicholas Marriott. Public domain. 4 | # Updated by Dustin Kirkland. 5 | # 6 | # This configuration file binds many of the common GNU screen key bindings to 7 | # appropriate tmux key bindings. Note that for some key bindings there is no 8 | # tmux analogue and also that this set omits binding some commands available in 9 | # tmux but not in screen. 10 | # 11 | # Note this is only a selection of key bindings and they are in addition to the 12 | # normal tmux key bindings. This is intended as an example not as to be used 13 | # as-is. 14 | 15 | # Set the prefix to ^A. 16 | unbind C-b 17 | set -g prefix ^A 18 | bind a send-prefix 19 | 20 | # Bind appropriate commands similar to screen. 21 | # lockscreen ^X x 22 | unbind ^X 23 | bind ^X lock-server 24 | unbind x 25 | bind x lock-server 26 | 27 | # screen ^C c 28 | unbind ^C 29 | bind ^C new-window -c "#{pane_current_path}" 30 | unbind c 31 | bind c new-window -c "#{pane_current_path}" 32 | 33 | # detach ^D d 34 | unbind ^D 35 | bind ^D detach 36 | 37 | # displays * 38 | unbind * 39 | bind * list-clients 40 | 41 | # next ^@ ^N sp n 42 | unbind ^@ 43 | bind ^@ next-window 44 | unbind ^N 45 | bind ^N next-window 46 | unbind " " 47 | bind " " next-window 48 | unbind n 49 | bind n next-window 50 | 51 | # title A 52 | unbind A 53 | bind A command-prompt "rename-window %%" 54 | 55 | # other ^A 56 | unbind ^A 57 | bind ^A last-window 58 | 59 | # prev ^H ^P p ^? 60 | unbind ^H 61 | bind ^H previous-window 62 | unbind ^P 63 | bind ^P previous-window 64 | unbind p 65 | bind p previous-window 66 | unbind BSpace 67 | bind BSpace previous-window 68 | 69 | # windows ^W w 70 | unbind ^W 71 | bind ^W list-windows 72 | unbind w 73 | bind w list-windows 74 | 75 | # quit \ 76 | unbind '\' 77 | bind '\' confirm-before "kill-server" 78 | 79 | # kill K k 80 | unbind K 81 | bind K confirm-before "kill-window" 82 | unbind k 83 | bind k confirm-before "kill-window" 84 | 85 | # redisplay ^L l 86 | unbind ^L 87 | bind ^L refresh-client 88 | unbind l 89 | bind l refresh-client 90 | 91 | # split -v | 92 | unbind | 93 | bind | split-window -c "#{pane_current_path}" 94 | 95 | # :kB: focus up 96 | unbind Tab 97 | bind Tab select-pane -t:.+ 98 | unbind BTab 99 | bind BTab select-pane -t:.- 100 | 101 | # " windowlist -b 102 | unbind '"' 103 | bind '"' choose-window 104 | -------------------------------------------------------------------------------- /usr/share/byobu/pixmaps/Makefile.am: -------------------------------------------------------------------------------- 1 | pixmapsdir = $(datadir)/@PACKAGE@/pixmaps 2 | pixmaps_DATA = byobu.svg 3 | -------------------------------------------------------------------------------- /usr/share/byobu/pixmaps/byobu.14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/usr/share/byobu/pixmaps/byobu.14.png -------------------------------------------------------------------------------- /usr/share/byobu/pixmaps/byobu.192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/usr/share/byobu/pixmaps/byobu.192.png -------------------------------------------------------------------------------- /usr/share/byobu/pixmaps/byobu.64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/usr/share/byobu/pixmaps/byobu.64.png -------------------------------------------------------------------------------- /usr/share/byobu/pixmaps/byobu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/usr/share/byobu/pixmaps/byobu.png -------------------------------------------------------------------------------- /usr/share/byobu/profiles/Makefile.am: -------------------------------------------------------------------------------- 1 | profilesdir = $(datadir)/@PACKAGE@/profiles 2 | profiles_DATA = bashrc byoburc dircolors screenrc common tmux tmuxrc NONE 3 | -------------------------------------------------------------------------------- /usr/share/byobu/profiles/NONE: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # NONE 3 | # This configuration profile is the most basic, plain profile, 4 | # (the default one that ships with Screen). 5 | # To clarify that this *disables* byobu, let's call this profile 6 | # "NONE". 7 | # 8 | # Copyright (C) 2008 Canonical Ltd. 9 | # 10 | # Authors: Dustin Kirkland 11 | # 12 | # This program is free software: you can redistribute it and/or modify 13 | # it under the terms of the GNU General Public License as published by 14 | # the Free Software Foundation, version 3 of the License. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program. If not, see . 23 | ############################################################################### 24 | 25 | -------------------------------------------------------------------------------- /usr/share/byobu/profiles/byoburc: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Load: 3 | # * the stock byobu profile 4 | # * any windows 5 | # * and the local byoburc (instead of .screenrc) 6 | # Used at startup but not profile refresh 7 | # 8 | # Copyright (C) 2009-2011 Canonical Ltd. 9 | # 10 | # Authors: Dustin Kirkland 11 | # 12 | # This program is free software: you can redistribute it and/or modify 13 | # it under the terms of the GNU General Public License as published by 14 | # the Free Software Foundation, version 3 of the License. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program. If not, see . 23 | ############################################################################### 24 | 25 | source $BYOBU_CONFIG_DIR/profile 26 | source $BYOBU_WINDOWS 27 | source $BYOBU_CONFIG_DIR/.screenrc 28 | -------------------------------------------------------------------------------- /usr/share/byobu/profiles/classroom: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Byobu Classroom Host Profile 3 | # This Byobu configuration profile is intended for the classroom 4 | # leader 5 | # 6 | # Copyright (C) 2011 Canonical Ltd. 7 | # 8 | # Authors: Dustin Kirkland 9 | # 10 | # This program is free software: you can redistribute it and/or modify 11 | # it under the terms of the GNU General Public License as published by 12 | # the Free Software Foundation, version 3 of the License. 13 | # 14 | # This program is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU General Public License 20 | # along with this program. If not, see . 21 | ############################################################################### 22 | 23 | aclumask guest+r guest-w guest-x 24 | aclchg guest +r-w-x '#?' 25 | aclchg guest +x 'detach' 26 | multiuser on 27 | escape "^Bb" 28 | -------------------------------------------------------------------------------- /usr/share/byobu/profiles/screenrc: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Load: 3 | # * the stock byobu profile 4 | # * any windows 5 | # * and the local .screenrc (instead of .byoburc) 6 | # Used at startup but not profile refresh 7 | # 8 | # Copyright (C) 2009-2011 Canonical Ltd. 9 | # 10 | # Authors: Dustin Kirkland 11 | # 12 | # This program is free software: you can redistribute it and/or modify 13 | # it under the terms of the GNU General Public License as published by 14 | # the Free Software Foundation, version 3 of the License. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program. If not, see . 23 | ############################################################################### 24 | 25 | source $BYOBU_CONFIG_DIR/profile 26 | source $BYOBU_WINDOWS 27 | source $BYOBU_CONFIG_DIR/.screenrc 28 | -------------------------------------------------------------------------------- /usr/share/byobu/profiles/tmuxrc: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Load: 3 | # * the stock byobu profile 4 | # * any windows 5 | # * and the local byoburc (instead of .screenrc) 6 | # Used at startup but not profile refresh 7 | # 8 | # Copyright (C) 2009-2011 Canonical Ltd. 9 | # 10 | # Authors: Dustin Kirkland 11 | # 12 | # This program is free software: you can redistribute it and/or modify 13 | # it under the terms of the GNU General Public License as published by 14 | # the Free Software Foundation, version 3 of the License. 15 | # 16 | # This program is distributed in the hope that it will be useful, 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | # GNU General Public License for more details. 20 | # 21 | # You should have received a copy of the GNU General Public License 22 | # along with this program. If not, see . 23 | ############################################################################### 24 | 25 | source-file $BYOBU_CONFIG_DIR/color.tmux 26 | source-file $BYOBU_CONFIG_DIR/datetime.tmux 27 | source-file $BYOBU_CONFIG_DIR/profile.tmux 28 | source-file $BYOBU_CONFIG_DIR/keybindings.tmux 29 | #source-file $BYOBU_CONFIG_DIR/windows.tmux 30 | source-file $BYOBU_CONFIG_DIR/.tmux.conf 31 | -------------------------------------------------------------------------------- /usr/share/byobu/status/Makefile.am: -------------------------------------------------------------------------------- 1 | statusdir = $(datadir)/@PACKAGE@/status 2 | status_DATA = status statusrc 3 | -------------------------------------------------------------------------------- /usr/share/byobu/status/statusrc: -------------------------------------------------------------------------------- 1 | # statusrc - Byobu's default status configurations 2 | # 3 | # Override these in $BYOBU_CONFIG_DIR/statusrc 4 | # where BYOBU_CONFIG_DIR is XDG_CONFIG_HOME if defined, 5 | # and $HOME/.byobu otherwise. 6 | # 7 | # Copyright (C) 2009-2011 Canonical Ltd. 8 | # 9 | # Authors: Dustin Kirkland 10 | # 11 | # This program is free software: you can redistribute it and/or modify 12 | # it under the terms of the GNU General Public License as published by 13 | # the Free Software Foundation, version 3 of the License. 14 | # 15 | # This program is distributed in the hope that it will be useful, 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | # GNU General Public License for more details. 19 | # 20 | # You should have received a copy of the GNU General Public License 21 | # along with this program. If not, see . 22 | 23 | # Configurations that you can override; if you leave these commented out, 24 | # Byobu will try to auto-detect them. 25 | 26 | # This should be auto-detected for most distro, but setting it here will save 27 | # some call to lsb_release and the like. 28 | #BYOBU_DISTRO=Ubuntu 29 | 30 | # Default: depends on the distro (which is either auto-detected, either set 31 | # via $DISTRO) 32 | #LOGO="\o/" 33 | 34 | # Abbreviate the release to N characters 35 | # By default, this is disabled. But if you set RELEASE_ABBREVIATED=1 36 | # and your lsb_release is "precise", only "p" will be displayed 37 | #RELEASE_ABBREVIATED=1 38 | 39 | # Default: / 40 | #MONITORED_DISK=/ 41 | 42 | # Minimum disk throughput that triggers the notification (in kB/s) 43 | # Default: 50 44 | #DISK_IO_THRESHOLD=50 45 | 46 | # Default: eth0 47 | #MONITORED_NETWORK=eth0 48 | 49 | # Unit used for network throughput (either bits per second or bytes per second) 50 | # Default: bits 51 | #NETWORK_UNITS=bytes 52 | 53 | # Minimum network throughput that triggers the notification (in kbit/s) 54 | # Default: 20 55 | #NETWORK_THRESHOLD=20 56 | 57 | # You can add an additional source of temperature here 58 | #MONITORED_TEMP=/proc/acpi/thermal_zone/THM0/temperature 59 | 60 | # Default: C 61 | #TEMP=F 62 | 63 | #SERVICES="eucalyptus-nc|NC eucalyptus-cloud|CLC eucalyptus-walrus eucalyptus-cc|CC eucalyptus-sc|SC" 64 | 65 | #FAN=$(find /sys -type f -name fan1_input | head -n1) 66 | 67 | # You can set this to 1 to report your external/public ip address 68 | # Default: 0 69 | #IP_EXTERNAL=0 70 | 71 | # The users notification normally counts ssh sessions; set this configuration to '1' 72 | # to instead count number of distinct users logged onto the system 73 | # Default: 0 74 | #USERS_DISTINCT=0 75 | 76 | # Set this to zero to hide seconds int the time display 77 | # Default 1 78 | #TIME_SECONDS=0 79 | -------------------------------------------------------------------------------- /usr/share/byobu/tests/Makefile.am: -------------------------------------------------------------------------------- 1 | testsdir = $(datadir)/@PACKAGE@/tests 2 | tests_SCRIPTS = byobu-time-notifications 3 | -------------------------------------------------------------------------------- /usr/share/byobu/tests/byobu-time-notifications.in: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # byobu-time-notifications: performance testing of byobu's status scripts 4 | # 5 | # Copyright (C) 2009 Canonical Ltd. 6 | # 7 | # Authors: Dustin Kirkland 8 | # 9 | # This program is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU General Public License as published by 11 | # the Free Software Foundation, version 3 of the License. 12 | # 13 | # This program is distributed in the hope that it will be useful, 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | # GNU General Public License for more details. 17 | # 18 | # You should have received a copy of the GNU General Public License 19 | # along with this program. If not, see . 20 | 21 | 22 | PKG=byobu 23 | RUNS=100 24 | [ -z "$BYOBU_PREFIX" ] && BYOBU_PREFIX="@prefix@" 25 | export BYOBU_PREFIX 26 | 27 | loop() { 28 | for j in $(seq 1 $RUNS); do 29 | usr/lib/$PKG/$1 >/dev/null 2>&1 30 | done 31 | } 32 | 33 | TIMEFORMAT="%R" 34 | if [ -n "$1" ]; then 35 | list="$1" 36 | else 37 | list=$(ls /usr/lib/$PKG/) 38 | fi 39 | for i in $list; do 40 | case "$i" in 41 | notify_osd) 42 | continue 43 | ;; 44 | esac 45 | freq=`grep "byobu-status $i$" /usr/share/$PKG/profiles/common | awk '{print $3}'` 46 | printf "%s" "$i $freq " 47 | time loop $i 48 | done 49 | -------------------------------------------------------------------------------- /usr/share/byobu/windows/Makefile.am: -------------------------------------------------------------------------------- 1 | windowsdir = $(datadir)/@PACKAGE@/windows 2 | windows_DATA = common 3 | -------------------------------------------------------------------------------- /usr/share/byobu/windows/common: -------------------------------------------------------------------------------- 1 | # Default windows examples 2 | # screen -t notify-osd -M tail -f $HOME/.cache/notify-osd.log 3 | # screen -t top top 4 | # screen -t web w3m http://LinuxSearch.org 5 | # screen -t shell byobu-shell 6 | -------------------------------------------------------------------------------- /usr/share/dbus-1/services/Makefile.am: -------------------------------------------------------------------------------- 1 | servicedir = $(datadir)/dbus-1/services 2 | service_DATA = us.kirkland.terminals.byobu.service 3 | -------------------------------------------------------------------------------- /usr/share/dbus-1/services/us.kirkland.terminals.byobu.service: -------------------------------------------------------------------------------- 1 | [D-BUS Service] 2 | Name=us.kirkland.terminals.byobu 3 | Exec=/usr/lib/gnome-terminal/gnome-terminal-server --app-id us.kirkland.terminals.byobu 4 | -------------------------------------------------------------------------------- /usr/share/doc/byobu/Makefile.am: -------------------------------------------------------------------------------- 1 | docdir = $(datadir)/doc/@PACKAGE@ 2 | doc_DATA = help.screen.txt help.tmux.txt 3 | -------------------------------------------------------------------------------- /usr/share/doc/byobu/help.screen.txt: -------------------------------------------------------------------------------- 1 | Byobu is an enhancement to GNU Screen, a command line 2 | tool providing live system status, dynamic window management, 3 | and some convenient keybindings: 4 | 5 | F2 Create a new window | F7 Scrollback and search 6 | F3 Go to the prev window | F8 Rename a window 7 | F4 Go to the next window | F9 Configuration 8 | F5 Reload profile | F12 Screen escape sequence 9 | F6 Detach from session | 'man byobu' - byobu's help 10 | 'byobu' - reattach session | 'man screen' - screen's help 11 | -------------------------------------------------------------------------------- /usr/share/man/man1/Makefile.am: -------------------------------------------------------------------------------- 1 | man_MANS = byobu.1 byobu-config.1 byobu-ctrl-a.1 byobu-disable.1 byobu-disable-prompt.1 byobu-enable.1 byobu-enable-prompt.1 byobu-export.1 byobu-janitor.1 byobu-keybindings.1 byobu-launch.1 byobu-launcher.1 byobu-launcher-install.1 byobu-launcher-uninstall.1 byobu-layout.1 byobu-prompt.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 byobu-ugraph.1 byobu-ulevel.1 col1.1 ctail.1 wifi-status.1 vigpg.1 manifest.1 purge-old-kernels.1 2 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-config.1: -------------------------------------------------------------------------------- 1 | .TH byobu-config 1 "16 Jan 2009" byobu "byobu" 2 | .SH NAME 3 | byobu-config \- Configuration utility for byobu 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-config\fP is an application that can configure a number of options available in the byobu utility. 7 | 8 | The menu provided by the \fBbyobu\fP should be self-explanatory. 9 | 10 | 11 | .SH "SEE ALSO" 12 | .PD 0 13 | .TP 14 | \fBscreen\fP(1) 15 | 16 | .TP 17 | \fIhttp://byobu.org\fP 18 | .PD 19 | 20 | .SH AUTHOR 21 | 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. 22 | 23 | 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. 24 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-ctrl-a.1: -------------------------------------------------------------------------------- 1 | .TH byobu-ctrl-a 1 "10 May 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-ctrl\-a \- Configure Byobu's ctrl-a behavior 4 | 5 | .SH SYNOPSIS 6 | .B byobu-ctrl-a 7 | ['screen'|'tmux'] 8 | [key] 9 | 10 | .SH DESCRIPTION 11 | \fBbyobu\-ctrl\-a\fP is an interactive program that allows a user to configure the behavior of the 'ctrl-a' key sequence. 12 | 13 | Traditional GNU \fBscreen\fP(1) uses ctrl-a as its escape character, while GNU \fBemacs\fP(1) uses ctrl-a to move the cursor to the beginning of the line. This conflict has caused unending amounts of grief among Screen, Byobu, and Emacs-mode users. 14 | 15 | Thus, this program exists to allow each user to choose the behavior of ctrl-a in their local environment. 16 | 17 | .TP 18 | \fIhttp://byobu.org\fP 19 | .PD 20 | 21 | .SH AUTHOR 22 | 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. 23 | 24 | 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. 25 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-disable-prompt.1: -------------------------------------------------------------------------------- 1 | .so man1/byobu-prompt.1 2 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-disable.1: -------------------------------------------------------------------------------- 1 | .so man1/byobu-enable.1 2 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-enable-prompt.1: -------------------------------------------------------------------------------- 1 | .so man1/byobu-prompt.1 2 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-enable.1: -------------------------------------------------------------------------------- 1 | .TH byobu-enable 1 "6 January 2011" byobu "byobu" 2 | .SH NAME 3 | byobu-enable, byobu-disable \- wrapper script for enabling/disabling automatic startup of byobu after login into text console 4 | 5 | .SH SYNOPSIS 6 | \fBbyobu-enable\fP 7 | .TP 8 | \fBbyobu-disable\fP 9 | 10 | .SH DESCRIPTION 11 | \fBbyobu-enable\fP will run \fBbyobu-launcher-install\fP(1) to configure \fBbyobu\fP(1) to launch automatically on login 12 | 13 | \fBbyobu-disable\fP will simply run \fBbyobu-launcher-uninstall\fP(1). 14 | 15 | .SH "BUGS" 16 | 17 | None found, yet. 18 | 19 | .SH SEE ALSO 20 | .PD 0 21 | .TP 22 | \fBscreen\fP(1), \fBbyobu-config\fP(1), \fBbyobu-export\fP(1), \fBbyobu-status\fP(1), \fBbyobu-status-detail\fB(1) 23 | .TP 24 | \fBhttp://byobu.org\fP 25 | .PD 26 | 27 | .SH AUTHOR 28 | This manpage was written by Jan Klepek and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 29 | 30 | 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. 31 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-export.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-export 1 "2 Aug 2010" byobu "byobu" 2 | .SH NAME 3 | byobu\-export \- DEPRECATED 4 | 5 | .SH SYNOPSIS 6 | .BI "byobu\-export" 7 | 8 | .SH DESCRIPTION 9 | The \fBbyobu\-export\fP utility is now deprecated. 10 | 11 | To install byobu on a system for which byobu is not packaged, or 12 | where you are not the root user, simply: 13 | * Download the latest release (>= 3.0) from: 14 | https://github.com/dustinkirkland/byobu 15 | * And follow the instructions in the README 16 | 17 | .SH AUTHOR 18 | 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. 19 | 20 | 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. 21 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-janitor.1: -------------------------------------------------------------------------------- 1 | .TH byobu-janitor 1 "6 January 2011" byobu "byobu" 2 | .SH NAME 3 | byobu-janitor \- script for cleaning and upgrading environment after upgrades 4 | 5 | .SH SYNOPSIS 6 | \fBbyobu-janitor\fP 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu-janitor\fP is script for cleaning environment after upgrades, it consists from several tasks where aim is to ensure that environment is ready for new version of byobu. 10 | 11 | .SH "BUGS" 12 | 13 | None found, yet. 14 | 15 | .SH SEE ALSO 16 | .PD 0 17 | .TP 18 | \fBscreen\fP(1), \fBbyobu-config\fP(1), \fBbyobu-export\fP(1), \fBbyobu-status\fP(1), \fBbyobu-status-detail\fB(1) 19 | .TP 20 | \fBhttp://byobu.org\fP 21 | .PD 22 | 23 | .SH AUTHOR 24 | This manpage was written by Jan Klepek and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 25 | 26 | 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. 27 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-keybindings.1: -------------------------------------------------------------------------------- 1 | .TH byobu-keybindings 1 "7 May 2013" byobu "byobu" 2 | .SH NAME 3 | byobu-keybindings \- toggle on/off Byobu's keybindings 4 | 5 | .SH SYNOPSIS 6 | \fBbyobu-keybindings\fP 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu-keybindings\fP toggles on and off Byobu's keybindings in the current \fBtmux\fP(1) or \fBscreen\fP(1) session. It will only operate against the current session. 10 | 11 | This executable is provided as an alternative to pressing -F12, and is useful in environments where -F12 does not work (e.g., on the Linux console TTY). 12 | 13 | Some Byobu users toggle these keybindings when they interfere with other programs using the same keybindings (e.g., \fBmc\fP(1)). 14 | 15 | .SH SEE ALSO 16 | .PD 0 17 | .TP 18 | \fBscreen\fP(1), \fBtmux\fP(1), \fBbyobu\fP(1), \fBmc\fP(1) 19 | .TP 20 | \fBhttp://byobu.org\fP 21 | .PD 22 | 23 | .SH AUTHOR 24 | This manpage and 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 under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 25 | 26 | 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. 27 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-launch.1: -------------------------------------------------------------------------------- 1 | .so man1/byobu-launcher.1 2 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-launcher-install.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-launcher\-install 1 "3 Jan 2010" byobu "byobu" 2 | .SH NAME 3 | byobu\-launcher\-install \- Byobu Launcher installation utility 4 | 5 | .SH SYNOPSIS 6 | byobu\-launcher\-install [\-n|\-\-no\-logout] 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu\-launcher\-install\fP(1) is a simple utilty that will add a line to your \fI$HOME/.profile\fP file which launches \fBbyobu\fP(1) any time you login through \fBssh\fP(1) or on a \fBconsole\fP(4). 10 | 11 | By default, when users detach from the \fBbyobu\fP(1) session they will also logout. Users can change this behavior by adding the [\-n|\-\-no\-logout] option when they run \fBbyobu\-launcher\-install\fP(1). 12 | 13 | You can disable this behavior entirely at any time with the \fBbyobu\-launcher\-uninstall\fB(1) utility. 14 | 15 | .SH "SEE ALSO" 16 | .PD 0 17 | .TP 18 | \fBscreen\fP(1), \fBbyobu\fP(1), \fBssh\fP(1), \fBconsole\fP(4), \fBbyobu\-launcher\-uninstall\fP(1) 19 | 20 | .TP 21 | \fIhttp://byobu.org\fP 22 | .PD 23 | 24 | .SH AUTHOR 25 | 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. 26 | 27 | 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. 28 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-launcher-uninstall.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-launcher\-uninstall 1 "3 Jan 2010" byobu "byobu" 2 | .SH NAME 3 | byobu\-launcher\-uninstall \- Byobu Launcher uninstallation utility 4 | 5 | .SH SYNOPSIS 6 | byobu\-launcher\-uninstall 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu\-launcher\-uninstall\fP(1) is a simple utilty that removes the line added to your \fI$HOME/.profile\fP by \fBbyobu\-launcher\-install\fP(1) which launches \fBbyobu\fP(1) any time you login through \fBssh\fP(1) or on a \fBconsole\fP(4). 10 | 11 | .SH "SEE ALSO" 12 | .PD 0 13 | .TP 14 | \fBscreen\fP(1), \fBbyobu\fP(1), \fBssh\fP(1), \fBconsole\fP(4), \fBbyobu\-launcher\-install\fP(1) 15 | 16 | .TP 17 | \fIhttp://byobu.org\fP 18 | .PD 19 | 20 | .SH AUTHOR 21 | 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. 22 | 23 | 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. 24 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-launcher.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-launcher 1 "16 Jan 2009" byobu "byobu" 2 | .SH NAME 3 | byobu\-launcher \- Byobu Launcher 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-launcher\fP is a simple application that will launch \fBscreen\fP(1) in a \fBbyobu\fP(1) configuration, reconnecting to an existing detached session (if available). 7 | 8 | .SH "SEE ALSO" 9 | .PD 0 10 | .TP 11 | \fBscreen\fP(1), \fBbyobu\fP(1) 12 | 13 | .TP 14 | \fIhttp://byobu.org\fP 15 | .PD 16 | 17 | .SH AUTHOR 18 | 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. 19 | 20 | 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. 21 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-layout.1: -------------------------------------------------------------------------------- 1 | .TH byobu-layout 1 "8 Jan 2012" byobu "byobu" 2 | .SH NAME 3 | byobu\-layout \- Save and restore byobu-tmux layouts 4 | 5 | .SH USAGE 6 | byobu\-layout [save|restore] [name] 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu\-layout\fP will save and restore \fBbyobu-tmux\fP(1) split window layouts. 10 | 11 | If 'name' is blank, it operates interactively. 12 | 13 | Note that this only works with Byobu when backed by \fBtmux\fP(1), and not \fBscreen\fP(1). 14 | 15 | .SH SEE ALSO 16 | \fBbyobu\fP(1), \fBtmux\fP(1) 17 | 18 | .TP 19 | \fIhttp://byobu.org\fP 20 | .PD 21 | 22 | .SH AUTHOR 23 | 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. 24 | 25 | 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. 26 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-prompt.1: -------------------------------------------------------------------------------- 1 | .TH byobu-prompt 1 "16 January 2024" byobu "byobu" 2 | .SH NAME 3 | byobu-prompt, byobu-enable-prompt, byobu-disable-prompt \- add and remove a nice color prompt with a previous command timer to your shell configuration 4 | 5 | .SH SYNOPSIS 6 | \fBbyobu-prompt\fP 7 | .TP 8 | \fBbyobu-enable-prompt\fP 9 | .TP 10 | \fBbyobu-disable-prompt\fP 11 | 12 | .SH DESCRIPTION 13 | 14 | Byobu provides a special PS0 and PS1 prompt command, compatible with Bash shells. It will display the previous command's total runtime and exit code, if it's not zero. It will use 3 separate colors for the local username, hostname, and the current working directory. 15 | 16 | \fBbyobu-enable-prompt\fP will add one line to your \fI~/.bashrc\fP. 17 | 18 | You can safely remove the line from your \fI~/.bashrc\fP, which ends in \fB#byobu-prompt\fP. 19 | 20 | \fBbyobu-disable-prompt\fP will remove its color configuration from \fI~/.bashrc\fP. 21 | 22 | \fBbyobu-prompt\fP is an interactive wrapper of the previous two tools. 23 | 24 | .SH "BUGS" 25 | 26 | This is currently only compatible with \fBbash(1)\fP. 27 | 28 | .SH SEE ALSO 29 | .PD 0 30 | .TP 31 | \fBbash\fP(1) 32 | .TP 33 | \fBhttp://byobu.org\fP 34 | .PD 35 | 36 | .SH AUTHOR 37 | 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 under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 38 | 39 | 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. 40 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-quiet.1: -------------------------------------------------------------------------------- 1 | .TH byobu-quiet 1 "10 May 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-quiet \- Silence all of Byobu's status indicators and eliminate the hardstatus line 4 | 5 | .SH USAGE 6 | byobu\-quiet [\-\-undo] 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu\-quiet\fP will disable ALL of Byobu's status indicators and eliminate the hardstatus line. 10 | 11 | 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). 12 | 13 | .SH SEE ALSO 14 | \fBbyobu-silent\fP(1) 15 | 16 | .TP 17 | \fIhttp://byobu.org\fP 18 | .PD 19 | 20 | .SH AUTHOR 21 | 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. 22 | 23 | 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. 24 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-reconnect-sockets.1: -------------------------------------------------------------------------------- 1 | .TH byobu-reconnect-sockets 1 "7 Dec 2009" byobu "byobu" 2 | .SH NAME 3 | byobu\-reconnect\-sockets \- Sourcable script that updates GPG_AGENT_INFO and DBUS_SESSION_BUS_ADDRESS in the environment 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-reconnect\-sockets\fP is a sourcable bit of shell code that will update the GPG_AGENT_INFO and DBUS_SESSION_BUS_ADDRESS environment variables in the current shell, such that you may restablish connection to \fBgpg\-agent\fP(1) and \fBdbus\-daemon(1)\fP. 7 | 8 | This is often useful when reattaching to a detached Byobu session. 9 | 10 | .TP 11 | \fIhttp://byobu.org\fP 12 | .PD 13 | 14 | .SH AUTHOR 15 | 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. 16 | 17 | 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. 18 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-screen.1: -------------------------------------------------------------------------------- 1 | .TH byobu-screen 1 "10 Aug 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-screen \- Launch byobu with screen as the backend 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-screen\fP launches \fBbyobu\fP(1) with \fBscreen\fP(1) as the backend window manager. 7 | 8 | .SH SEE ALSO 9 | 10 | \fBbyobu\fP(1), \fBscreen\fP(1) 11 | 12 | .TP 13 | \fIhttp://byobu.org\fP 14 | .PD 15 | 16 | .SH AUTHOR 17 | 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. 18 | 19 | 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. 20 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-select-backend.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-select\-backend 1 "30 Oct 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-select\-backend \- select your default Byobu backend window manager 4 | 5 | .SH SYNOPSIS 6 | \fBbyobu\-select\-backend\fP [screen|tmux] 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu\-select\-backend\fP is an application that lists the available Byobu backends and allows you to select your default. 10 | 11 | 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. 12 | 13 | This utility will only affect which backend is used by default when simply running, \fBbyobu\fP(1). Note that at any time, you can force the backend of a particular session by running the helpers, \fBbyobu-screen\fP(1) or \fBbyobu-tmux\fP(1). 14 | 15 | .SH FILES 16 | \fI~/.byobu/backend\fP 17 | 18 | .SH "SEE ALSO" 19 | .PD 0 20 | .TP 21 | \fBbyobu\fP(1), \fBbyobu-screen\fP(1), \fBbyobu-tmux\fP(1), \fBscreen\fP(1), \fBtmux\fP(1) 22 | 23 | .TP 24 | \fIhttp://byobu.org\fP 25 | .PD 26 | 27 | .SH AUTHOR 28 | 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. 29 | 30 | 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. 31 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-select-profile.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-select\-profile 1 "4 Dec 2009" byobu "byobu" 2 | .SH NAME 3 | byobu\-select\-profile \- select your Byobu foreground and background colors 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-select\-profile\fP is an application that changes Byobu's status bar foreground and background colors 7 | 8 | .SH OPTIONS 9 | 10 | -l,--list list available profiles 11 | 12 | -b,--background COLOR set the background color 13 | 14 | -f,--foreground COLOR set the foreground color 15 | 16 | -h,--hostname set the colors based on a hash of the hostname 17 | 18 | -i,--ip set the colors based on a hash of the ip 19 | 20 | -r,--random set the colors randomly 21 | 22 | --help this help 23 | 24 | .SH "SEE ALSO" 25 | .PD 0 26 | .TP 27 | \fBbyobu\fP(1) 28 | 29 | .TP 30 | \fIhttp://byobu.org\fP 31 | .PD 32 | 33 | .SH AUTHOR 34 | 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. 35 | 36 | 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. 37 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-select-session.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-select\-session 1 "12 Jan 2010" byobu "byobu" 2 | .SH NAME 3 | byobu\-select\-session \- select and connect to a byobu session 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-select\-session\fP is an application that lists the available screen sessions running on the system, and prompts the user to select one. The user also has the option to create a new Byobu session, or launch the default shell without Byobu. 7 | 8 | If an invalid selection is chosen 3 times in a row, the user is connected to the youngest session. 9 | 10 | By default, if only one session exists, the user is connected to that session, and if no sessions exist, a new session is created -- such that there is no interactive prompt in the normal behavior. However, some users may choose to always be prompted, by touching the file $BYOBU_CONFIG_DIR/.always-select. 11 | 12 | Note that BYOBU_CONFIG_DIR=$HOME/.byobu. 13 | 14 | Named sessions that begin with a "." are "hidden" from \fBbyobu\-select\-session\fP(1). This is useful, for instance, if you do not want a session to be automatically selected at login. Example: 15 | byobu \-S .hidden 16 | 17 | .SH "FILES" 18 | \fI$BYOBU_CONFIG_DIR/.always-select\fP 19 | 20 | .SH "SEE ALSO" 21 | .PD 0 22 | .TP 23 | \fBbyobu\fP(1), \fBscreen\fP(1) 24 | 25 | .TP 26 | \fIhttp://byobu.org\fP 27 | .PD 28 | 29 | .SH AUTHOR 30 | 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. 31 | 32 | 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. 33 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-shell.1: -------------------------------------------------------------------------------- 1 | .TH byobu\-shell 1 "11 Feb 2009" byobu "byobu" 2 | .SH NAME 3 | byobu\-shell \- Print the message of the day and launch a shell 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-shell\fP is a simple script that prints the message of the day (/etc/motd) and launches a shell. 7 | 8 | $SHELL will be invoked if it exists. Otherwise, /bin/sh will be used. 9 | 10 | .TP 11 | \fIhttp://byobu.org\fP 12 | .PD 13 | 14 | .SH AUTHOR 15 | 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. 16 | 17 | 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. 18 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-silent.1: -------------------------------------------------------------------------------- 1 | .TH byobu-silent 1 "21 May 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-silent\- Silence all of Byobu's status indicators, eliminate the hardstatus line, and the window list 4 | 5 | .SH USAGE 6 | byobu\-silent [\-\-undo] 7 | 8 | .SH DESCRIPTION 9 | \fBbyobu\-silent\fP will disable ALL of Byobu's status indicators, eliminate the hardstatus line, and the window list. 10 | 11 | Some administrators, in some environments, at some times may prefer a very minimal, quiet Byobu, without the potentially distracting status indicators and eye candy. 12 | 13 | \fBbyobu-silent\fP implies \fBbyobu-quiet\fP. 14 | 15 | .SH SEE ALSO 16 | \fBbyobu-quiet\fP(1) 17 | 18 | .TP 19 | \fIhttp://byobu.org\fP 20 | .PD 21 | 22 | .SH AUTHOR 23 | 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. 24 | 25 | 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. 26 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-status-detail.1: -------------------------------------------------------------------------------- 1 | .TH byobu-status-detail 1 "27 Apr 2009" byobu "byobu" 2 | .SH NAME 3 | byobu\-status\-detail \- Wrapper that uses a sensible pager 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-status\-detail\fP is a simple script that uses a sensible pager for displaying the detailed status of all byobu status scripts. 7 | 8 | .TP 9 | \fIhttp://byobu.org\fP 10 | .PD 11 | 12 | .SH AUTHOR 13 | 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. 14 | 15 | 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. 16 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-status.1: -------------------------------------------------------------------------------- 1 | .TH byobu-status 1 "15 Aug 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-status \- displays status suitable for printing by the BYOBU_BACKEND 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-status\fP is a program periodically called by the BYOBU_BACKEND to gather the formatted status strings displayed in to lower status bar(s). 7 | 8 | .TP 9 | \fIhttp://byobu.org\fP 10 | .PD 11 | 12 | .SH AUTHOR 13 | 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. 14 | 15 | 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. 16 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-tmux.1: -------------------------------------------------------------------------------- 1 | .TH byobu-tmux 1 "10 Aug 2011" byobu "byobu" 2 | .SH NAME 3 | byobu\-tmux \- Launch byobu with tmux as the backend 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-tmux\fP launches \fBbyobu\fP(1) with \fBtmux\fP(1) as the backend window manager. 7 | 8 | .SH SEE ALSO 9 | 10 | \fBbyobu\fP(1), \fBtmux\fP(1) 11 | 12 | .TP 13 | \fIhttp://byobu.org\fP 14 | .PD 15 | 16 | .SH AUTHOR 17 | 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. 18 | 19 | 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. 20 | -------------------------------------------------------------------------------- /usr/share/man/man1/byobu-ugraph.1: -------------------------------------------------------------------------------- 1 | .TH byobu-ugraph 1 "16 Dec 2013" byobu "byobu" 2 | .SH NAME 3 | \fBbyobu\-ugraph\fP \- helper script for notification history graphs 4 | 5 | .SH DESCRIPTION 6 | \fBbyobu\-ugraph\fP is a helper script that can be used to create history graphs 7 | 8 | .SH USAGE 9 | \fBbyobu\-ugraph\fP [options] [command [args...]] 10 | 11 | .SH OPTIONS 12 | -f : File to read data points from. (only required if no command specified). 13 | -h : Show this help. 14 | -m : Minimum value (default=$min_default). 15 | -n : Supress output of newline character. 16 | -p : Specify number of data points in graph (default=$points_default). 17 | -r : Do not rotate file (default is to rotate). Option implies file should not be written to so a command cannot follow script options in this case. 18 | -t : 'byobu-ulevel' theme to use (default=$theme_default). 19 | -x : Maximum value (default=$max_default). 20 | 21 | .SH EXAMPLES 22 | Using byobu-ugraph to run a command, rotate log and display graph. 23 | 24 | Here we specify a command to display available memory. Trailing echo adds a required newline Note no filename specified. 25 | 26 | byobu-ugraph "(/usr/lib/byobu/mem_used | sed -e 's/% //g';echo)" 27 | 28 | Using byobu-ugraph just to rotate log and display the graph 29 | 30 | file=/tmp/load.dat 31 | awk '{ print $1}' /proc/loadavg >> $file 32 | # Note: we need to specify what we consider to be a "reasonable" maximum load 33 | byobu-ugraph -m 3.0 -f $file 34 | 35 | .SH NOTES 36 | 37 | If you specify 'command', care must be taken with shell quoting to avoid expansion prior to this script running the command. 38 | 39 | If '-r' is not specified, the file will be rotated such that at most lines are retained on each invocation of this script. 40 | 41 | .SH SEE ALSO 42 | 43 | \fBbyobu\fP(1) 44 | 45 | .TP 46 | \fIhttp://byobu.org\fP 47 | .PD 48 | 49 | .SH AUTHOR 50 | This utility was written by James Hunt , and this manpage was 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. 51 | 52 | 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. 53 | -------------------------------------------------------------------------------- /usr/share/man/man1/col1.1: -------------------------------------------------------------------------------- 1 | .TH col1 1 "27 Sep 2010" byobu "byobu" 2 | .SH NAME 3 | col1 .. col9, NF \- awk and print a column (based on the name of the program, 1-9) 4 | 5 | .SH SYNOPSIS 6 | .BI "col1 [SEPARATOR]" 7 | 8 | .SH DESCRIPTION 9 | \fBcol1\fP is a simple script that conveniently splits and prints a given column, where the column to print is the name of the script program you're running (col1-col9). col2-col9 are symlinks to col1; their behavior simply changes based on the name called. 10 | 11 | \fBNF\fP can be used to print the last field. 12 | 13 | The program takes one optional argument, the input field separator (whitespace, by default). 14 | 15 | .SH EXAMPLES 16 | Rather than: 17 | mount | awk '{print $3}' 18 | 19 | Try: 20 | mount | col3 21 | 22 | Instead of: 23 | cat /etc/passwd | awk \-F":" '{print $7}' 24 | 25 | You can just do: 26 | cat /etc/passwd | col7 : 27 | 28 | Or 29 | cat /etc/passwd | NF : 30 | 31 | .SH SEE ALSO 32 | \fBawk\fP(1)\fP 33 | 34 | .SH AUTHOR 35 | This manpage and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 36 | 37 | On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP. 38 | -------------------------------------------------------------------------------- /usr/share/man/man1/ctail.1: -------------------------------------------------------------------------------- 1 | .TH ctail 1 "23 Oct 2012" byobu "byobu" 2 | .SH NAME 3 | ctail \- watch and colorize a logfile 4 | 5 | .SH SYNOPSIS 6 | \fBctail\fP [FILE] 7 | 8 | .SH DESCRIPTION 9 | \fBctail\fP is a very simple alias that watches a file and colorizes it. It's very useful for monitoring logfiles. 10 | 11 | .SH EXAMPLE 12 | ctail /var/log/syslog 13 | 14 | .SH SEE ALSO 15 | \fBccze\fP(1), \fBtail\fP(1) 16 | 17 | .SH AUTHOR 18 | This manpage and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 19 | 20 | On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP. 21 | -------------------------------------------------------------------------------- /usr/share/man/man1/manifest.1: -------------------------------------------------------------------------------- 1 | .TH manifest 1 "28 February 2016" byobu "byobu" 2 | .SH NAME 3 | manifest \- import or export a package list 4 | 5 | .SH SYNOPSIS 6 | \fBmanifest\fP export [-|URL|FILENAME] 7 | .TP 8 | \fBmanifest\fP import -|URL|FILENAME 9 | .TP 10 | 11 | .SH DESCRIPTION 12 | 13 | 14 | .SH "BUGS" 15 | 16 | This is currently only compatible with \fBapt(8)\fP and \fBdpkg\fP(1). 17 | 18 | .SH SEE ALSO 19 | .PD 0 20 | .TP 21 | \fBapt\fP(8), \fBdpkg\fP(1), \fBpastebinit\fP(1) 22 | .TP 23 | \fBhttp://byobu.org\fP 24 | .PD 25 | 26 | .SH AUTHOR 27 | 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 under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 28 | 29 | 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. 30 | -------------------------------------------------------------------------------- /usr/share/man/man1/purge-old-kernels.1: -------------------------------------------------------------------------------- 1 | .TH purge-old-kernels 1 "30 Apr 2012" byobu "byobu" 2 | .SH NAME 3 | purge-old-kernels - remove old kernel and header packages from the system 4 | 5 | .SH SYNOPSIS 6 | \fBpurge-old-kernels\fP 7 | 8 | .SH DESCRIPTION 9 | This utility is now deprecated. The functionality it used to provide should be integrated into \fIapt\fP(8). 10 | 11 | If you still have old kernels lying around after this, please file a bug against apt: https://bugs.launchpad.net/ubuntu/+source/apt/+filebug 12 | 13 | This program requires administrative access. 14 | 15 | .SH EXAMPLE 16 | 17 | sudo purge-old-kernels 18 | 19 | .SH SEE ALSO 20 | \fBapt-get\fP(8) 21 | 22 | .SH AUTHOR 23 | This manpage and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 24 | 25 | On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP. 26 | -------------------------------------------------------------------------------- /usr/share/man/man1/vigpg.1: -------------------------------------------------------------------------------- 1 | .TH vigpg 1 "25 Apr 2014" byobu "byobu" 2 | .SH NAME 3 | vigpg \- open and edit an encrypted file 4 | 5 | .SH SYNOPSIS 6 | \fBvigpg\fP [FILE] 7 | 8 | .SH DESCRIPTION 9 | \fBvigpg\fP is a program that wraps your editor and gpg to edit an encrypted file 10 | 11 | This may be useful, for instance, to edit your password file 12 | 13 | .SH EXAMPLE 14 | $ vigpg passwords.txt.gpg 15 | 16 | .SH SEE ALSO 17 | \fBgpg\fP(1)\fP, \fBsensible-editor\fP(1) 18 | 19 | .SH AUTHOR 20 | This manpage and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 21 | 22 | On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP. 23 | -------------------------------------------------------------------------------- /usr/share/man/man1/wifi-status.1: -------------------------------------------------------------------------------- 1 | .TH wifi-status 1 "27 Sep 2010" byobu "byobu" 2 | .SH NAME 3 | wifi-status \- monitor the wireless interface 4 | 5 | .SH SYNOPSIS 6 | \fBwifi-status\fP [INTERFACE] 7 | 8 | .SH DESCRIPTION 9 | \fBwifi-status\fP is a program that monitors a wireless interface. 10 | 11 | This is often useful when trying to associate with an access point. 12 | 13 | .SH SEE ALSO 14 | \fBiwconfig\fP(8)\fP, \fBip\fP(8) 15 | 16 | .SH AUTHOR 17 | This manpage and the utility was written by Dustin Kirkland for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation. 18 | 19 | On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at \fIhttp://www.gnu.org/licenses/gpl.txt\fP. 20 | -------------------------------------------------------------------------------- /usr/share/sounds/byobu/byobu.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dustinkirkland/byobu/34ca6fec92c6742c655ddd81a68a893ab74345ac/usr/share/sounds/byobu/byobu.ogg --------------------------------------------------------------------------------