mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-20 13:33:23 -07:00
* usr/lib/byobu/reboot_required, usr/share/man/man1/byobu.1:
- add .zZ symbol for powernap state, per feedback at LinuxConNA in Vancouver
This commit is contained in:
parent
cf687ac09c
commit
e00d2f7652
3 changed files with 10 additions and 1 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -67,6 +67,9 @@ byobu (4.30) unreleased; urgency=low
|
||||||
- ensure that the cache dir gets created
|
- ensure that the cache dir gets created
|
||||||
* usr/bin/byobu, usr/lib/byobu/.shutil, usr/share/byobu/profiles/tmux:
|
* usr/bin/byobu, usr/lib/byobu/.shutil, usr/share/byobu/profiles/tmux:
|
||||||
- get 256 colors working in 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 <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500
|
||||||
|
|
||||||
|
|
|
@ -21,10 +21,13 @@
|
||||||
|
|
||||||
REBOOT_FLAG="/var/run/reboot-required"
|
REBOOT_FLAG="/var/run/reboot-required"
|
||||||
RELOAD_FLAG="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/reload-required"
|
RELOAD_FLAG="$BYOBU_RUN_DIR/cache.$BYOBU_BACKEND/reload-required"
|
||||||
|
POWERNAP_FLAG="/var/run/powernap.state"
|
||||||
|
|
||||||
__reboot_required_detail() {
|
__reboot_required_detail() {
|
||||||
[ -e "$REBOOT_FLAG" ] && ls -alF "$REBOOT_FLAG" 2>&1
|
[ -e "$REBOOT_FLAG" ] && ls -alF "$REBOOT_FLAG" 2>&1
|
||||||
[ -e "$RELOAD_FLAG" ] && ls -alF "$RELOAD_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() {
|
__reboot_required() {
|
||||||
|
@ -34,6 +37,9 @@ __reboot_required() {
|
||||||
if [ -e "$RELOAD_FLAG" ]; then
|
if [ -e "$RELOAD_FLAG" ]; then
|
||||||
color b W; printf "<"; color -; color b b W; printf "F5"; color -; color b W; printf ">"; color -; printf " "
|
color b W; printf "<"; color -; color b b W; printf "F5"; color -; color b W; printf ">"; color -; printf " "
|
||||||
fi
|
fi
|
||||||
|
if [ -e "$POWERNAP_FLAG" ]; then
|
||||||
|
color b W; printf ".zZ"; color -; printf " "
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# vi: syntax=sh ts=4 noexpandtab
|
# vi: syntax=sh ts=4 noexpandtab
|
||||||
|
|
|
@ -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'
|
\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 '<F5>' 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 '<F5>' 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
|
\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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue