This is my fork of dmenu (version 5.2), with several patches already applied.
Take a look at the dependencies listed below.
Download, compile and install the program:
git clone https://github.com/marcoplaitano/dmenu
cd dmenu
sudo make install
Uninstall with:
sudo make uninstall
This script needs a custom list of options (strings separated by \n
) to choose
from:
printf "YES\nNO\nMAYBE" | dmenu
It then prompts you to write/select one of the available options. The selection
is printed to stdout
.
Read the man
page to learn about the command-line options that can modify
dmenu's behaviour.
This wrapper script uses dmenu to choose and execute any program/script
available in $PATH
.
These are all the patches I manually added to the source code. Some of these
I have customized to further improve control over the program's behaviour and
appearance.
A list of all the available patches can be found on dmenu's website.
Adds the -a
option to make the window semi-transparent, while keeping the text
in it opaque.
The alpha mask (amount of transparency) is defined in the config.h file.
The default value is 0xCC
(80% of transparency).
Adds the -c
option to center the window on the screen (like rofi).
Adds the -bw W
option to specify a border width of W
pixels. The colour of
the border is the same of the selected match's background (-sb #RRGGBB
).
By default the border will not be drawn.
Adds the -h H
option to adjust the height of the window, in pixels.
Adds the -F
option to enable fuzzy-matching.
Adds options to change the colours of the highlighted fuzzy matches.
-nhb #RRGGBB
normal fuzzy highlight background.-nhf #RRGGBB
normal fuzzy highlight foreground.-shb #RRGGBB
selected fuzzy highlight background.-shf #RRGGBB
selected fuzzy highlight foreground.
These are the utilities and libraries needed to compile the program:
- gcc
- make
- build-essential
- libx11-dev
- libxinerama-dev
- libxft-dev