bin/apport, bin/battery, bin/cpu_freq, bin/disk, bin/ec2_cost,

bin/fan_speed, bin/hostname, bin/ip_address, bin/load_average,
bin/logo, bin/mail, bin/mem_available, bin/mem_used, bin/menu,
bin/network, bin/processes, bin/reboot_required, bin/release,
bin/temp_c, bin/temp_f, bin/updates_available, bin/uptime, bin/users,
bin/whoami, bin/wifi_quality statusrc: define a set of color variables,
such that it's easier to make these theme-able
This commit is contained in:
Dustin Kirkland 2009-11-23 22:22:06 -06:00
commit 1f171da847
43 changed files with 202 additions and 87 deletions

View file

@ -17,11 +17,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
if ls /var/crash/*.crash >/dev/null 2>&1; then if ls /var/crash/*.crash >/dev/null 2>&1; then
printf "\nTo file bugs on the existing crash reports, run:\n" printf "\nTo file bugs on the existing crash reports, run:\n"
which apport-cli >/dev/null || printf " sudo apt-get install apport\n" which apport-cli >/dev/null || printf " sudo apt-get install apport\n"
fi
for i in /var/crash/*.crash; do for i in /var/crash/*.crash; do
printf " apport-cli $i\n" printf " apport-cli $i\n"
done done
@ -34,4 +36,4 @@ if [ "$1" = "--detail" ]; then
fi fi
# Print {!} if a /var/crash/*.crash file exists # Print {!} if a /var/crash/*.crash file exists
ls /var/crash/*.crash >/dev/null 2>&1 && printf "\005{= yk}{!}\005{-} " ls /var/crash/*.crash >/dev/null 2>&1 && printf "$yk{!}$UNDO "

View file

@ -18,6 +18,8 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
search () { search () {
local str expr local str expr
@ -48,11 +50,14 @@ for bat in $(ls /proc/acpi/battery); do
percent=$( echo "$rem" "$full" | awk '{printf "%.0f", 100*$1/$2}') percent=$( echo "$rem" "$full" | awk '{printf "%.0f", 100*$1/$2}')
if [ "$percent" -lt 33 ]; then if [ "$percent" -lt 33 ]; then
per_color="Rk" color="$Rk"
bcolor="$bRk"
elif [ "$percent" -lt 67 ]; then elif [ "$percent" -lt 67 ]; then
per_color="Yk" color="$Yk"
bcolor="$bYk"
else else
per_color="Gk" color="$Gk"
bcolor="$bGk"
fi fi
percent="$percent%" percent="$percent%"
@ -72,6 +77,6 @@ for bat in $(ls /proc/acpi/battery); do
sign="$state" sign="$state"
;; ;;
esac esac
printf "\005{=b %s}%s\005{-}\005{= %s}|%s|\005{-} " "$per_color" "$percent" "$per_color" "$sign" printf "$bcolor%s$UNDO$color|%s|$UNDO " "$percent" "$sign"
break break
done done

View file

@ -17,13 +17,17 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
cat /proc/cpuinfo cat /proc/cpuinfo
exit 0 exit 0
fi fi
if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" ]; then if [ -r "/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" ]; then
awk '{ printf "\005{=b cW}%.1f\005{-}\005{= cW}GHz\005{-} ", $1 / 1000000 }' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq freq=$(awk '{ printf "%.1f", $1 / 1000000 }' /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq)
else else
egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{ printf "\005{=b cW}%.1f\005{-}\005{= cW}GHz\005{-} ", $2 / 1000 }' freq=$(egrep -i -m 1 "^cpu MHz|^clock|^bogomips" /proc/cpuinfo | awk -F"[:.]" '{ printf "%.1f", $2 / 1000 }')
fi fi
printf "$bcW%s$UNDO$cW%s$UNDO " "$freq" "GHz"

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
df -h -P df -h -P
@ -28,8 +29,9 @@ fi
MP="/" MP="/"
[ -n "$MONITORED_DISK" ] && MP="$MONITORED_DISK" [ -n "$MONITORED_DISK" ] && MP="$MONITORED_DISK"
case $MP in case $MP in
/dev/*) MP=`grep "$MP" /proc/mounts | awk '{print $2}'` ;; /dev/*) MP=$(grep "$MP" /proc/mounts | awk '{print $2}') ;;
esac esac
disk=`df -h -P "$MP" 2>/dev/null || df -h "$MP"` disk=$(df -h -P "$MP" 2>/dev/null || df -h "$MP")
echo "$disk" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "\005{=b MW}%d\005{-}\005{= MW}%sB,\005{-}\005{=b MW}%d\005{-}\005{= MW}%%\005{-} ", $1, $2, $3}' disk=$(echo "$disk" | tail -n 1 | awk '{print $2 " " $5}' | sed "s/\([^0-9\. ]\)/ \1/g" | awk '{printf "%d%sB,%d%", $1, $2, $3}')
printf "$MW%s$UNDO " "$disk"

View file

@ -19,6 +19,7 @@
DETAIL=0 DETAIL=0
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
for arg in $@; do for arg in $@; do
case "$arg" in case "$arg" in
@ -82,4 +83,4 @@ if [ "$DETAIL" = "1" ]; then
exit 0 exit 0
fi fi
printf "\005{= KG}~\$\005{-}\005{=b KG}%s\005{-} " $total_cost printf "$KG~\$$UNDO$bKG%s$UNDO " $total_cost

View file

@ -18,6 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
DIR="/sys/class/hwmon" DIR="/sys/class/hwmon"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
for i in `ls $DIR 2>/dev/null`; do for i in `ls $DIR 2>/dev/null`; do
@ -30,7 +33,7 @@ fi
for i in $(find $DIR/*/*/ -type f -name "fan1_input"); do for i in $(find $DIR/*/*/ -type f -name "fan1_input"); do
speed=$(cat "$i") speed=$(cat "$i")
if [ "$speed" -gt 0 ]; then if [ "$speed" -gt 0 ]; then
printf "\005{=b }%s\005{-}\005{= }rpm\005{-} " "$speed" printf "$BOLD1%s$UNDO$NONE%s$UNDO " "$speed" "rpm"
exit 0 exit 0
fi fi
done done

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
hostname -f hostname -f
@ -28,4 +29,4 @@ fi
. "$HOME/.$PKG/status" . "$HOME/.$PKG/status"
[ "$whoami" = "1" ] && at="@" [ "$whoami" = "1" ] && at="@"
printf "\005{+b }%s%s\005{-}" "$at" $(hostname -s 2>/dev/null || hostname) printf "$BOLD2%s%s$UNDO" "$at" $(hostname -s 2>/dev/null || hostname)

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
/sbin/ifconfig | grep "inet addr" | sed -e 's/^\s*//' -e 's/\s*$//' /sbin/ifconfig | grep "inet addr" | sed -e 's/^\s*//' -e 's/\s*$//'
@ -38,4 +39,4 @@ fi
ipaddr=`/sbin/ifconfig "$interface" | grep "inet addr:" | sed -e "s/^.*inet addr://" -e "s/ .*$//"` ipaddr=`/sbin/ifconfig "$interface" | grep "inet addr:" | sed -e "s/^.*inet addr://" -e "s/ .*$//"`
printf "%s\005{+b }%s\005{-}" "$space" "$ipaddr" printf "%s$BOLD2%s$UNDO" "$space" "$ipaddr"

View file

@ -17,9 +17,12 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
cat /proc/loadavg cat /proc/loadavg
exit 0 exit 0
fi fi
printf "\005{= Yk}%s\005{-} " $(awk '{print $1}' /proc/loadavg) printf "$Yk%s$UNDO " $(awk '{print $1}' /proc/loadavg)

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
MARKUP="false" MARKUP="false"
@ -30,63 +31,63 @@ print_logo() {
distro=`echo "$1" | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' ` distro=`echo "$1" | sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' `
case "$distro" in case "$distro" in
*ubuntu*) *ubuntu*)
$MARKUP && printf "\005{=b kr}\\\\\005{= ky}o\005{=b kY}/" || printf "\\o/" $MARKUP && printf "$bkr%s$ky%s$bkY%s" "\\" "o" "/" || printf "\\o/"
;; ;;
*altlinux*) *altlinux*)
logo="alt" logo="alt"
$MARKUP && printf "\005{= Yk}$logo" || printf "$logo" $MARKUP && printf "$Yk%s" "$logo" || printf "$logo"
;; ;;
*arch*) *arch*)
logo=" A " logo=" A "
$MARKUP && printf "\005{=b wb}$logo" || printf "$logo" $MARKUP && printf "$bwb%s" "$logo" || printf "$logo"
;; ;;
*centos*) *centos*)
logo="****" logo="****"
$MARKUP && printf "\005{= gw}*\005{= mw}*\005{= yw}*\005{= bw}*\005{=b Wk}" || printf "$logo" $MARKUP && printf "$gw*$mw*$yw*$bw*" || printf "$logo"
;; ;;
*debian*) *debian*)
logo=" @ " logo=" @ "
$MARKUP && printf "\005{= wr}$logo" || printf "$logo" $MARKUP && printf "$wr%s" "$logo" || printf "$logo"
;; ;;
*fedora*) *fedora*)
logo=" f " logo=" f "
$MARKUP && printf "\005{=b bw}$logo" || printf "$logo" $MARKUP && printf "$bw%s" "$logo" || printf "$logo"
;; ;;
*foresight*) *foresight*)
logo="<@>" logo="<@>"
$MARKUP && printf "\005{=b Wg}$logo" || printf "$logo" $MARKUP && printf "$bWg%s" "$logo" || printf "$logo"
;; ;;
*gentoo*) *gentoo*)
logo=" > " logo=" > "
$MARKUP && printf "\005{=b cw}$logo" || printf "$logo" $MARKUP && printf "$bcw%s" "$logo" || printf "$logo"
;; ;;
*mandriva*) *mandriva*)
logo=" (* " logo=" (* "
$MARKUP && printf "\005{=b kc} (\005{=b ky}* " || printf "$logo" $MARKUP && printf "$bkc ($bky* " || printf "$logo"
;; ;;
*redhat*) *redhat*)
logo=" RH " logo=" RH "
$MARKUP && printf "\005{= Rk}$logo" || printf "$logo" $MARKUP && printf "$Rk%s" "$logo" || printf "$logo"
;; ;;
*rockhopper*) *rockhopper*)
logo="palm" logo="palm"
$MARKUP && printf "\005{=b YW}$logo" || printf "$logo" $MARKUP && printf "$kw%s" "$logo" || printf "$logo"
;; ;;
*slackware*) *slackware*)
logo=",S " logo=".S "
$MARKUP && printf "\005{=u Bk}$logo" || printf "$logo" $MARKUP && printf "$uBk%s" "$logo" || printf "$logo"
;; ;;
*suse*) *suse*)
logo="SuSE" logo="SuSE"
$MARKUP && printf "\005{= Wg}$logo" || printf "$logo" $MARKUP && printf "$Wg%s" "$logo" || printf "$logo"
;; ;;
*xandros*) *xandros*)
logo=" X " logo=" X "
$MARKUP && printf "\005{= Wr}$logo" || printf "$logo" $MARKUP && printf "$Wr%s" "$logo" || printf "$logo"
;; ;;
*) *)
logo="|B|" logo="[B]"
$MARKUP && printf "\005{=b kW}$logo" || printf " $logo " $MARKUP && printf "$bkW%s" "$logo" || printf " $logo "
;; ;;
esac esac
} }

View file

@ -17,10 +17,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
mailfile="/var/spool/mail/$USER" mailfile="/var/spool/mail/$USER"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
ls -alF "$mailfile" 2>&1 ls -alF "$mailfile" 2>&1
exit 0 exit 0
fi fi
[ -s "$mailfile" ] && printf "\005{= wk}[\005{-}\005{=b wk}M\005{-}\005{= wk}]\005{-} " || exit 0 [ -s "$mailfile" ] && printf "$wk[M]$UNDO " || exit 0

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
free free
@ -39,4 +40,4 @@ else
mem="$mem" mem="$mem"
unit="KB" unit="KB"
fi fi
printf "\005{=b gW}%s\005{-}\005{= gW}$unit%s\005{-}%s" "$mem" "$comma" "$whitespace" printf "$bgW%s$UNDO$gW$unit%s$UNDO%s" "$mem" "$comma" "$whitespace"

View file

@ -17,9 +17,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
cat /proc/meminfo cat /proc/meminfo
exit 0 exit 0
fi fi
free | awk '/buffers\/cache:/ {printf "\005{=b gW}%.0f\005{-}\005{= gW}%%\005{-} ", 100*$3/($3 + $4)}' f=$(free | awk '/buffers\/cache:/ {printf "%.0f", 100*$3/($3 + $4)}')
printf "$bgW%s$UNDO$gW%%$UNDO " "$f"

View file

@ -19,6 +19,7 @@
[ "$1" = "--detail" ] && exit 0 [ "$1" = "--detail" ] && exit 0
PKG="byobu" PKG="byobu"
[ -r "$HOME/.$PKG/keybindings"] && bindings="$HOME/.$PKG/keybindings" || bindings="$HOME/.screenrc" [ -r "$HOME/.$PKG/keybindings"] && bindings="$HOME/.$PKG/keybindings" || bindings="$HOME/.screenrc"
if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null; then if grep -qs "^source.*screen-escape-keys$" $bindings 2>/dev/null; then
@ -30,4 +31,4 @@ else
key="F9" key="F9"
fi fi
printf " \005{= kw}%s:<\005{-}\005{=b kw}$key\005{= kw}>" `gettext "Menu"` printf " $kw%s:<$UNDO$bkw$key$kw>" `gettext "Menu"`

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
# Allow interface overrides in $HOME/.$PKG/status # Allow interface overrides in $HOME/.$PKG/status
if [ -n "$MONITORED_NETWORK" ]; then if [ -n "$MONITORED_NETWORK" ]; then
@ -57,5 +58,5 @@ for i in up down; do
unit="MB/s" unit="MB/s"
fi fi
fi fi
printf "$symbol\005{=b mw}$rate\005{-}\005{= mw}$unit\005{-} " printf "$symbol$bmw$rate$UNDO$mw$unit$UNDO "
done done

View file

@ -17,9 +17,12 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
ps -ejH ps -ejH
exit 0 exit 0
fi fi
printf "\005{=b yw}%s\005{-}\005{= yw}&\005{-} " $(ls -d /proc/[0-9]* 2>/dev/null| wc -l) printf "$byw%s$UNDO$yw&$UNDO " $(ls -d /proc/[0-9]* 2>/dev/null| wc -l)

View file

@ -18,6 +18,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
reboot="/var/run/reboot-required" reboot="/var/run/reboot-required"
[ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$HOME/.byobu" [ -d "/var/run/screen/S-$USER" ] && DIR="/var/run/screen/S-$USER" || DIR="$HOME/.byobu"
reload="$DIR/$PKG.reload-required" reload="$DIR/$PKG.reload-required"
@ -29,7 +31,7 @@ case "$1" in
[ -e "$reboot" ] && printf "Yes" || printf "No" [ -e "$reboot" ] && printf "Yes" || printf "No"
;; ;;
*) *)
[ -e "$reboot" ] && printf "\005{= bW}(\005{-}\005{=b bW}R\005{-}\005{= bW})\005{-} " [ -e "$reboot" ] && printf "$bW($UNDO$bbW%s$UNDO$bW)$UNDO " "R"
[ -e "$reload" ] && printf "\005{= bW}<\005{-}\005{=b bW}F5\005{-}\005{= bW}>\005{-} " [ -e "$reload" ] && printf "$bW<$UNDO$bbW%s$UNDO$bW>$UNDO " "F5"
;; ;;
esac esac

View file

@ -18,6 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu" PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
cat /etc/issue cat /etc/issue
@ -54,4 +55,4 @@ else
DISTRO="Byobu" DISTRO="Byobu"
fi fi
printf "\005{+b }%s\005{-} " "$DISTRO" printf "$BOLD2%s$UNDO " "$DISTRO"

View file

@ -18,6 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
DIR="/proc/acpi/thermal_zone" DIR="/proc/acpi/thermal_zone"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
for i in `ls $DIR 2>/dev/null`; do for i in `ls $DIR 2>/dev/null`; do
@ -29,6 +32,6 @@ fi
for i in $MONITORED_TEMP `ls $DIR/*/temperature 2>/dev/null`; do for i in $MONITORED_TEMP `ls $DIR/*/temperature 2>/dev/null`; do
t=$(sed -e "s/^[^0-9]\+//" -e "s/\s.*$//" "$i") t=$(sed -e "s/^[^0-9]\+//" -e "s/\s.*$//" "$i")
printf "\005{=b kY}%s\005{-}\005{= kY}\260C\005{-} " "$t" printf "$bkY%s$UNDO$kY\260C$UNDO " "$t"
break break
done done

View file

@ -18,6 +18,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
DIR="/proc/acpi/thermal_zone" DIR="/proc/acpi/thermal_zone"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
exit 0 exit 0
@ -25,6 +28,6 @@ fi
for i in `ls $DIR/*/temperature 2>/dev/null`; do for i in `ls $DIR/*/temperature 2>/dev/null`; do
t=$(sed -e "s/^[^0-9]\+//" -e "s/\s.*$//" "$i" | awk '{printf "%.0f", $1 *9/5 + 32}') t=$(sed -e "s/^[^0-9]\+//" -e "s/\s.*$//" "$i" | awk '{printf "%.0f", $1 *9/5 + 32}')
printf "\005{=b kY}%s\005{-}\005{= kY}\260F\005{-} " "$t" printf "$bkY%s$UNDO$kY\260F$UNDO " "$t"
break break
done done

View file

@ -38,13 +38,13 @@ print_updates() {
s=$2 s=$2
if [ -n "$u" ]; then if [ -n "$u" ]; then
if [ "$u" -gt 0 ]; then if [ "$u" -gt 0 ]; then
printf "$brW%d$XXX$rW!" "$u" printf "$brW%d$UNDO$rW!" "$u"
if [ -n "$s" ]; then if [ -n "$s" ]; then
if [ "$s" -gt 0 ]; then if [ "$s" -gt 0 ]; then
printf "!" printf "!"
fi fi
fi fi
printf "$XXX " printf "$UNDO "
fi fi
fi fi
} }

View file

@ -20,13 +20,16 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
uptime uptime
exit 0 exit 0
fi fi
u=$(sed "s/\..*$//" /proc/uptime) u=$(sed "s/\..*$//" /proc/uptime)
printf "\005{= wb}" printf "$wb"
if [ "$u" -gt 86400 ]; then if [ "$u" -gt 86400 ]; then
echo "$u" | awk '{printf "%dd%dh", $1 / 86400, ($1 % 86400)/3600 }' echo "$u" | awk '{printf "%dd%dh", $1 / 86400, ($1 % 86400)/3600 }'
elif [ "$u" -gt 3600 ]; then elif [ "$u" -gt 3600 ]; then
@ -36,4 +39,4 @@ elif [ "$u" -gt 60 ]; then
else else
printf "%ds" "$u" printf "%ds" "$u"
fi fi
printf "\005{-} " printf "$UNDO "

View file

@ -20,6 +20,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
ps -ef | grep "sshd;.*@" | grep -v grep ps -ef | grep "sshd;.*@" | grep -v grep
exit 0 exit 0
@ -28,4 +31,4 @@ fi
# Note: we'd like to use pgrep -c, however, this isn't available in # Note: we'd like to use pgrep -c, however, this isn't available in
# busybox and some distro's pgrep (and it doesn't exit non-zero). # busybox and some distro's pgrep (and it doesn't exit non-zero).
count=`pgrep -f "sshd:.*@" | wc -l` || exit 0 count=`pgrep -f "sshd:.*@" | wc -l` || exit 0
[ $count -gt 0 ] && printf "\005{=b wr}%d\005{-}\005{= wr}#\005{-} " $count [ $count -gt 0 ] && printf "$bwr%d$UNDO$wr#$UNDO " $count

View file

@ -22,4 +22,4 @@ if [ "$1" = "--detail" ]; then
exit 0 exit 0
fi fi
printf "\005{+b }%s\005{-}" $(whoami) printf "$BOLD2%s$UNDO" $(whoami)

View file

@ -17,6 +17,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
PKG="byobu"
[ -r "/etc/$PKG/statusrc" ] && . "/etc/$PKG/statusrc"
if [ "$1" = "--detail" ]; then if [ "$1" = "--detail" ]; then
/sbin/iwconfig 2>/dev/null /sbin/iwconfig 2>/dev/null
exit 0 exit 0
@ -25,5 +28,5 @@ fi
iwconfig=`/sbin/iwconfig 2>/dev/null` iwconfig=`/sbin/iwconfig 2>/dev/null`
bitrate=`echo "$iwconfig" | grep "Bit Rate." | sed -e "s/^.*Bit Rate.//" -e "s/ .*$//g"` bitrate=`echo "$iwconfig" | grep "Bit Rate." | sed -e "s/^.*Bit Rate.//" -e "s/ .*$//g"`
[ -z "$bitrate" ] && bitrate="0" [ -z "$bitrate" ] && bitrate="0"
quality=`echo "$iwconfig" | grep "Link Quality." | sed -e "s/^.*Link Quality.//" -e "s/ .*$//g"` quality=`echo "$iwconfig" | grep "Link Quality." | sed -e "s/^.*Link Quality.//" -e "s/ .*$//g" | awk -F/ '{printf "%.0f", 100*$1/$2}'`
echo | awk "{printf \"\005{=b Ck}%s\005{-}\005{= Ck}Mb/s,\005{-}\005{=b Ck}%d\005{-}\005{= Ck}%%\005{-} \", $bitrate, 100*$quality}" printf "$bCk%s$UNDO$Ck%s,$UNDO$bCk%s$UNDO$Ck%%$UNDO " "$bitrate" "Mbps" "$quality"

7
debian/changelog vendored
View file

@ -8,6 +8,13 @@ byobu (2.40) unreleased; urgency=low
* bin/apport: improve the formatting of the detailed output to * bin/apport: improve the formatting of the detailed output to
suggest installing apport if necessary suggest installing apport if necessary
* debian/control: suggest apport * debian/control: suggest apport
* bin/apport, bin/battery, bin/cpu_freq, bin/disk, bin/ec2_cost,
bin/fan_speed, bin/hostname, bin/ip_address, bin/load_average,
bin/logo, bin/mail, bin/mem_available, bin/mem_used, bin/menu,
bin/network, bin/processes, bin/reboot_required, bin/release,
bin/temp_c, bin/temp_f, bin/updates_available, bin/uptime, bin/users,
bin/whoami, bin/wifi_quality statusrc: define a set of color variables,
such that it's easier to make these theme-able
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: screen-profiles\n" "Project-Id-Version: screen-profiles\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-10-08 15:00+0000\n" "PO-Revision-Date: 2009-10-08 15:00+0000\n"
"Last-Translator: Dragomir Minkovski <Unknown>\n" "Last-Translator: Dragomir Minkovski <Unknown>\n"
"Language-Team: Bulgarian <bg@li.org>\n" "Language-Team: Bulgarian <bg@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-10-09 06:48+0000\n" "X-Launchpad-Export-Date: 2009-10-09 06:48+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Меню" msgstr "Меню"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: screen-profiles\n" "Project-Id-Version: screen-profiles\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 07:07+0000\n" "PO-Revision-Date: 2009-09-16 07:07+0000\n"
"Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n" "Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n"
"Language-Team: German <de@li.org>\n" "Language-Team: German <de@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: screen-profiles\n" "Project-Id-Version: screen-profiles\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 07:18+0000\n" "PO-Revision-Date: 2009-09-16 07:18+0000\n"
"Last-Translator: Dave Walker <davewalker@ubuntu.com>\n" "Last-Translator: Dave Walker <davewalker@ubuntu.com>\n"
"Language-Team: English (United Kingdom) <en_GB@li.org>\n" "Language-Team: English (United Kingdom) <en_GB@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menu" msgstr "Menu"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 1.0\n" "Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-10-03 23:47+0000\n" "PO-Revision-Date: 2009-10-03 23:47+0000\n"
"Last-Translator: oscrp <mazonovo@gmail.com>\n" "Last-Translator: oscrp <mazonovo@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-10-04 06:50+0000\n" "X-Launchpad-Export-Date: 2009-10-04 06:50+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menú" msgstr "Menú"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 1.0\n" "Project-Id-Version: 1.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 07:25+0000\n" "PO-Revision-Date: 2009-09-16 07:25+0000\n"
"Last-Translator: Pierre Slamich <pierre.slamich@gmail.com>\n" "Last-Translator: Pierre Slamich <pierre.slamich@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menu" msgstr "Menu"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-25 09:06+0000\n" "PO-Revision-Date: 2009-09-25 09:06+0000\n"
"Last-Translator: Muszela Balázs <bazsi86@gmail.com>\n" "Last-Translator: Muszela Balázs <bazsi86@gmail.com>\n"
"Language-Team: Hungarian <hu@li.org>\n" "Language-Team: Hungarian <hu@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-30 06:45+0000\n" "X-Launchpad-Export-Date: 2009-09-30 06:45+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menü" msgstr "Menü"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-08-17 21:09+0000\n" "PO-Revision-Date: 2009-08-17 21:09+0000\n"
"Last-Translator: Andika Triwidada <andika@gmail.com>\n" "Last-Translator: Andika Triwidada <andika@gmail.com>\n"
"Language-Team: Indonesian <id@li.org>\n" "Language-Team: Indonesian <id@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menu" msgstr "Menu"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 07:42+0000\n" "PO-Revision-Date: 2009-09-16 07:42+0000\n"
"Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n" "Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n"
"Language-Team: Italian <it@li.org>\n" "Language-Team: Italian <it@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menu" msgstr "Menu"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: screen-profiles\n" "Project-Id-Version: screen-profiles\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 07:43+0000\n" "PO-Revision-Date: 2009-09-16 07:43+0000\n"
"Last-Translator: Fumihito YOSHIDA <hito@kugutsu.org>\n" "Last-Translator: Fumihito YOSHIDA <hito@kugutsu.org>\n"
"Language-Team: Japanese <ja@li.org>\n" "Language-Team: Japanese <ja@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: screen-profiles\n" "Project-Id-Version: screen-profiles\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 07:46+0000\n" "PO-Revision-Date: 2009-09-16 07:46+0000\n"
"Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n" "Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n"
"Language-Team: Latin <la@li.org>\n" "Language-Team: Latin <la@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-21 10:12+0000\n" "PO-Revision-Date: 2009-09-21 10:12+0000\n"
"Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n" "Last-Translator: Dustin Kirkland <dustin.kirkland@gmail.com>\n"
"Language-Team: Dutch <nl@li.org>\n" "Language-Team: Dutch <nl@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "" msgstr ""

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-09-16 10:59+0000\n" "PO-Revision-Date: 2009-09-16 10:59+0000\n"
"Last-Translator: Bruno Vitorino <Unknown>\n" "Last-Translator: Bruno Vitorino <Unknown>\n"
"Language-Team: Portuguese <pt@li.org>\n" "Language-Team: Portuguese <pt@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menu" msgstr "Menu"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-10-06 12:33+0000\n" "PO-Revision-Date: 2009-10-06 12:33+0000\n"
"Last-Translator: slowtux <slowtux@gmail.com>\n" "Last-Translator: slowtux <slowtux@gmail.com>\n"
"Language-Team: Brazilian Portuguese <pt_BR@li.org>\n" "Language-Team: Brazilian Portuguese <pt_BR@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-10-07 06:50+0000\n" "X-Launchpad-Export-Date: 2009-10-07 06:50+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Menu" msgstr "Menu"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: ru\n" "Project-Id-Version: ru\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-07-24 14:46+0000\n" "PO-Revision-Date: 2009-07-24 14:46+0000\n"
"Last-Translator: byobu <Unknown>\n" "Last-Translator: byobu <Unknown>\n"
"Language-Team: \n" "Language-Team: \n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n" "X-Launchpad-Export-Date: 2009-09-23 11:08+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Меню" msgstr "Меню"

View file

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: byobu\n" "Project-Id-Version: byobu\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-11-23 19:35-0600\n" "POT-Creation-Date: 2009-11-23 20:48-0600\n"
"PO-Revision-Date: 2009-10-05 12:56+0000\n" "PO-Revision-Date: 2009-10-05 12:56+0000\n"
"Last-Translator: Carl-Uno Olsson <Unknown>\n" "Last-Translator: Carl-Uno Olsson <Unknown>\n"
"Language-Team: Swedish <sv@li.org>\n" "Language-Team: Swedish <sv@li.org>\n"
@ -17,7 +17,7 @@ msgstr ""
"X-Launchpad-Export-Date: 2009-10-06 06:46+0000\n" "X-Launchpad-Export-Date: 2009-10-06 06:46+0000\n"
"X-Generator: Launchpad (build Unknown)\n" "X-Generator: Launchpad (build Unknown)\n"
#: bin/menu:33 byobu-config:129 byobu-config:401 byobu-config:409 #: bin/menu:34 byobu-config:129 byobu-config:401 byobu-config:409
msgid "Menu" msgid "Menu"
msgstr "Meny" msgstr "Meny"

View file

@ -49,6 +49,60 @@ whoami=0
wifi_quality=0 wifi_quality=0
# Define colors # Define colors
XXX="\005{-}" ESC="\005"
brW="\005{=b rW}" UNDO="$ESC{-}"
rW="\005{= rW}" BOLD1="$ESC{=b }"
BOLD2="$ESC{+b }"
NONE="$ESC{= }"
bw="$ESC{= bw}"
bW="$ESC{= bW}"
cW="$ESC{= cW}"
gw="$ESC{= gw}"
gW="$ESC{= gW}"
mw="$ESC{= mw}"
rW="$ESC{= rW}"
kw="$ESC{= kw}"
ky="$ESC{= ky}"
kY="$ESC{= kY}"
wb="$ESC{= wb}"
wk="$ESC{= wk}"
wr="$ESC{= wr}"
yk="$ESC{= yk}"
yw="$ESC{= yw}"
Ck="$ESC{= Ck}"
Gk="$ESC{= Gk}"
KG="$ESC{= KG}"
MW="$ESC{= MW}"
Rk="$ESC{= Rk}"
Wg="$ESC{= Wg}"
Wr="$ESC{= Wr}"
Yk="$ESC{= Yk}"
bbW="$ESC{=b bW}"
bcw="$ESC{=b cw}"
bcW="$ESC{=b cW}"
bgW="$ESC{=b gW}"
bky="$ESC{=b ky}"
bkY="$ESC{=b kY}"
bkc="$ESC{=b kc}"
bkr="$ESC{=b kr}"
bkY="$ESC{=b kY}"
bkw="$ESC{=b kw}"
bkW="$ESC{=b kW}"
bmw="$ESC{=b mw}"
brW="$ESC{=b rW}"
bwb="$ESC{=b wb}"
bwr="$ESC{=b wr}"
byw="$ESC{=b yw}"
bCk="$ESC{=b Ck}"
bGk="$ESC{=b Gk}"
bKG="$ESC{=b KG}"
bMW="$ESC{=b MW}"
bRk="$ESC{=b Rk}"
bWg="$ESC{=b Wg}"
bWk="$ESC{=b Wk}"
bYk="$ESC{=b Yk}"
uBk="$ESC{=u Bk}"