My build of dmenu, the dynamic menu for X.
Based on BreadOnPenguins' dmenu with center and xresources patches.
-c flag)-l flag)~/.Xresources (pywal compatible)-P flag hides user input-r flag rejects input that doesn't match an option| Patch | Description |
|---|---|
| center | Center dmenu on screen |
| xresources | Read colors and settings from ~/.Xresources |
| alpha | Transparency support |
| password | Hide input for password entry |
| mouse support | Click to select options |
# Run dmenu centered
dmenu_run -c
# Vertical list centered
echo -e "option1\noption2\noption3" | dmenu -c -l 3
# Password mode
echo -e "option1\noption2" | dmenu -P
# Reject non-matching input
echo -e "yes\nno" | dmenu -r
# With prompt
dmenu -c -l 5 -p "Select:" < options.txt
git clone https://github.com/krisyotam/dmenu
cd dmenu
sudo make install