mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
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:
parent
d45f10a1df
commit
cd236607d9
3 changed files with 6 additions and 4 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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'):
|
||||||
|
|
|
@ -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
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue