aboutsummaryrefslogtreecommitdiffhomepage
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
parent0834c606592abddf889229826a8ed93190685f50 (diff)
Don't put spaces before case matches
-rwxr-xr-xexamples/data/scripts/instance-select-wmii.sh6
-rwxr-xr-xexamples/data/scripts/session.sh8
2 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 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
diff --git a/examples/data/scripts/session.sh b/examples/data/scripts/session.sh
index ea84da5..c95a9e5 100755
--- a/examples/data/scripts/session.sh
+++ b/examples/data/scripts/session.sh
@@ -39,7 +39,7 @@ if [ -z "$act" ]; then
fi
case $act in
- "launch" )
+ "launch")
urls="$( cat "$UZBL_SESSION_FILE" )"
if [ -z "$urls" ]; then
$UZBL
@@ -51,7 +51,7 @@ case $act in
fi
;;
- "endinstance" )
+ "endinstance")
if [ -z "$UZBL_FIFO" ]; then
echo "session manager: endinstance must be called from uzbl"
exit 1
@@ -60,7 +60,7 @@ case $act in
echo exit > "$UZBL_FIFO"
;;
- "endsession" )
+ "endsession")
for fifo in "$UZBL_FIFO_DIR/uzbl_fifo_*"; do
if [ "$fifo" != "$UZBL_FIFO" ]; then
echo "spawn $scriptfile endinstance" > "$fifo"
@@ -69,7 +69,7 @@ case $act in
[ -z "$UZBL_FIFO" ] || echo "spawn $scriptfile endinstance" > "$UZBL_FIFO"
;;
- * )
+ *)
echo "session manager: bad action"
echo "Usage: $scriptfile [COMMAND] where commands are:"
echo " launch - Restore a saved session or start a new one"