From 3540e9adce75d0a59f1e1b21dba154fd1a117fbe Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Mon, 8 Jun 2015 03:09:30 +0200 Subject: [PATCH] Killing of the barinfo moved into barinfo.sh --- scripts/bar.sh | 2 +- scripts/barinfo.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) 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