aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/instance-select-wmii.sh
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 20:56:56 -0500
committerGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 22:32:49 -0500
commit183ddc0ea5c70df8a933cbe3bf83f0272f1c8855 (patch)
tree273dac9fb9916ae79d689adb8170188c22e6d339 /examples/data/scripts/instance-select-wmii.sh
parent0834c606592abddf889229826a8ed93190685f50 (diff)
Don't put spaces before case matches
Diffstat (limited to 'examples/data/scripts/instance-select-wmii.sh')
-rwxr-xr-xexamples/data/scripts/instance-select-wmii.sh6
1 files changed, 3 insertions, 3 deletions
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