aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Pawel Tomak <satherot@gmail.com>2010-03-10 08:19:26 +0100
committerGravatar Pawel Tomak <satherot@gmail.com>2010-03-10 08:19:26 +0100
commitae7df163b2b141a4b5ea70c288b14e48d7353b9e (patch)
treeec188f28db36b1451a2e91bc0cf604bffef9a84b /examples
parent6879345cb8593a23325127b716e2dae17b5e8dd2 (diff)
Added multiline dmenu support
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/scripts/eFormFiller.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/examples/data/scripts/eFormFiller.sh b/examples/data/scripts/eFormFiller.sh
index 5081593..01d29f0 100755
--- a/examples/data/scripts/eFormFiller.sh
+++ b/examples/data/scripts/eFormFiller.sh
@@ -21,6 +21,14 @@ NB="#0f0f0f"
NF="#4e7093"
SB="#003d7c"
SF="#3a9bff"
+
+if [ "`dmenu --help 2>&1| grep lines`x" != "x" ]
+then
+ LINES=" -l 3 "
+else
+ LINES=""
+fi
+
PROMPT="Choose profile"
keydir=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/dforms
@@ -75,7 +83,7 @@ then
then
menu=`cat $keydir/$domain| \
sed -n 's/^!profile=\([^[:blank:]]\+\)/\1/p'`
- option=`echo -e -n "$menu"| dmenu -nb "${NB}" -nf "${NF}" -sb "${SB}" -sf "${SF}" -p "${PROMPT}"`
+ option=`echo -e -n "$menu"| dmenu ${LINES} -nb "${NB}" -nf "${NF}" -sb "${SB}" -sf "${SF}" -p "${PROMPT}"`
fi
cat $keydir/$domain | \