sites

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

index.md (872B)


      1 separator
      2 =========
      3 
      4 This patch adds `-d` and `-D` flags which separates the input into two halves.
      5 One half will be displayed into dmenu and the other half will be printed to stdout.
      6 
      7 The following example will split the input into two halves on the _first_
      8 occurrence of ' ' (space).  Meaning "alpha" will be displayed on dmenu, and
      9 "beta charlie" will be printed to stdout upon selection.
     10 
     11 	echo "alpha beta charlie" | dmenu -d ' '
     12 
     13 `-D` is similar but it separates the input based on the _last_ occurrence instead.
     14 
     15 The display/print order can be reversed by appending '|' to the separator.
     16 Example: `dmenu -D "$(printf "\t|")"` will separate on the last tab character
     17 and display the latter half on dmenu while printing the first half upon selection.
     18 
     19 Download
     20 --------
     21 
     22 * [dmenu-separator-5.2.patch](dmenu-separator-5.2.patch)
     23 
     24 Author
     25 ------
     26 * NRK <nrk@disroot.org>