DMENU(1)

๐Ÿ“ฆ
version 49 ยท 4 versions
, in ubuntu resolute, ubuntu stonking

โœจ DMENU(1) โœจ โ€” the dynamic menu, aka the manual page for dmenu

okay bestie, sit down, we're learning dmenu ๐Ÿ’– it's a General Commands Manual situation, and honestly? she's iconic. let's go.


๐ŸŒธ SYNOPSIS ๐ŸŒธ

dmenu [-bfiv] [-l lines] [-m monitor] [-p prompt] [-fn font] [-nb color]
[-nf color] [-sb color] [-sf color] [-w windowid]

dmenu_run ...

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

so what IS dmenu, you ask? it's a dynamic menu for X, and here's the vibe: it reads a list of newline-separated items from stdin. that's it, that's the whole job. ๐Ÿซถ

then, when the user selects an item and presses Return, their choice is printed to stdout and dmenu terminates. like, gone, done, slay, exit stage left. โœจ

and the filter? entering text will narrow the items to those matching the tokens in the input. typey typey, less listy listy. ๐Ÿ”ฅ

dmenu_run is a script used by dwm(1) which lists programs in the user's $PATH and runs the result in their $SHELL. king behavior, no cap. ๐Ÿ‘‘


๐Ÿ’… OPTIONS ๐Ÿ’…

one bullet per flag, we do NOT skip any, periodt.

  • -b โ€” dmenu appears at the bottom of the screen. lowkey humble of her.
  • -f โ€” dmenu grabs the keyboard before reading stdin if not reading from a tty. this is faster, but will lock up X until stdin reaches end-of-file.
โš ๏ธ bestie, that -f caveat is real real. faster yes, but X gets held hostage until EOF. know what you're doing, fr fr.
  • -i โ€” dmenu matches menu items case insensitively. Slay and slay and SLAY are all the same girl. ๐ŸŽ€
  • -l lines โ€” dmenu lists items vertically, with the given number of lines.
  • -m monitor โ€” dmenu is displayed on the monitor number supplied. monitor numbers start from 0. (yes, zero. programmers, amirite ๐Ÿ’€)
  • -p prompt โ€” defines the prompt to be displayed to the left of the input field.
  • -fn font โ€” defines the font or font set used. โœจ aesthetics โœจ
  • -nb color โ€” defines the normal background color. #RGB, #RRGGBB, and X color names are supported. so many options, we love a flexible queen ๐ŸŒˆ
  • -nf color โ€” defines the normal foreground color.
  • -sb color โ€” defines the selected background color.
  • -sf color โ€” defines the selected foreground color.
  • -v โ€” prints version information to stdout, then exits. short and sweet, we stan a brief encounter ๐Ÿ’–
  • -w windowid โ€” embed into windowid.

๐ŸŽ€ USAGE ๐ŸŽ€

big news: dmenu is completely controlled by the keyboard. no mouse, no touchscreen, no vibes-based clicking. items are selected using the arrow keys, page up, page down, home, and end.

here's the whole keymap, every single one, don't skip ๐Ÿซถ

  • Tab โ€” Copy the selected item to the input field.
  • Return โ€” Confirm selection. Prints the selected item to stdout and exits, returning success.
  • Ctrl-Return โ€” Confirm selection. Prints the selected item to stdout and continues.
  • Shift-Return โ€” Confirm input. Prints the input text to stdout and exits, returning success.
  • Escape โ€” Exit without selecting an item, returning failure.
  • Ctrl-Left โ€” Move cursor to the start of the current word
  • Ctrl-Right โ€” Move cursor to the end of the current word
  • C-a โ€” Home
  • C-b โ€” Left
  • C-c โ€” Escape
  • C-d โ€” Delete
  • C-e โ€” End
  • C-f โ€” Right
  • C-g โ€” Escape
  • C-h โ€” Backspace
  • C-i โ€” Tab
  • C-j โ€” Return
  • C-J โ€” Shift-Return
  • C-k โ€” Delete line right
  • C-m โ€” Return
  • C-M โ€” Shift-Return
  • C-n โ€” Down
  • C-p โ€” Up
  • C-u โ€” Delete line left
  • C-w โ€” Delete word left
  • C-y โ€” Paste from primary X selection
  • C-Y โ€” Paste from X clipboard
  • M-b โ€” Move cursor to the start of the current word
  • M-f โ€” Move cursor to the end of the current word
  • M-g โ€” Home
  • M-G โ€” End
  • M-h โ€” Up
  • M-j โ€” Page down
  • M-k โ€” Page up
  • M-l โ€” Down
๐ŸŒŸ that's the whole keyboard lore. memorize it or don't, but it's all here, iykyk.

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ


and that's the whole page, bestie!! this was dmenu-5.4, living under the DMENU(1) header, and she ate. ๐Ÿ’…โœจ go forth and dynamically menu. ๐Ÿฆ‹๐Ÿ’–๐ŸŽ€

๐Ÿ“ฆ where this page comes from