dmenu/README.md

231 lines
12 KiB
Markdown
Raw Normal View History

2021-05-15 14:40:05 +02:00
Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this dmenu 5.0 (1a13d0,
2020-09-02) project has a different take on patching. It uses preprocessor directives to decide
whether or not to include a patch during build time. Essentially this means that this build, for
better or worse, contains both the patched _and_ the original code. The aim being that you can
select which patches to include and the build will contain that code and nothing more.
For example to include the `alpha` patch then you would only need to flip this setting from 0
to 1 in [patches.h](https://github.com/bakkeby/dmenu-flexipatch/blob/master/patches.def.h):
```c
2020-05-29 17:01:40 +02:00
#define ALPHA_PATCH 1
```
2021-05-15 14:40:05 +02:00
Once you have found out what works for you and what doesn't then you should be in a better position
to choose patches should you want to start patching from scratch.
2019-10-16 08:27:00 +02:00
2021-05-15 14:40:05 +02:00
Alternatively if you have found the patches you want, but don't want the rest of the flexipatch
entanglement on your plate then you may want to have a look at
[flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer); a custom pre-processor
tool that removes all the unused flexipatch code leaving you with a build that contains the patches
you selected.
2019-10-16 08:27:00 +02:00
2021-05-15 14:40:05 +02:00
Refer to [https://tools.suckless.org/dmenu/](https://tools.suckless.org/dmenu/) for details on
dmenu, how to install it and how it works.
---
### Changelog:
2021-05-24 13:29:40 +02:00
2021-05-23 - Adding support for `ctrl+v` to paste and adding emoji-highlight patch
2021-05-23 13:16:26 +02:00
2021-05-17 11:46:50 +02:00
2021-05-17 - Added the restrict return, no sort, gridnav and plain-prompt (listfullwidth) patches
2021-05-17 10:59:48 +02:00
2021-05-15 14:40:05 +02:00
2021-05-15 - Added the tsv and printindex patches
2021-05-15 12:51:58 +02:00
2020-08-08 15:10:00 +02:00
2020-08-08 - Added the json, symbols, managed, morecolor, multi-selection and preselect patches
2020-08-08 11:07:00 +02:00
2020-08-05 14:54:01 +02:00
2020-08-05 - Added the grid, highlight, highpriority, dynamic options and numbers patches
2020-08-05 11:31:54 +02:00
2020-06-13 15:32:41 +02:00
2020-06-13 - Added the pango patch
2020-06-10 12:53:27 +02:00
2020-06-10 - Added the case-insensitive patch
2021-05-15 14:40:05 +02:00
2020-05-29 - Added the alpha patch (derived from Baitinq's [build](https://github.com/Baitinq/dmenu))
and the color emoji patch
2020-05-29 17:01:40 +02:00
2020-04-04 09:58:35 +02:00
2020-04-05 - Added fuzzyhighlight patch
2020-02-09 - Added revised border patch (adding command line parameter for setting border width)
2019-12-29 09:12:00 +01:00
2019-12-29 - Added xresources patch
2019-10-16 08:27:00 +02:00
2019-10-16 - Introduced [flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer)
2021-05-15 14:40:05 +02:00
2019-09-18 - Added border, center, fuzzymatch, incremental, initialtext, instant, line-height,
mouse-support, navhistory, non-blocking-stdin, password, pipeout, printinputtext,
rejectnomatch, scroll, vertfull, wmtype and xyw patches
### Patches included:
2021-07-26 09:33:24 +02:00
- [alpha](https://github.com/bakkeby/patches/blob/master/dmenu/dmenu-alpha-5.0_20210725_523aa08.diff)
2020-05-29 17:01:40 +02:00
- adds transparency for the dmenu window
- [border](http://tools.suckless.org/dmenu/patches/border/)
- adds a border around the dmenu window
2020-06-10 12:53:27 +02:00
- [case-insensitive](http://tools.suckless.org/dmenu/patches/case-insensitive/)
- makes dmenu case-insensitive by default, replacing the case-insensitive `-i` option with a
case sensitive `-s` option
2020-06-10 12:53:27 +02:00
- [center](https://tools.suckless.org/dmenu/patches/center/)
- this patch centers dmenu in the middle of the screen
2020-05-29 20:33:20 +02:00
- color_emoji
2021-05-15 14:40:05 +02:00
- enables color emoji in dmenu by removing a workaround for a BadLength error in the Xft
library when color glyphs are used
- enabling this will crash dmenu on encountering such glyphs unless you also have an updated
Xft library that can handle them
2020-05-29 20:33:20 +02:00
2020-08-05 12:27:15 +02:00
- [dynamic_options](https://tools.suckless.org/dmenu/patches/dynamicoptions/)
2021-05-15 14:40:05 +02:00
- adds a flag (`-dy`) which makes dmenu run the command given to it whenever input is changed
with the current input as the last argument and update the option list according to the
output of that command
2020-08-05 12:27:15 +02:00
2021-05-24 13:29:40 +02:00
- [emoji-highlight](https://tools.suckless.org/dmenu/patches/emoji-highlight/)
- this patch will allow for emojis on the left side with a colored background when selected
2020-04-04 09:58:35 +02:00
- [fuzzyhighlight](https://tools.suckless.org/dmenu/patches/fuzzyhighlight/)
2021-05-15 14:40:05 +02:00
- intended to be combined with the fuzzymatch patch, this makes it so that fuzzy matches are
highlighted
2020-04-04 09:58:35 +02:00
- [fuzzymatch](https://tools.suckless.org/dmenu/patches/fuzzymatch/)
2021-05-15 14:40:05 +02:00
- adds support for fuzzy-matching to dmenu, allowing users to type non-consecutive portions
of the string to be matched
2020-08-05 11:31:54 +02:00
- [grid](https://tools.suckless.org/dmenu/patches/grid/)
2021-05-15 14:40:05 +02:00
- allows dmenu's entries to be rendered in a grid by adding a new `-g` flag to specify the
number of grid columns
2020-08-05 11:31:54 +02:00
- the `-g` and `-l` options can be used together to create a G columns * L lines grid
2021-05-17 11:46:50 +02:00
- [gridnav](https://tools.suckless.org/dmenu/patches/gridnav/)
- adds the ability to move left and right through a grid (when using the grid patch)
2020-08-05 13:19:30 +02:00
- [highlight](https://tools.suckless.org/dmenu/patches/highlight/)
- this patch highlights the individual characters of matched text for each dmenu list entry
2020-08-05 14:54:01 +02:00
- [highpriority](https://tools.suckless.org/dmenu/patches/highpriority/)
2021-05-15 14:40:05 +02:00
- this patch will automatically sort the search result so that high priority items are shown
first
2020-08-05 14:54:01 +02:00
- [incremental](https://tools.suckless.org/dmenu/patches/incremental/)
- this patch causes dmenu to print out the current text each time a key is pressed
- [initialtext](https://tools.suckless.org/dmenu/patches/initialtext/)
- adds an option to provide preselected text
- [instant](https://tools.suckless.org/dmenu/patches/instant/)
2021-05-15 14:40:05 +02:00
- adds a flag that will cause dmenu to select an item immediately if there is only one
matching option left
2020-08-08 15:10:00 +02:00
- [json](https://tools.suckless.org/dmenu/patches/json/)
- adds basic support for json files
- [line-height](http://tools.suckless.org/dmenu/patches/line-height/)
- adds a `-h` option which sets the minimum height of a dmenu line
- this helps integrate dmenu with other UI elements that require a particular vertical size
2020-08-08 11:28:00 +02:00
- [managed](https://tools.suckless.org/dmenu/patches/managed/)
2021-05-15 14:40:05 +02:00
- adds a `-wm` flag which sets override_redirect to false; thus letting your window manager
manage the dmenu window
- this may be helpful in contexts where you don't want to exclusively bind dmenu or want to
treat dmenu more as a "window" rather than as an overlay
2020-08-08 11:28:00 +02:00
2020-08-08 11:57:00 +02:00
- [morecolor](https://tools.suckless.org/dmenu/patches/morecolor/)
- adds an additional color scheme for highlighting entries adjacent to the current selection
- [mouse-support](https://tools.suckless.org/dmenu/patches/mouse-support/)
- adds basic mouse support for dmenu
2020-08-08 13:30:00 +02:00
- [multi-selection](https://tools.suckless.org/dmenu/patches/multi-selection/)
2021-05-15 14:40:05 +02:00
- without this patch when you press `Ctrl+Enter` dmenu just outputs current item and it is
not possible to undo that
2020-08-08 13:30:00 +02:00
- with this patch dmenu will output all selected items only on exit
- it is also possible to deselect any selected item
- [navhistory](https://tools.suckless.org/dmenu/patches/navhistory/)
- provides dmenu the ability for history navigation similar to that of bash
2021-05-17 11:10:09 +02:00
- [no-sort](https://tools.suckless.org/dmenu/patches/no-sort/)
- adds the `-S` option to disable sorting menu items after matching
2021-05-17 11:10:09 +02:00
- useful, for example, when menu items are sorted by their frequency of use (using an
external cache) and the most frequently selected items should always appear first regardless
of how they were exact, prefix, or substring matches
- [non-blocking-stdin](https://tools.suckless.org/dmenu/patches/non_blocking_stdin/)
2021-05-15 14:40:05 +02:00
- this is a patch to have dmenu read stdin in a non blocking way, making it wait for input
both from stdin and from X
- this means that you can continue feeding dmenu while you type
2021-05-15 14:40:05 +02:00
- the patch is meant to be used along with the incremental patch in order to use stdout to
feed stdin
2020-08-05 12:40:03 +02:00
- [numbers](https://tools.suckless.org/dmenu/patches/numbers/)
2021-05-15 14:40:05 +02:00
- adds text which displays the number of matched and total items in the top right corner of
dmenu
2020-08-05 12:40:03 +02:00
2020-06-13 15:32:41 +02:00
- [pango](https://github.com/StillANixRookie/dmenu-pango/)
- adds simple markup for dmenu using pango markup
- [password](https://tools.suckless.org/dmenu/patches/password/)
2021-05-15 14:40:05 +02:00
- with this patch dmenu will not directly display the keyboard input, but instead replace it
with dots
- all data from stdin will be ignored
- [pipeout](https://tools.suckless.org/dmenu/patches/pipeout/)
- this patch allows the selected text to be piped back out with dmenu
- this can be useful if you want to display the output of a command on the screen
- [plain-prompt](https://tools.suckless.org/dmenu/patches/listfullwidth/)
- simple change that avoids colors for the prompt by making it use the same style as the
rest of the input field
- [prefix-completion](https://tools.suckless.org/dmenu/patches/prefix-completion/)
- changes the behaviour of matched items and the Tab key to allow tab completion
2020-08-08 11:51:00 +02:00
- [preselect](https://tools.suckless.org/dmenu/patches/preselect/)
- adds an option `-ps` to preselect an item by providing the index that should be pre-selected
2021-05-15 14:40:05 +02:00
- [printindex](https://tools.suckless.org/dmenu/patches/printindex/)
- allows dmenu to print out the 0-based index of matched text instead of the matched text
itself
- this can be useful in cases where you would like to select entries from one array of text
but index into another, or when you are selecting from an ordered list of non-unique items
- [printinputtext](https://tools.suckless.org/dmenu/patches/printinputtext/)
- this patch adds a flag `-t` which makes Return key ignore selection and print the input
2021-05-15 14:40:05 +02:00
text to stdout
- the flag basically swaps the functions of Return and Shift+Return hotkeys
- [rejectnomatch](https://tools.suckless.org/dmenu/patches/reject-no-match/)
2021-05-15 14:40:05 +02:00
- adds a new flag to dmenu with which text input will be rejected if it would result in no
matching item
2021-05-17 10:59:48 +02:00
- [restrict-return](https://tools.suckless.org/dmenu/patches/restrict-return/)
- adds a `-1` option which disables Shift-Return and Ctrl-Return
2021-05-17 10:59:48 +02:00
- this guarantees that dmenu will only output one item, and that item was read from stdin
- [scroll](https://tools.suckless.org/dmenu/patches/scroll/)
- this patch adds support for text scrolling
- it doesn't append `...` for long input anymore as it can handle long text
2020-08-08 11:07:00 +02:00
- [symbols](https://tools.suckless.org/dmenu/patches/symbols/)
2021-05-15 14:40:05 +02:00
- allows the symbols, which are printed in dmenu to indicate that either the input is too
long or there are too many options to be shown in dmenu in one line, to be defined
2020-08-08 11:07:00 +02:00
2021-05-15 12:51:58 +02:00
- [tsv](https://tools.suckless.org/dmenu/patches/tsv/)
2021-05-15 14:40:05 +02:00
- makes dmenu split input lines at first tab character and only display first part, but it
will perform matching on and output full lines as usual
2021-05-15 12:51:58 +02:00
- can be useful if you want to separate data and representation
- [vertfull](https://tools.suckless.org/dmenu/patches/vertfull/)
- prevents dmenu from indenting items at the same level as the prompt length
- [wmtype](https://github.com/Baitinq/dmenu/blob/master/patches/dmenu-wm_type.diff)
- adds extended window manager hints such as \_NET_WM_WINDOW_TYPE and \_NET_WM_WINDOW_TYPE_DOCK
2019-12-29 09:12:00 +01:00
- [xresources](https://tools.suckless.org/dmenu/patches/xresources/)
- allows dmenu to read font and colors from Xresources
- note that with this patch the Xresources settings takes precedence over command line arguments
- [xyw](https://tools.suckless.org/dmenu/patches/xyw/)
- adds options for specifying dmenu window position and width