diff --git a/scripts/bar.sh b/scripts/bar.sh index 4329b88..c165430 100755 --- a/scripts/bar.sh +++ b/scripts/bar.sh @@ -85,7 +85,7 @@ run_handler() { while read type param; do case $type in I) - pkill popup + ./barinfo.sh kill ./barinfo.sh $param & ;; esac diff --git a/scripts/barinfo.sh b/scripts/barinfo.sh index 9ce7f4d..469e98d 100755 --- a/scripts/barinfo.sh +++ b/scripts/barinfo.sh @@ -42,14 +42,16 @@ clock() { ### RUN CODE +if [ "$1" == "kill" ]; then + pkill popup + exit 0 +fi + if [ $# -lt 2 ]; then - echo "$0 " + echo "$0 : 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