mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 22:13:19 -07:00
profiles/profile.skel: move reboot-required and updates-available to
the early part of the status string, since these require action -Dustin Kirkland <kirkland@ubuntu.com>Fri, 03 Apr 2009 12:42:53 -0500
This commit is contained in:
parent
7899b1f5a9
commit
a596adaf3c
12 changed files with 17 additions and 14 deletions
2
bin/arch
2
bin/arch
|
@ -21,4 +21,4 @@
|
|||
p="arch"
|
||||
grep -qs "^$p=1$" "$HOME/.screen-profiles/status" || exit 0
|
||||
|
||||
uname -m
|
||||
printf "%s " $(uname -m)
|
||||
|
|
|
@ -25,7 +25,7 @@ mhz=`grep -m 1 "^cpu MHz" /proc/cpuinfo | awk -F"[:.]" '{print $2}'` || mhz=`gre
|
|||
|
||||
if [ $mhz -ge 1000 ]; then
|
||||
ghz=$(echo $mhz | awk '{ printf "%.2f", $1 / 1000 }')
|
||||
printf "\005{=b cW}%sGHz\005{-} " $ghz
|
||||
printf "\005{= cW}%sGHz\005{-} " $ghz
|
||||
else
|
||||
printf "\005{=b cW}%sMHz\005{-} " $mhz
|
||||
printf "\005{= cW}%sMHz\005{-} " $mhz
|
||||
fi
|
||||
|
|
|
@ -23,4 +23,4 @@ grep -qs "^$p=1$" "$HOME/.screen-profiles/status" || exit 0
|
|||
at=
|
||||
grep -qs "^whoami=1$" "$HOME/.screen-profiles/status" && at="@"
|
||||
|
||||
printf "\005{=b }%s%s\005{-}" "$at" $(hostname -s)
|
||||
printf "\005{= }%s%s\005{-}" "$at" $(hostname -s)
|
||||
|
|
|
@ -32,4 +32,4 @@ elif [ $mem -ge 1024 ]; then
|
|||
else
|
||||
mem="$mem""KB"
|
||||
fi
|
||||
printf "\005{=b gW}%s\005{-}%s" "$mem$comma" "$whitespace"
|
||||
printf "\005{= gW}%s\005{-}%s" "$mem$comma" "$whitespace"
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
p="mem-used"
|
||||
grep -qs "^$p=0$" "$HOME/.screen-profiles/status" && exit 0
|
||||
|
||||
free | awk '/buffers\/cache:/ {printf "\005{=b gW}%.0f%%\005{-} ", 100*$3/($3 + $4)}'
|
||||
free | awk '/buffers\/cache:/ {printf "\005{= gW}%.0f%%\005{-} ", 100*$3/($3 + $4)}'
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
p="processes"
|
||||
grep -qs "^$p=1$" "$HOME/.screen-profiles/status" || exit 0
|
||||
|
||||
printf "\005{=b }%s&\005{-} " $(ps -e | wc -l)
|
||||
printf "\005{= yk}%s&\005{-} " $(ps -e | wc -l)
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
p="whoami"
|
||||
grep -qs "^$p=1$" "$HOME/.screen-profiles/status" || exit 0
|
||||
|
||||
printf "\005{=b }%s\005{-}" $(whoami)
|
||||
printf "\005{= }%s\005{-}" $(whoami)
|
||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -6,14 +6,17 @@ screen-profiles (1.43) unreleased; urgency=low
|
|||
* bin/*, profiles/profile.skel: make all status scripts handle their
|
||||
own colors and trailing whitespace; this should help alleviate the
|
||||
16-color-change limitation on un-patched screens; it also simplifies
|
||||
the hardstatus string significantly
|
||||
the hardstatus string significantly; reserve bold text for status
|
||||
items that require an action (reboot, updates)
|
||||
* profiles/profile.skel: move reboot-required and updates-available to
|
||||
the early part of the status string, since these require action
|
||||
|
||||
[ Raphaël Pinson and Dustin Kirkland ]
|
||||
* bin/battery, bin/users, bin/uptime, profiles/common, screen-profiles:
|
||||
added new status items for battery state, number of users, and system
|
||||
uptime
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 03 Apr 2009 12:23:14 -0500
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 03 Apr 2009 12:42:53 -0500
|
||||
|
||||
screen-profiles (1.42-0ubuntu1) jaunty; urgency=low
|
||||
|
||||
|
|
2
po/es.po
2
po/es.po
|
@ -9,7 +9,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-04-03 12:25-0500\n"
|
||||
"POT-Creation-Date: 2009-04-03 12:41-0500\n"
|
||||
"PO-Revision-Date: 2008-12-22 01:01-0500\n"
|
||||
"Last-Translator: Nicolas Valcarcel <nvalcarcel@ubuntu.com>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
2
po/fr.po
2
po/fr.po
|
@ -9,7 +9,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-04-03 12:25-0500\n"
|
||||
"POT-Creation-Date: 2009-04-03 12:41-0500\n"
|
||||
"PO-Revision-Date: 2008-12-17 23:42+0100\n"
|
||||
"Last-Translator: Nicolas Barcet <nicolas.barcet@ubuntu.com>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
|
@ -9,7 +9,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-04-03 12:25-0500\n"
|
||||
"POT-Creation-Date: 2009-04-03 12:41-0500\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
|
@ -26,7 +26,7 @@ source /usr/share/screen-profiles/profiles/common
|
|||
caption always "%{kW}%?%-Lw%?%{bw}%n*%f %t%?(%u)%?%{kW}%?%+Lw%? %= %{= Wk}%110`%109`%111`"
|
||||
|
||||
# Status string, last line
|
||||
hardstatus string '%{= Wk}%99`%{= Wk} %100`%112`%= %115`%114`%116`%108`%113`%102`%101`%106`%104`%103`%105`%107`%Y-%m-%d %0c:%s'
|
||||
hardstatus string '%{= Wk}%99`%{= Wk} %100`%112`%102`%101`%= %115`%114`%108`%113`%116`%106`%104`%103`%105`%107`%Y-%m-%d %0c:%s'
|
||||
|
||||
# NOTE: Older version of screen have an arbitrary limit of only being able
|
||||
# to change colors 16 times in this 'hardstatus string'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue