bemenu(1) | General Commands Manual | bemenu(1) |
bemenu - dynamic menu inspired by dmenu(1)
bemenu [-hivwx] [-I <index>] [-l <lines>] [-P prefix]
bemenu-run [-hivwx] [-I <index>] [-l <lines>] [-P <prefix>]
bemenu is a dynamic menu for tty(4) (using ncurses(3)), X11 and Wayland, inspired by dmenu(1).
It reads a list of newline-separated items from standard input and then presents them as a list, where the user can select one or more of them. When pressing <carriage-return>, the selected items are printed to standard output (one per line) and bemenu exits.
Entering text will filter the items to those that match the input. If the number of items exceeds the size of the list, the items will be paginated.
bemenu-run is a special-case invocation of bemenu, where the input is the list of executables under PATH and the selected items are executed.
-h, --help
-I, --index <index>
-i, --ignorecase
-l, --list <number>
-P, --prefix <prefix>
-p, --prompt <prompt>
-v, --version
-w, --wrap
-x, --password
--fork
--no-exec
--scrollbar none|always|autohide
none | Never display a scrollbar (the default). |
always | Always display a scrollbar. |
autohide | Only display a scrollbar when the number of items exceeds the number of lines. |
These options are only available on backends specified in the parentheses:
-b, --bottom (Wayland, X11)
-f, --grab (Wayland, X11)
-H, --line-height <height> (Wayland, X11)
-m, --monitor <index> (Wayland, X11)
-n, --no-overlap (Wayland)
-M, --margin <margin> (Wayland, X11)
-W, --width-factor <factor> (Wayland, X11)
--fn <name [size]> (Wayland, X11)
The following options control the colours for various parts of the list for the Wayland and X11 backends. Each takes an argument in the form of:
where R, G, B and A are hexadecimal integers from 00–FF that control the red, green, blue and alpha-transparency channels.
--tb <color> Title background.
--tf <color> Title foreground.
--fb <color> Filter background.
--ff <color> Filter foreground
--cb <color> Cursor background.
--cf <color> Cursor foreground
--nb <color> Normal background.
--nf <color> Normal foreground.
--hb <color> Highlighted background.
--hf <color> Highlighted foreground.
--fbb <color> Feedback background.
--fbf <color> Feedback foreground.
--sb <color> Selected background.
--sf <color> Selected foreground.
--ab <color> Alternating background color.
--af <color> Alternating foreground color.
--scb <color> Scrollbar background.
--scf <color> Scrollbar foreground.
bemenu supports keyboard commands to move around the list and edit the filter. In the following examples, C-x means <control-x>, M-x means <alt-x> and S-x means <shift-x>:
<cursor-up>, S-<cursor-left>, C-p, M-j, M-l
<cursor-down>, <tab>, C-n, M-h, M-k
PageUp, M-v, M-u
PageDown, C-v, M-d
S-M-<, S-PageUp
S-M->, S-PageDown
S-<tab>
<escape>, C-g
C-<carriage-return>, C-m
S-<carriage-return>, Insert
C-l, <cursor-left>
C-f, <cursor-right>
C-a, Home
C-e, End
<backspace> C-h
<delete>
C-u, S-<delete>
C-k
C-w
C-y
M-[1-9]
2022-12-21 |