screen-profiles, screen-profiles-status: default uptime status to 'on',

generally useful, and pretty compact
-Dustin Kirkland <kirkland@ubuntu.com>Tue, 21 Apr 2009 15:11:29 -0500
This commit is contained in:
Dustin Kirkland 2009-04-21 15:13:18 -05:00
commit cd236607d9
3 changed files with 6 additions and 4 deletions

4
debian/changelog vendored
View file

@ -17,8 +17,10 @@ screen-profiles (1.48) unreleased; urgency=low
creation creation
* debian/postrm: remove the || true on the diversion removal, per Debian * debian/postrm: remove the || true on the diversion removal, per Debian
ITP; I suppose we want to know if the diversion removal failed 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 <kirkland@ubuntu.com> Tue, 21 Apr 2009 15:08:22 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 21 Apr 2009 15:11:29 -0500
screen-profiles (1.47-0ubuntu1) jaunty; urgency=low screen-profiles (1.47-0ubuntu1) jaunty; urgency=low

View file

@ -266,7 +266,7 @@ def readstatus():
status["time"]=1 status["time"]=1
status["users"]=0 status["users"]=0
status["updates-available"]=1 status["updates-available"]=1
status["uptime"]=0 status["uptime"]=1
status["whoami"]=0 status["whoami"]=0
status["wifi-quality"]=0 status["wifi-quality"]=0
if os.path.exists(HOME+'/.screen-profiles/status'): if os.path.exists(HOME+'/.screen-profiles/status'):

View file

@ -38,11 +38,11 @@ P="$1"
case "$P" in case "$P" in
# default = on, user must override to turn off # 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 grep -qs -m1 "^$P=0$" "$HOME/.screen-profiles/status" && exit 0
;; ;;
# default = off, user must override to turn on # 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 grep -qs -m1 "^$P=1$" "$HOME/.screen-profiles/status" || exit 0
;; ;;
*) *)