← 返回命令列表

Linux command

dmenu 命令

文件

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Example

ls | dmenu

Example

echo -e "[red]\n[green]\n[blue]" | dmenu

Save

echo -e "[red]\n[green]\n[blue]" | dmenu > [color.txt]

Example

ls | dmenu -m [1]

Example

ls | dmenu -b

说明

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.

参数

-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

FAQ

What is the dmenu command used for?

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.

How do I run a basic dmenu example?

Run `ls | dmenu` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b do in dmenu?

Display at bottom of screen