sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit 051bad6cab3e661f632bdcbe78badf63a44e4311
parent cdb111d39d027aa99e1d1003fc8edab7e34c471a
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Fri,  2 Sep 2011 00:15:15 +0200

Stupid slmenu compatibility thing.
Diffstat:
config.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -31,7 +31,7 @@ static void f_pipenull(const Arg*); #define PROMPT(prompt, default, cmd) { .v = (const char *[]){ "/bin/sh", "-c", \ "dmenu -v >/dev/null 2>&1 || DISPLAY=\"\";"\ "if [ -n \"$DISPLAY\" ]; then arg=\"`echo \\\"" default "\\\" | dmenu $DMENU_OPTS -p '" prompt "'`\";" \ - "else if slmenu -v >/dev/null 2>&1; then arg=\"`echo \\\"" default "\\\" | slmenu -p '" prompt "'`\";" \ + "else if slmenu -v >/dev/null 2>&1; then arg=\"`echo \\\"" default "\\\" | slmenu -t -p '" prompt "'`\";" \ "else printf \"\033[0;0H\033[7m"prompt"\033[K\033[0m \" >&2; read arg; fi; fi &&" \ "echo " cmd "\"$arg\" > ${SANDY_FIFO}", NULL } }