From 183ddc0ea5c70df8a933cbe3bf83f0272f1c8855 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 10 Mar 2011 20:56:56 -0500 Subject: Don't put spaces before case matches --- examples/data/scripts/instance-select-wmii.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/data/scripts/instance-select-wmii.sh') diff --git a/examples/data/scripts/instance-select-wmii.sh b/examples/data/scripts/instance-select-wmii.sh index f0a7bef..565ff48 100755 --- a/examples/data/scripts/instance-select-wmii.sh +++ b/examples/data/scripts/instance-select-wmii.sh @@ -15,7 +15,7 @@ DMENU_SCHEME="wmii" . "$UZBL_UTIL_DIR/dmenu.sh" case "$1" in - "list" ) + "list") list="" # get window id's of uzbl clients. we could also get the label in one shot but it's pretty tricky for i in $( wmiir read /tag/sel/index | grep uzbl | cut -d ' ' -f2 ); do @@ -25,7 +25,7 @@ case "$1" in window="$( printf "$list\n" | $DMENU | cut -d ' ' -f1 )" wmiir xwrite /tag/sel/ctl "select client $window" ;; - "next" ) + "next") current="$( wmiir read /client/sel/ctl | head -n 1 )" # find the next uzbl window and focus it next="$( wmiir read /tag/sel/index | grep -A 10000 " $current " | grep -m 1 uzbl | cut -d ' ' -f2 )" @@ -33,7 +33,7 @@ case "$1" in wmiir xwrite /tag/sel/ctl "select client $next" fi ;; - "prev" ) + "prev") current="$( wmiir read /client/sel/ctl | head -n 1 )" prev="$( wmiir read /tag/sel/index | grep -B 10000 " $current " | tac | grep -m 1 uzbl | cut -d ' ' -f2 )" if [ -n "$prev" ]; then -- cgit v1.2.3