Killing of the barinfo moved into barinfo.sh

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

View file

@ -85,7 +85,7 @@ run_handler() {
while read type param; do
case $type in
I)
pkill popup
./barinfo.sh kill
./barinfo.sh $param &
;;
esac

View file

@ -42,14 +42,16 @@ clock() {
### RUN CODE
if [ "$1" == "kill" ]; then
pkill popup
exit 0
fi
if [ $# -lt 2 ]; then
echo "$0 <display> <x>"
echo "$0 <display> <x>: Run bar"
echo "$0 kill: Kill bar"
exit 1
fi
#DATA=`$1`
#LINES=$[ $(echo "$DATA" | wc -l)-1 ]
$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