From 9b4346fd58453ec60329f8ec0c96ecf96c1a7705 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 20 Oct 2011 12:17:11 -0500 Subject: [PATCH] * usr/lib/byobu/.constants, usr/lib/byobu/updates_available: - use unicode double-bang for security updates where possible --- debian/changelog | 2 ++ usr/lib/byobu/.constants | 4 ++++ usr/lib/byobu/updates_available | 10 +++++----- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 520e8e5e..6f1229b3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ byobu (4.42) unreleased; urgency=low - add reboot symbol * usr/bin/byobu-launch: - enhance shell history syncronization across shells + * usr/lib/byobu/.constants, usr/lib/byobu/updates_available: + - use unicode double-bang for security updates where possible -- Dustin Kirkland Fri, 14 Oct 2011 14:53:51 -0500 diff --git a/usr/lib/byobu/.constants b/usr/lib/byobu/.constants index 4a756592..f7014ff0 100755 --- a/usr/lib/byobu/.constants +++ b/usr/lib/byobu/.constants @@ -32,6 +32,8 @@ if [ "$UTF8" = "1" ] || [ "$BYOBU_BACKEND" = "tmux" ]; then ICON_TRASH="♸" ICON_WIFI="⚚" ICON_REBOOT="⟳" + ICON_UPDATES="!" + ICON_SECURITY="‼" else ICON_C="C" ICON_F="F" @@ -43,6 +45,8 @@ else ICON_TRASH="T" ICON_WIFI= ICON_REBOOT="(R)" + ICON_UPDATES="!" + ICON_SECURITY="!!" fi PCT="%%" diff --git a/usr/lib/byobu/updates_available b/usr/lib/byobu/updates_available index ab8d4672..7b5cc42f 100755 --- a/usr/lib/byobu/updates_available +++ b/usr/lib/byobu/updates_available @@ -24,11 +24,11 @@ ___print_updates() { read u s < "$1" if [ -n "$u" ]; then if [ "$u" -gt 0 ]; then - color b r W; printf "%d" "$u"; color -; color r W; printf "!" - if [ -n "$s" ]; then - if [ "$s" -gt 0 ]; then - printf "!" - fi + color b r W; printf "%d" "$u"; color -; color r W + if [ -n "$s" ] && [ "$s" -gt 0 ]; then + printf "$ICON_SECURITY" + else + printf "$ICON_UPDATES" fi color -- fi