light background for unspecified bg in uptime and users

bold bitrate in wifiquality
bold username and hostname
This commit is contained in:
Dustin Kirkland 2009-04-07 07:58:41 -07:00
commit 9fb7d3c006
8 changed files with 8 additions and 8 deletions

View file

@ -20,4 +20,4 @@
at=
grep -qs "^whoami=1$" "$HOME/.screen-profiles/status" && at="@"
printf "\005{= }%s%s\005{-}" "$at" $(hostname -s)
printf "\005{=b }%s%s\005{-}" "$at" $(hostname -s)

View file

@ -21,7 +21,7 @@
#
u=$(sed "s/\..*$//" /proc/uptime)
printf "\005{= b}"
printf "\005{= wb}"
if [ "$u" -gt 86400 ]; then
echo "$u" | awk '{printf "%dd%dh", $1 / 86400, ($1 % 86400)/3600 }'
elif [ "$u" -gt 3600 ]; then

View file

@ -20,4 +20,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
printf "\005{= r}%d#\005{-} " `who | wc -l`
printf "\005{= wr}%d#\005{-} " `who | wc -l`

View file

@ -17,4 +17,4 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
printf "\005{= }%s\005{-}" $(whoami)
printf "\005{=b }%s\005{-}" $(whoami)

View file

@ -21,4 +21,4 @@ interface=`route -n | tail -n 1 | sed "s/^.* //"`
bitrate=`iwconfig "$interface" 2>/dev/null | grep "Bit Rate=" | sed "s/^.*Bit Rate=//" | sed "s/ .*$//g"`
[ -z "$bitrate" ] && bitrate="0"
quality=`iwconfig "$interface" 2>/dev/null | grep "Link Quality=" | sed "s/^.*Link Quality=//" | sed "s/ .*$//g"`
echo "$bitrate" "$quality" | awk '{printf "\005{= Ck}%sMb/s,\005{-}\005{=b Ck}%.0f\005{-}\005{= Ck}%%\005{-} ", $1, $2}'
echo "$bitrate" "$quality" | awk '{printf "\005{=b Ck}%s\005{-}\005{= Ck}Mb/s,\005{-}\005{=b Ck}%.0f\005{-}\005{= Ck}%%\005{-} ", $1, $2}'

View file

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-04-07 07:50-0700\n"
"POT-Creation-Date: 2009-04-07 07:57-0700\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"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-04-07 07:50-0700\n"
"POT-Creation-Date: 2009-04-07 07:57-0700\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"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-04-07 07:50-0700\n"
"POT-Creation-Date: 2009-04-07 07:57-0700\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"