Return to repo list

suckless-gf-dmenu

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

USAGE (2030B)


      1 lineheight - Set dmenu line height with -h option
      2 Source: https://tools.suckless.org/dmenu/patches/line-height/dmenu-lineheight-4.9.diff
      3 Original Authors: Xarchus
      4                   Jonathon Fernyhough (jonathon at manjaro-dot-org) (4.7 rewrite)
      5                   Aleksandrs Stier (4.9 port)
      6 
      7 Description from source:
      8     """
      9     The patch adds a '-h' option, which sets the minimum height of a dmenu line. This helps integrate dmenu with other 
     10     UI elements that require a particular vertical size.
     11 
     12     Example:
     13 
     14     By default, dmenu calculates its height as the height of the font used plus 2. So when opening dmenu over a panel 
     15     bar that is 24 pixels high, it would look like this:
     16 
     17     Screenshot dmenu default height
     18 
     19     Despite both the panel and dmenu using the same font (a Terminus 12), dmenu is shorter and the panel is visible from 
     20     under the dmenu bar. The appearance can be even more distracting when using similar colors for background and selections.
     21 
     22     With the option added by this patch, dmenu can be launched with a '-h 24', thus completely covering the panel, as shown 
     23     below:
     24 
     25     Screenshot dmenu with line height patch
     26 
     27     The line height value is also used when dmenu is used in 'vertical' mode ('-l' option).
     28     """
     29 
     30 == YOU MUST ==
     31 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/
     32 (2). Add the following line to your savedconfig file:
     33 
     34         static unsigned int lineheight = 0;
     35 
     36 (3). Run 'emerge dmenu'
     37 
     38 == YOU PROBABLY SHOULD ==
     39 (1). Run dmenu with the '-h X' option, where 'X' is the line height
     40 
     41 == PATCH MODIFICATIONS ==
     42 (1). Removed all changes made to 'config.def.h'
     43 (2). Added a 'nodoc' patch version which strips out added documentation
     44 
     45 == INCOMPATIBILITIES ==
     46 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES!
     47 If you encounter such conflicts, try emerging with the 'lineheight-nodoc.patch' file instead. It is the
     48 same as the 'lineheight.patch' file except it makes no changes to the documentation.