sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1406B)


      1 Line height
      2 ===========
      3 The patch adds a '-h' option, which sets the minimum height of a dmenu line.
      4 This helps integrate dmenu with other UI elements that require a particular
      5 vertical size.
      6 
      7 Example:
      8 
      9 By default, dmenu calculates its height as the height of the font used plus 2.
     10 So when opening dmenu over a panel bar that is 24 pixels high, it would look
     11 like this:
     12 
     13 [![Screenshot dmenu default height](dmenu-default-height.png)](dmenu-default-height.png)
     14 
     15 Despite both the panel and dmenu using the same font (a Terminus 12), dmenu is
     16 shorter and the panel is visible from under the dmenu bar. The appearance can
     17 be even more distracting when using similar colors for background and
     18 selections.
     19 
     20 With the option added by this patch, dmenu can be launched with a '-h 24',
     21 thus completely covering the panel, as shown below:
     22 
     23 [![Screenshot dmenu with line height patch](dmenu-line-height.png)](dmenu-line-height.png)
     24 
     25 The line height value is also used when dmenu is used in 'vertical' mode ('-l' option).
     26 
     27 Download
     28 --------
     29 * [dmenu-lineheight-5.0.diff](dmenu-lineheight-5.0.diff)
     30 * [dmenu-lineheight-4.9.diff](dmenu-lineheight-4.9.diff)
     31 * [dmenu-lineheight-4.7.diff](dmenu-lineheight-4.7.diff)
     32 * [dmenu-lineheight-4.6.diff](dmenu-lineheight-4.6.diff)
     33 
     34 Author
     35 ------
     36 * Xarchus
     37 * Jonathon Fernyhough (jonathon at manjaro-dot-org) (4.7 rewrite)
     38 * Aleksandrs Stier (4.9 port)
     39 * Peter Skrypalle (5.0 port)