Return to repo list

suckless-gf-dmenu

Gentoo-friendly patches for Suckless's dmenu.
Return to HMagellan.com

USAGE (1494B)


      1 incremental - Make dmenu print out the current text on each keypress
      2 Source: https://tools.suckless.org/dmenu/patches/incremental/dmenu-incremental-20160702-3c91eed.diff 
      3 Original Author: Hiltjo Posthuma <hiltjo@codemadness.org>
      4 
      5 Description from source:
      6     """
      7     This patch causes dmenu to print out the current text each time a key is pressed.
      8 
      9     This is useful as an incremental search feature, for example in surf's config.h:
     10 
     11     #define INCSEARCH { .v = (char *[]) { "/bin/sh", "-c", "dmenu -r < /dev/null | while read -r find; do xprop -id $0 -f _SURF_FIND 8s " "-set _SURF_FIND \"$find\"; done", winid, NULL } }
     12     """
     13 
     14 == YOU MUST ==
     15 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/
     16 (2). Add the following line to your savedconfig file:
     17 
     18         static int incremental = 0;
     19 
     20 (3). Run 'emerge dmenu'
     21 
     22 == YOU PROBABLY SHOULD ==
     23 (1). Run dmenu with the '-r' option to use incremental output
     24 
     25 == PATCH MODIFICATIONS ==
     26 (1). Removed lines relating to 'config.def.h'
     27 (2). Changed chunk 2 in the 'dwm.c' diff to be compatible with the current version of the 'usage' function
     28 (3). Added a 'nodoc' patch version which strips out added documentation
     29 
     30 == INCOMPATIBILITIES ==
     31 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES!
     32 If you encounter such conflicts, try emerging with the 'incremental-nodoc.patch' file instead. It is the
     33 same as the 'incremental.patch' file except it makes no changes to the documentation.