diff --git a/debian/changelog b/debian/changelog index dfaab3f2..c262e46d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -67,6 +67,9 @@ byobu (4.30) unreleased; urgency=low - ensure that the cache dir gets created * usr/bin/byobu, usr/lib/byobu/.shutil, usr/share/byobu/profiles/tmux: - get 256 colors working in tmux + * usr/lib/byobu/reboot_required, usr/share/man/man1/byobu.1: + - add .zZ symbol for powernap state, per feedback at LinuxConNA in + Vancouver -- Dustin Kirkland Thu, 11 Aug 2011 10:31:31 -0500 diff --git a/usr/lib/byobu/reboot_required b/usr/lib/byobu/reboot_required index 6664b00f..35e79b04 100755 --- a/usr/lib/byobu/reboot_required +++ b/usr/lib/byobu/reboot_required @@ -21,10 +21,13 @@ REBOOT_FLAG="/var/run/reboot-required" RELOAD_FLAG="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/reload-required" +POWERNAP_FLAG="/var/run/powernap.state" __reboot_required_detail() { [ -e "$REBOOT_FLAG" ] && ls -alF "$REBOOT_FLAG" 2>&1 [ -e "$RELOAD_FLAG" ] && ls -alF "$RELOAD_FLAG" 2>&1 + [ -e "$POWERNAP_FLAG" ] && ls -alF "$POWERNAP_FLAG" 2>&1 + [ -e "$POWERNAP_FLAG" ] && cat "$POWERNAP_FLAG" 2>&1 } __reboot_required() { @@ -34,6 +37,9 @@ __reboot_required() { if [ -e "$RELOAD_FLAG" ]; then color b W; printf "<"; color -; color b b W; printf "F5"; color -; color b W; printf ">"; color -; printf " " fi + if [ -e "$POWERNAP_FLAG" ]; then + color b W; printf ".zZ"; color -; printf " " + fi } # vi: syntax=sh ts=4 noexpandtab diff --git a/usr/share/man/man1/byobu.1 b/usr/share/man/man1/byobu.1 index 152e831c..264d544c 100644 --- a/usr/share/man/man1/byobu.1 +++ b/usr/share/man/man1/byobu.1 @@ -67,7 +67,7 @@ Note that BYOBU_CONFIG_DIR=\fI$HOME/.byobu\fP. \fBprocesses\fP \- total number of processes running on the system; displayed in the lower bar in white text on a dark yellow background with a trailing '&' indicating 'background processes' -\fBreboot_required\fP \- symbol present if a reboot is required following a system update; displayed in the lower bar white text on a blue background by the symbol '(R)'; additionally, reboot_required will print '' in white text on a blue background, if Byobu requires you to reload your profile to affect some changes. +\fBreboot_required\fP \- symbol present if a reboot is required following a system update; displayed in the lower bar white text on a blue background by the symbol '(R)'; additionally, reboot_required will print '' in white text on a blue background, if Byobu requires you to reload your profile to affect some changes; it will also detect if your system is currently in \fBpowernap\fP(8) state and if so print '.zZ'. \fBrelease\fP \- distribution and version information about the release running on the current system as reported by \fBlsb_release(1)\fP or \fI/etc/issue\fP; displayed in the lower bar in bold black text toward the left on a grey background; you may override the detected release with DISTRO=Whatever in \fI$BYOBU_CONFIG_DIR/statusrc\fP