Return to repo list

suckless-gf-dmenu

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

USAGE (2281B)


      1 center - Spawn dmenu smack in the center of the screen
      2 Source: https://tools.suckless.org/dmenu/patches/center/dmenu-center-4.8.diff
      3 Original Author: Ed van Bruggen edvb@uw.edu
      4 
      5 Description from source:
      6     """
      7     This patch centers dmenu in the middle of the screen.
      8 
      9     Previously this has been achieved through the xyw patch and a bash script to calculate 
     10     the centered x and y positions. However, this is a slow and overly complex way which is 
     11     hard to integrate into programs which call dmenu directly, eg surf or tabbed. On the 
     12     other hand, This small standalone patch is instantaneous and works globally.
     13     """
     14 
     15 == YOU MUST ==
     16 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/ and run 'emerge dmenu'
     17 
     18 == YOU PROBABLY SHOULD ==
     19 No further action is required.
     20 
     21 == PATCH MODIFICATIONS ==
     22 (1). Modified for loop in 'max_textw' to conform to pre-C99 syntax, since apparently that is needed.
     23 
     24 == INCOMPATIBILITIES ==
     25 No known specific incompatibilities.
     26 
     27 ###################################################################################################
     28 ###################################################################################################
     29 
     30 centeroption - Add a '-c' option to center dmenu from the command line
     31 Source: https://tools.suckless.org/dmenu/patches/center/dmenu-center-20200111-8cd37e1.diff
     32 Original Author: Nihal Jere nihal@nihaljere.xyz (20200111)
     33 
     34 Description from source:
     35     """
     36     With dmenu-center-20200111-8cd37e1.diff, you can use -c to center dmenu.
     37     """
     38 
     39 == YOU MUST ==
     40 (1). Place the patch file in /etc/portage/patches/x11-misc/dmenu/ and run 'emerge dmenu'
     41 
     42 == YOU PROBABLY SHOULD ==
     43 (1). Run dmenu with the '-c' option to center it.
     44 
     45 == PATCH MODIFICATIONS ==
     46 (1). Removed lines relating to 'config.def.h'
     47 (2). Modified for loop in 'max_textw' to conform to pre-C99 syntax, since apparently that is needed.
     48 (3). Added a 'nodoc' patch version which strips out added documentation
     49 
     50 == INCOMPATIBILITIES ==
     51 THIS PATCH MAKES CHANGES TO DMENU'S BUILT-IN DOCUMENTATION, WHICH CAN CAUSE CONFLICTS WITH OTHER PATCHES!
     52 If you encounter such conflicts, try emerging with the 'centeroption-nodoc.patch' file instead. It is the
     53 same as the 'centeroption.patch' file except it makes no changes to the documentation.