sites

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

index.md (574B)


      1 preselect
      2 =========
      3 
      4 Description
      5 -----------
      6 This patch adds an option to preselect an item by providing a number. This number
      7 is the item order in the input list starting from 0. A use case is for selecting
      8 media controls like in the following screenshot.
      9 
     10 Create menu with the second item preselected:
     11 
     12 	echo -c 'item1\nitem2\nitem3' | dmenu -n 1
     13 
     14 ![dmenu preselect screenshot](dmenu-preselect.png)
     15 
     16 Download
     17 --------
     18 * [dmenu-preselect-20200513-db6093f](dmenu-preselect-20200513-db6093f.diff) (2020-05-13)
     19 
     20 Authors
     21 -------
     22 * Mathieu Moneyron <mathieu.moneyron@gmail.com>