* etc/byobu/statusrc, usr/bin/byobu-config, usr/lib/byobu/time_utc,

usr/share/byobu/profiles/common, usr/share/man/man1/byobu.1:
  - daylight savings really sucks for those few weeks now when the
    US is completely different from the rest of the world; having
    a UTC time byobu status is really useful, LP: #540038
This commit is contained in:
Dustin Kirkland 2010-03-16 23:20:31 -05:00
commit d0f4063f9d
6 changed files with 39 additions and 2 deletions

6
debian/changelog vendored
View file

@ -1,6 +1,10 @@
byobu (2.65) unreleased; urgency=low
* UNRELEASED
* etc/byobu/statusrc, usr/bin/byobu-config, usr/lib/byobu/time_utc,
usr/share/byobu/profiles/common, usr/share/man/man1/byobu.1:
- daylight savings really sucks for those few weeks now when the
US is completely different from the rest of the world; having
a UTC time byobu status is really useful, LP: #540038
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 10 Mar 2010 19:06:51 -0600

View file

@ -45,6 +45,7 @@ reboot_required=1
release=1
services=1
time=1
time_utc=0
users=0
updates_available=1
uptime=1

View file

@ -305,6 +305,7 @@ def readstatus():
status["release"]=1
status["services"]=1
status["time"]=1
status["time_utc"]=0
status["users"]=0
status["updates_available"]=1
status["uptime"]=1

28
usr/lib/byobu/time_utc Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh -e
#
# time_utc - print UTC time in HH:MM
# Copyright (C) 2010 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@canonical.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
case "$1" in
--detail)
date -u
;;
*)
printf "%s UTC" $(date -u +%H:%M)
;;
esac

View file

@ -69,6 +69,7 @@ backtick 128 23 23 byobu-status fan_speed
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
hardstatus alwayslastline
@ -98,7 +99,7 @@ source $HOME/.byobu/keybindings
caption always "%12`%?%-Lw%50L>%?%{=r}%n*%f %t%?(%u)%?%{-}%12`%?%+Lw%?%11` %=%12`%110`%109`%122`%111`%10`%<"
# Status string, last line
hardstatus string '%99`%{-}%{=r}%12` %100`%112`%= %130`%102`%101`%129`%131`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%120`%121`'
hardstatus string '%99`%{-}%{=r}%12` %100`%112`%= %130`%102`%101`%129`%131`%127`%114`%115`%108`%128`%125`%126`%113`%119`%117`%116`%106`%104`%103`%105`%107`%123`%132`%120`%121`'
# NOTE: Older version of screen have an arbitrary limit of only being able
# to change colors 16 times in this 'hardstatus string'.

View file

@ -59,6 +59,8 @@ byobu \- wrapper script for seeding a user's byobu configuration and launching s
\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_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, '!!'
\fBuptime\fP \- the total system uptime since last boot; displayed in the lower bar toward the right in blue text on a grey background