This patch modifies dmenu so that, instead of displaying the prompt in front of the input, the prompt is shown as placeholder text inside the input field. When no text is typed, the placeholder appears; when you start typing, your input replaces it.
- Displays the prompt as placeholder text inside the input field when empty.
- Cursor (
|) only appears when typing, keeping the field visually clean when empty. - Build on latest version of dmenu (5.4)
- If you start off fresh, clone the dmenu repo from suckless.org
git clone https://git.suckless.org/dmenu- Clone this repo
git clone https://github.com/daanblom/dmenu-inlineprompt.git- Apply the patch (from your dmenu directory):
patch -p 1 < /path/to/patch.diff- Compile and install dmenu:
sudo make clean installNo changes in usage. Run dmenu as usual with -p to set the prompt text.
- Based on the base build of dmenu.
- build in header image at https://github.com/daanblom/suckless
Follow the same license as dmenu (MIT/X11).
