From ebd1972f8bf2bc2655028859870dc620004fc339 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Mon, 8 Jun 2015 03:03:44 +0200 Subject: [PATCH] Replaced dzen2 with a modified version of lemonbar called popup --- scripts/bar.sh | 4 ++-- scripts/barinfo.sh | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/scripts/bar.sh b/scripts/bar.sh index 0a83ff8..4329b88 100755 --- a/scripts/bar.sh +++ b/scripts/bar.sh @@ -70,7 +70,7 @@ battery() { fi info="%{F$color_battery_good}$level%%{F-}" if [ "$level" -lt 20 ]; then - echo -n "%{F$color_battery_low}$level%%{F-}" + info="%{F$color_battery_low}$level%%{F-}" fi echo -n "%{A:I "battery 1061":}$icon $info%{A}" @@ -85,7 +85,7 @@ run_handler() { while read type param; do case $type in I) - pkill dzen2 + pkill popup ./barinfo.sh $param & ;; esac diff --git a/scripts/barinfo.sh b/scripts/barinfo.sh index 09bdde3..9ce7f4d 100755 --- a/scripts/barinfo.sh +++ b/scripts/barinfo.sh @@ -3,7 +3,7 @@ HEADER_COLOR="#A0A57E" header(){ - echo "^fg($HEADER_COLOR)$1^fg()" + echo "%{F$HEADER_COLOR}$1%{F-}" } ### Filesystem info @@ -47,7 +47,9 @@ if [ $# -lt 2 ]; then exit 1 fi -DATA=`$1` -LINES=$[ $(echo "$DATA" | wc -l)-1 ] +#DATA=`$1` +#LINES=$[ $(echo "$DATA" | wc -l)-1 ] -echo "$DATA" | dzen2 -p -e 'onstart=uncollapse;button1=exit' -x "$2" -y 20 -w 300 -l $LINES -ta left +$1 | popup -g 300x10+$2+20 -B "#88000000" + +#echo "$DATA" | dzen2 -p -e 'onstart=uncollapse;button1=exit' -x "$2" -y 20 -w 300 -l $LINES -ta left