diff --git a/srcpkgs/dmenu/files/config.h b/srcpkgs/dmenu/files/config.h index a9122f73add..1edb647789c 100644 --- a/srcpkgs/dmenu/files/config.h +++ b/srcpkgs/dmenu/files/config.h @@ -6,12 +6,18 @@ static int topbar = 1; /* -b option; if 0, dmenu appears a static const char *fonts[] = { "monospace:size=10" }; -static const char *prompt = NULL; /* -p option; prompt to the elft of input field */ -static const char *normbgcolor = "#222222"; /* -nb option; normal background */ -static const char *normfgcolor = "#bbbbbb"; /* -nf option; normal foreground */ -static const char *selbgcolor = "#005577"; /* -sb option; selected background */ -static const char *selfgcolor = "#eeeeee"; /* -sf option; selected foreground */ -static const char *outbgcolor = "#00ffff"; -static const char *outfgcolor = "#000000"; +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ +static const char *colors[SchemeLast][2] = { + /* fg bg */ + [SchemeNorm] = { "#bbbbbb", "#222222" }, + [SchemeSel] = { "#eeeeee", "#005577" }, + [SchemeOut] = { "#000000", "#00ffff" }, +}; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; + +/* + * Characters not considered part of a word while deleting words + * for example: " /?\"&[]" + */ +static const char worddelimiters[] = " "; diff --git a/srcpkgs/dmenu/template b/srcpkgs/dmenu/template index 3ad9bbdc605..bfd67d3a8b6 100644 --- a/srcpkgs/dmenu/template +++ b/srcpkgs/dmenu/template @@ -1,14 +1,14 @@ # Template file for 'dmenu' pkgname=dmenu -version=4.6 -revision=2 +version=4.7 +revision=1 makedepends="libXinerama-devel libXft-devel freetype-devel" short_desc="A generic menu for X" maintainer="Juan RP " license="MIT" homepage="http://tools.suckless.org/dmenu/" distfiles="http://dl.suckless.org/tools/${pkgname}-${version}.tar.gz" -checksum=4a7a24008a621c3cd656155ad91ab8136db8f0d3b9ec56dafeec518cabda96b3 +checksum=a75635f8dc2cbc280deecb906ad9b7594c5c31620e4a01ba30dc83984881f7b9 build_options="fuzzymatch" desc_option_fuzzymatch="Enable Fuzzymatch support"