From cd236607d93a1957830e9af31e0e54728ae3aad6 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 21 Apr 2009 15:13:18 -0500 Subject: [PATCH] screen-profiles, screen-profiles-status: default uptime status to 'on', generally useful, and pretty compact -Dustin Kirkland Tue, 21 Apr 2009 15:11:29 -0500 --- debian/changelog | 4 +++- screen-profiles | 2 +- screen-profiles-status | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 34969c2d..608be435 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,8 +17,10 @@ screen-profiles (1.48) unreleased; urgency=low creation * debian/postrm: remove the || true on the diversion removal, per Debian ITP; I suppose we want to know if the diversion removal failed + * screen-profiles, screen-profiles-status: default uptime status to 'on', + generally useful, and pretty compact - -- Dustin Kirkland Tue, 21 Apr 2009 15:08:22 -0500 + -- Dustin Kirkland Tue, 21 Apr 2009 15:11:29 -0500 screen-profiles (1.47-0ubuntu1) jaunty; urgency=low diff --git a/screen-profiles b/screen-profiles index 1905865e..b2442b32 100755 --- a/screen-profiles +++ b/screen-profiles @@ -266,7 +266,7 @@ def readstatus(): status["time"]=1 status["users"]=0 status["updates-available"]=1 - status["uptime"]=0 + status["uptime"]=1 status["whoami"]=0 status["wifi-quality"]=0 if os.path.exists(HOME+'/.screen-profiles/status'): diff --git a/screen-profiles-status b/screen-profiles-status index 2b6ee906..9e14c1eb 100755 --- a/screen-profiles-status +++ b/screen-profiles-status @@ -38,11 +38,11 @@ P="$1" case "$P" in # default = on, user must override to turn off - cpu-count|cpu-freq|date|load-average|logo|mem-available|mem-used|menu|reboot-required|release|time|updates-available) + cpu-count|cpu-freq|date|load-average|logo|mem-available|mem-used|menu|reboot-required|release|time|updates-available|uptime) grep -qs -m1 "^$P=0$" "$HOME/.screen-profiles/status" && exit 0 ;; # default = off, user must override to turn on - arch|battery|ec2-cost|hostname|network-down|network-up|processes|uptime|users|whoami|wifi-quality) + arch|battery|ec2-cost|hostname|network-down|network-up|processes|users|whoami|wifi-quality) grep -qs -m1 "^$P=1$" "$HOME/.screen-profiles/status" || exit 0 ;; *)