From 082b3d3b6ab5d49112f97242749023a4372afe2b Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 29 Dec 2009 09:00:00 -0600 Subject: [PATCH] * profiles/common: monitor windows, showing "@" next to the window name, but don't print an "Activity" message * byobu-select-profile: improve color selection with more informative color names and support screen default background/foreground colors, LP: #500669 --- byobu-select-profile | 73 ++++++++++++++++++++++++++------------------ debian/changelog | 7 ++++- profiles/common | 4 +++ 3 files changed, 54 insertions(+), 30 deletions(-) diff --git a/byobu-select-profile b/byobu-select-profile index 39e8354d..09c6331a 100755 --- a/byobu-select-profile +++ b/byobu-select-profile @@ -26,7 +26,25 @@ PKG="byobu" TEXTDOMAIN="$PKG" -COLORS="black blue cyan green purple red grey yellow" +COLORS="default_light \ + default_dark \ + white \ + black \ + grey \ + dark_grey \ + light_grey \ + blue \ + light_blue \ + cyan \ + light_cyan \ + green \ + light_green \ + purple \ + light_purple \ + red \ + light_red \ + yellow \ + brown" usage () { cat </dev/null && echo -n " " || echo -n " " - echo "$i. $x (light)" - i=$(expr $i + 1) done echo if [ -z "$selected" -a -n "$simple" ]; then @@ -107,11 +121,7 @@ prompt() { selected=`head -n1` else i=1 - for x in $COLORS; do - color="dark_$x" - [ "$i" = "$selected" ] && break - i=$(expr $i + 1) - color="light_$x" + for color in $COLORS; do [ "$i" = "$selected" ] && break i=$(expr $i + 1) done @@ -128,24 +138,29 @@ getletter() { echo "$1" return fi - desc=$(echo "$1" | awk -F"_" '{print $1}') - color=$(echo "$1" | awk -F"_" '{print $2}') -COLORS="black blue cyan green purple red grey yellow" - + color="$1" case $color in - black) letter="k";; - blue) letter="b";; - cyan) letter="c";; - green) letter="g";; - purple) letter="m";; - red) letter="r";; - grey) letter="w";; - yellow) letter="y";; - *) letter="w";; + default_light) letter="d";; + default_dark) letter="D";; + black) letter="k";; + dark_grey) letter="K";; + blue) letter="b";; + light_blue) letter="B";; + cyan) letter="c";; + light_cyan) letter="C";; + green) letter="g";; + light_green) letter="G";; + purple) letter="m";; + light_purple) letter="M";; + red) letter="r";; + light_red) letter="R";; + grey) letter="w";; + light_grey) letter="W";; + white) letter="w";; + yellow) letter="Y";; + brown) letter="y";; + *) letter="d";; esac - if [ "$desc" = "light" ]; then - letter=$(echo "$letter" | tr "[:lower:]" "[:upper:]") - fi echo "$letter" } diff --git a/debian/changelog b/debian/changelog index b2b992a6..e1a57395 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,11 @@ -byobu (2.43) unreleased; urgency=low +byobu (2.43-0ubuntu1) lucid; urgency=low * byobu.1: improve putty bug documentation + * profiles/common: monitor windows, showing "@" next to the window name, + but don't print an "Activity" message + * byobu-select-profile: improve color selection with more informative + color names and support screen default background/foreground colors, + LP: #500669 -- Dustin Kirkland Wed, 23 Dec 2009 14:01:55 -0600 diff --git a/profiles/common b/profiles/common index 9cc310ca..39ed6c2e 100644 --- a/profiles/common +++ b/profiles/common @@ -84,6 +84,10 @@ defbce "on" # Log 10000 lines defscrollback 10000 +# Monitor windows +defmonitor on +activity "" + # Maintain SSH_AUTH_SOCK link setenv SSH_AUTH_SOCK /var/run/screen/S-$USER/byobu.ssh-agent