LinuxCommandLibrary

dmenu

dynamic menu for X11

TLDR

Display menu from ls output

$ ls | dmenu
copy
Display menu with custom items
$ echo -e "[red]\n[green]\n[blue]" | dmenu
copy
Save selected item to file
$ echo -e "[red]\n[green]\n[blue]" | dmenu > [color.txt]
copy
Launch on specific monitor
$ ls | dmenu -m [1]
copy
Display at bottom of screen
$ ls | dmenu -b
copy

SYNOPSIS

dmenu [options]

DESCRIPTION

dmenu is a dynamic menu for X11. It reads items from stdin, displays them in a horizontal menu, and outputs the selected item to stdout.
Commonly used as an application launcher, file picker, or general selection interface in tiling window managers.

PARAMETERS

-b

Display at bottom of screen
-m monitor
Display on specified monitor
-l lines
Vertical list with n lines
-p prompt
Display prompt text
-fn font
Font or font pattern
-nb color
Normal background color
-nf color
Normal foreground color
-sb color
Selected background color
-sf color
Selected foreground color

CAVEATS

X11 only (see bemenu for Wayland). Items must be newline-separated. Part of suckless tools. Highly customizable through patches.

SEE ALSO

rofi(1), bemenu(1), fzf(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community