From 03e2f59ec0959ba4dec30a903ac060d74e5fdac5 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 10 Mar 2011 20:48:54 -0500 Subject: Add padding inside of braces --- examples/data/scripts/instance-select-wmii.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 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 57ef0cb..f0a7bef 100755 --- a/examples/data/scripts/instance-select-wmii.sh +++ b/examples/data/scripts/instance-select-wmii.sh @@ -18,24 +18,24 @@ case "$1" in "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 - label="$(wmiir read /client/$i/label)" + for i in $( wmiir read /tag/sel/index | grep uzbl | cut -d ' ' -f2 ); do + label="$( wmiir read /client/$i/label )" list="$list$i : $label\n" done - window="$(printf "$list\n" | $DMENU | cut -d ' ' -f1)" + window="$( printf "$list\n" | $DMENU | cut -d ' ' -f1 )" wmiir xwrite /tag/sel/ctl "select client $window" ;; "next" ) - current="$(wmiir read /client/sel/ctl | head -n 1)" + 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)" + next="$( wmiir read /tag/sel/index | grep -A 10000 " $current " | grep -m 1 uzbl | cut -d ' ' -f2 )" if [ -n "$next" ]; then wmiir xwrite /tag/sel/ctl "select client $next" fi ;; "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)" + 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 wmiir xwrite /tag/sel/ctl "select client $prev" fi -- cgit v1.2.3