From d5d05f69f9639140e5bb351252d4db14733deef0 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 27 Feb 2011 09:55:22 -0600 Subject: [PATCH] * etc/byobu/statusrc, usr/bin/byobu-config, usr/lib/byobu/time_binary, usr/share/byobu/profiles/common, usr/share/man/man1/byobu.1: - add support for the super-geeky-but-fun binary clock; requires UTF8 support in GNU Screen, LP: #705037 --- debian/changelog | 6 ++++++ etc/byobu/statusrc | 1 + usr/bin/byobu-config | 1 + usr/lib/byobu/time_binary | 2 +- usr/share/byobu/profiles/common | 1 + usr/share/man/man1/byobu.1 | 2 ++ 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 569f9a70..af33f865 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,6 +9,12 @@ byobu (3.29) unreleased; urgency=low LP: #482623 * usr/bin/byobu-janitor: use readlink, much more graceful + [ James Hunt ] + * etc/byobu/statusrc, usr/bin/byobu-config, usr/lib/byobu/time_binary, + usr/share/byobu/profiles/common, usr/share/man/man1/byobu.1: + - add support for the super-geeky-but-fun binary clock; requires + UTF8 support in GNU Screen, LP: #705037 + [ Chow Loong Jin and Dustin Kirkland ] * usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works with raid, lvm, dm volumes, LP: #709224, #711373, #723187 diff --git a/etc/byobu/statusrc b/etc/byobu/statusrc index 84f427fd..78cbeaee 100644 --- a/etc/byobu/statusrc +++ b/etc/byobu/statusrc @@ -50,6 +50,7 @@ release=1 services=1 swap=0 time=1 +time_binary=0 time_utc=0 users=0 updates_available=1 diff --git a/usr/bin/byobu-config b/usr/bin/byobu-config index a0f67a66..cb52a725 100755 --- a/usr/bin/byobu-config +++ b/usr/bin/byobu-config @@ -327,6 +327,7 @@ def readstatus(): status["services"]=1 status["swap"]=0 status["time"]=1 + status["time_binary"]=0 status["time_utc"]=0 status["users"]=0 status["updates_available"]=1 diff --git a/usr/lib/byobu/time_binary b/usr/lib/byobu/time_binary index a594e1c0..8b3967e1 100755 --- a/usr/lib/byobu/time_binary +++ b/usr/lib/byobu/time_binary @@ -3,7 +3,7 @@ # Script to display a "binary clock" using unicode characters from the # braille block. # -# Designed to work with the wonderful byoby(1) but can be run +# Designed to work with the wonderful byobu(1) but can be run # stand-alone. #--------------------------------------------------------------------- # diff --git a/usr/share/byobu/profiles/common b/usr/share/byobu/profiles/common index 3b880eb1..9219c5f0 100644 --- a/usr/share/byobu/profiles/common +++ b/usr/share/byobu/profiles/common @@ -72,6 +72,7 @@ backtick 129 67 67 byobu-status apport backtick 130 5 5 byobu-status custom backtick 131 53 53 byobu-status services backtick 132 11 11 byobu-status time_utc +backtick 132 23 23 byobu-status time_binary backtick 133 3 3 byobu-status disk_io backtick 134 613 613 byobu-status rcs_cost backtick 135 7 7 byobu-status raid diff --git a/usr/share/man/man1/byobu.1 b/usr/share/man/man1/byobu.1 index 09f5d767..e012d785 100644 --- a/usr/share/man/man1/byobu.1 +++ b/usr/share/man/man1/byobu.1 @@ -79,6 +79,8 @@ Note that DATA=\fI$HOME/.byobu\fP. \fBtime\fP \- the system time in HH:MM:SS format; displayed in the lower bar on the far right in the default text and default background colors +\fBtime_binary\fP \- only for the hard core geek, the local system time in binary; requires UTF8 support in a VERY recent version of GNU Screen; you must additionally set "UTF8=1" in \fI$DATA/statusrc\fP; displayed in the lower bar on the far right in dark text on a light background + \fBtime_utc\fP \- the UTC system time in HH:MMformat; displayed in the lower bar on the far right in dark text on a light background \fBupdates_available\fP \- the number of updates available on the system; displayed in the lower bar toward the right in white text on a red background with a trailing '!' sign; if any updates are marked 'security updates', then there will be a total of two trailing exclamation points, '!!'