Replaced dzen2 with a modified version of lemonbar called popup

This commit is contained in:
madmaurice 2015-06-08 03:03:44 +02:00
parent e4f7af2c47
commit ebd1972f8b
2 changed files with 8 additions and 6 deletions

View file

@ -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

View file

@ -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