Return to repo list

suckless-gf-dmenu

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

USAGE (1825B)


      1 highpriority - Sorts dmenu entries by prioruty ans adds a color scheme and options
      2 Source: https://tools.suckless.org/dmenu/patches/highpriority/dmenu-highpriority-4.9.diff
      3 Original Author: Takase
      4 
      5 Description from source:
      6     """
      7     This patch will automatically sort the search result so that high priority items are shown first.
      8 
      9     Adds the option [SchemeHp] to colors in config.def.h and the flags hb, hf, and hp.
     10 
     11     hb: Background color of the high priority items
     12     hf: Foreground color of the high priority items
     13     hp: A CSV (comma-seperated list) of high priority items
     14 
     15     In this case, chromium is added to hp and it came first on search instead of chromedriver
     16     """
     17 
     18 == YOU MUST ==
     19 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/
     20 (2). Add the following lines to your savedconfig file's scheme list:
     21 
     22     [SchemeHp] = { "#bbbbbb", "#333333" },
     23 
     24     Set the scheme colors to be whatever you want
     25 (3). Run 'emerge dmenu'
     26 
     27 == YOU PROBABLY SHOULD ==
     28 (1). Run dmenu with the '-hb' or '-hf' options to set the high-priority item background and foreground
     29      respectively
     30 (2). Run dmenu with the '-hp X,Y,Z' option, where 'X,Y,Z' is a comma seperated list of one or more
     31      strings to be considered high-priority options
     32 
     33 == PATCH MODIFICATIONS ==
     34 (1). Removed lines relating to config.def.h
     35 (2). Modified for loop in 'max_textw' to conform to pre-C99 syntax, since apparently that is needed
     36 (3). Added a 'nodoc' patch version which strips out added documentation
     37 
     38 == INCOMPATIBILITIES ==
     39 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES!
     40 If you encounter such conflicts, try emerging with the 'highpriority-nodoc.patch' file instead. It is the
     41 same as the 'highpriority.patch' file except it makes no changes to the documentation.