Adding plain prompt (listfullwidth) patch

This commit is contained in:
bakkeby 2021-05-17 11:39:39 +02:00
parent 24ff57a540
commit f469820531
3 changed files with 14 additions and 1 deletions

View File

@ -26,7 +26,7 @@ dmenu, how to install it and how it works.
### Changelog: ### Changelog:
2021-05-17 - Added the restrict return and no sort patches 2021-05-17 - Added the restrict return, no sort and plain-prompt (listfullwidth) patches
2021-05-15 - Added the tsv and printindex patches 2021-05-15 - Added the tsv and printindex patches
@ -166,6 +166,10 @@ dmenu, how to install it and how it works.
- this patch allows the selected text to be piped back out with dmenu - this patch allows the selected text to be piped back out with dmenu
- this can be useful if you want to display the output of a command on the screen - this can be useful if you want to display the output of a command on the screen
- [plain-prompt](https://tools.suckless.org/dmenu/patches/listfullwidth/)
- simple change that avoids colors for the prompt by making it use the same style as the
rest of the input field
- [prefix-completion](https://tools.suckless.org/dmenu/patches/prefix-completion/) - [prefix-completion](https://tools.suckless.org/dmenu/patches/prefix-completion/)
- changes the behaviour of matched items and the Tab key to allow tab completion - changes the behaviour of matched items and the Tab key to allow tab completion

View File

@ -340,7 +340,9 @@ drawmenu(void)
drw_rect(drw, 0, 0, mw, mh, 1, 1); drw_rect(drw, 0, 0, mw, mh, 1, 1);
if (prompt && *prompt) { if (prompt && *prompt) {
#if !PLAIN_PROMPT_PATCH
drw_setscheme(drw, scheme[SchemeSel]); drw_setscheme(drw, scheme[SchemeSel]);
#endif // PLAIN_PROMPT_PATCH
#if PANGO_PATCH #if PANGO_PATCH
x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0, True); x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0, True);
#else #else

View File

@ -206,6 +206,13 @@
*/ */
#define PIPEOUT_PATCH 0 #define PIPEOUT_PATCH 0
/* Lifted from the listfullwidth patch this simple change just avoids colors for the prompt (with
* the -p option or in config.h) by making it use the same style as the rest of the input field.
* The rest of the listfullwidth patch is covered by the vertfull patch.
* https://tools.suckless.org/dmenu/patches/listfullwidth/
*/
#define PLAIN_PROMPT_PATCH 0
/* This patch changes the behaviour of matched items and the Tab key to allow tab completion. /* This patch changes the behaviour of matched items and the Tab key to allow tab completion.
* https://tools.suckless.org/dmenu/patches/prefix-completion/ * https://tools.suckless.org/dmenu/patches/prefix-completion/
*/ */