diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 20:48:54 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 22:32:30 -0500 |
commit | 03e2f59ec0959ba4dec30a903ac060d74e5fdac5 (patch) | |
tree | f3bec45fd98ac450f0988a8ef79cc26bde9213fd /examples/data/scripts/instance-select-wmii.sh | |
parent | 6cb7be2b071f5e540c33ecc5e21ab22c81434834 (diff) |
Add padding inside of braces
Diffstat (limited to 'examples/data/scripts/instance-select-wmii.sh')
-rwxr-xr-x | examples/data/scripts/instance-select-wmii.sh | 14 |
1 files changed, 7 insertions, 7 deletions
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 |