wmenu - Man Page

dynamic menu for Wayland

Synopsis

wmenu [-biPv]
 [-f font]
 [-l lines]
 [-o output]
 [-p prompt]
 [-N color] [-n color]
 [-M color] [-m color]
 [-S color] [-s color]

wmenu-run ...

Description

wmenu is a dynamic menu for Wayland, which reads a list of newline-separated items from stdin. When the user selects an item and presses Return, their choice is printed to stdout and wmenu terminates. Entering text will narrow the items to those matching the tokens in the input.

wmenu-run is a special invocation of wmenu which lists programs in the user's $PATH and runs the result.

Options

-b

wmenu appears at the bottom of the screen.

-i

wmenu matches menu items case insensitively.

-P

wmenu will not directly display the keyboard input, but instead replace it with asterisks.

-v

prints version information to stdout, then exits.

-f font

defines the font used. For more information, see https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html

-l lines

wmenu lists items vertically, with the given number of lines.

-o output

wmenu is displayed on the output with the given name.

-p prompt

defines the prompt to be displayed to the left of the input field.

-N RRGGBB[AA]

defines the normal background color.

-n RRGGBB[AA]

defines the normal foreground color.

-M RRGGBB[AA]

defines the prompt background color.

-m RRGGBB[AA]

defines the prompt foreground color.

-S RRGGBB[AA]

defines the selection background color.

-s RRGGBB[AA]

defines the selection foreground color.

Usage

wmenu is completely controlled by the keyboard. Items are selected using the arrow keys, page up, page down, home, and end.

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-aHome
C-bLeft
C-cEscape
C-dDelete
C-eEnd
C-fRight
C-gEscape
C-[Escape
C-hBackspace
C-iTab
C-jReturn
C-JShift-Return
C-kDelete line right
C-mReturn
C-MShift-Return
C-nDown
C-pUp
C-uDelete line left
C-wDelete word left
C-YPaste from Wayland clipboard
M-bMove cursor to the start of the current word
M-fMove cursor to the end of the current word
M-gHome
M-GEnd
M-hUp
M-jPage down
M-kPage up
M-lDown

Referenced By

wl-present(1).

2024-07-20