aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/util
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2010-08-21 12:16:19 -0400
committerGravatar Ben Boeckel <MathStuf@gmail.com>2010-10-02 11:56:30 -0400
commit1fcdfb3a104b44d80300f77f31d6192c3560d8e7 (patch)
tree29a52543c11cb0df7b843703c28f05ef02c7b24f /examples/data/scripts/util
parentaabbcdc4faa4447159606b8a5a70bf17002ba310 (diff)
Support setting the dmenu font
Diffstat (limited to 'examples/data/scripts/util')
-rw-r--r--examples/data/scripts/util/dmenu.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/data/scripts/util/dmenu.sh b/examples/data/scripts/util/dmenu.sh
index d1411c7..7d540bd 100644
--- a/examples/data/scripts/util/dmenu.sh
+++ b/examples/data/scripts/util/dmenu.sh
@@ -46,6 +46,11 @@ if [ -z "$DMENU_ARGS" ]; then
DMENU_ARGS="-i"
fi
+# Set the font if wanted
+if [ -n "$DMENU_FONT" ]; then
+ DMENU_ARGS="$DMENU_ARGS -fn $DMENU_FONT"
+fi
+
# Set the prompt if wanted
if [ -n "$DMENU_PROMPT" ]; then
DMENU_ARGS="$DMENU_ARGS -p $DMENU_PROMPT"