sites

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

index.md (898B)


      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 `
     12 echo "alpha beta charlie" | dmenu -d ' '
     13 `
     14 
     15 `-D` is similar but it separates the input based on the _last_ occurrence instead.
     16 
     17 The display/print order can be reversed by appending '|' to the separator.
     18 Example: `dmenu -D "$(printf "\t|")"` will separate on the last tab character
     19 and display the latter half on dmenu while printing the first half upon selection.
     20 
     21 Download
     22 --------
     23 * [dmenu-separator-20210904-d78ff08.diff](dmenu-separator-20210904-d78ff08.diff)
     24 
     25 Author
     26 ------
     27 * NRK <nrk@disroot.org>