aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/util
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-03-13 21:49:27 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2011-03-13 21:49:27 -0600
commit32f6f8360684c0b583e613cf5727f0c102438bd2 (patch)
treef36a5441ca4c075687649740a0143bddee189be1 /examples/data/scripts/util
parent5ec505fdb007d22bcfb5631e88e67038b06d778a (diff)
sh scripts: replace print with echo/printf
we can safely use echo in many of the situations where 'print' is being used, and we can use printf directly in other places.
Diffstat (limited to 'examples/data/scripts/util')
-rw-r--r--examples/data/scripts/util/uzbl-util.sh3
-rw-r--r--examples/data/scripts/util/uzbl-window.sh10
2 files changed, 4 insertions, 9 deletions
diff --git a/examples/data/scripts/util/uzbl-util.sh b/examples/data/scripts/util/uzbl-util.sh
deleted file mode 100644
index 7e0bd99..0000000
--- a/examples/data/scripts/util/uzbl-util.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-alias print="printf %b"
diff --git a/examples/data/scripts/util/uzbl-window.sh b/examples/data/scripts/util/uzbl-window.sh
index 856e5fa..4b96372 100644
--- a/examples/data/scripts/util/uzbl-window.sh
+++ b/examples/data/scripts/util/uzbl-window.sh
@@ -1,13 +1,11 @@
#!/bin/sh
# uzbl window detection
-. "$UZBL_UTIL_DIR/uzbl-util.sh"
-
UZBL_WIN_POS="$( xwininfo -id "$UZBL_XID" | \
sed -n -e '[ ]*s/Corners:[ ]*[+-]\([0-9]*\)[+-]\([0-9]*\).*$/\1 \2/p' )"
UZBL_WIN_SIZE="$( xwininfo -id "$UZBL_XID" | \
sed -n -e '[ ]*s/-geometry[ ]*\([0-9]*\)x\([0-9]*\).*$/\1 \2/p' )"
-UZBL_WIN_POS_X="$( print "$UZBL_WIN_POS" | cut -d ' ' -f 1 )"
-UZBL_WIN_POS_Y="$( print "$UZBL_WIN_POS" | cut -d ' ' -f 2 )"
-UZBL_WIN_WIDTH="$( print "$UZBL_WIN_SIZE" | cut -d ' ' -f 1 )"
-UZBL_WIN_HEIGHT="$( print "$UZBL_WIN_SIZE" | cut -d ' ' -f 2 )"
+UZBL_WIN_POS_X="$( echo "$UZBL_WIN_POS" | cut -d ' ' -f 1 )"
+UZBL_WIN_POS_Y="$( echo "$UZBL_WIN_POS" | cut -d ' ' -f 2 )"
+UZBL_WIN_WIDTH="$( echo "$UZBL_WIN_SIZE" | cut -d ' ' -f 1 )"
+UZBL_WIN_HEIGHT="$( echo "$UZBL_WIN_SIZE" | cut -d ' ' -f 2 )"