GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BEMENU(1) FreeBSD General Commands Manual BEMENU(1)

bemenu
dynamic menu inspired by dmenu(1)

bemenu [-hivwx] [-I index] [-l lines] [-P prefix] [-p prompt] [--ifne] [--scrollbar none | always | autohide] [backend-options]

bemenu-run [-hivwx] [-I index] [-l lines] [-P prefix] [-p prompt] [--ifne] [--scrollbar none | always | autohide] [--fork] [--no-exec] [backend-options]

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.

, --help
Print a help message to standard output and exit.
index, --index index
Highlight the item at index at the start. Indices start at 0. By default, the first item is highlighted.
, --ignorecase
Filter items case-insensitively.
number, --list number
List items vertically with the given number of lines.
prefix, --prefix prefix
Display prefix before the highlighted item in a vertical list.
prompt, --prompt prompt
Defines the prompt text to be displayed to the left of the input field. Defaults to ‘bemenu’.
, --version
Print the bemenu version number to standard output and exit.
, --wrap
Advancing past the end of the list returns you to the start.
, --password
Hide filter text.
Always fork(2) before executing the selections. Disabled by default when using the terminal backend.
Print the selected items to standard output instead of executing them.
none | |
Specify when to show a scrollbar for vertical lists:
Never display a scrollbar (the default).
Always display a scrollbar.
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:
, --bottom (Wayland, X11)
The list will appear at the bottom of the screen.
, --grab (Wayland, X11)
Show the bemenu window whilst reading the items.
height, --line-height height (Wayland, X11)
Specify the height in point size to make each entry.
index, --monitor index (Wayland, X11)
Specify the monitor index where the list should appear. Monitor indices start at zero. The interpretation of the given argument depends on the utilized backend. With X11 and Wayland, a value of ‘-1’ or focused indicates that the current monitor should be used (the default). With Wayland, the index should be a string specifying a specific monitor name. The value ‘-2’ or all indicates that the list should appear on all monitors.
, --no-overlap (Wayland)
Set the bemenu window to be on top of any other panels.
--fnname [size]’ (Wayland, X11)
Specify the font family name and size to be used. For more options, consult the Pango Reference Manual for pango_font_description_from_string().

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:

#RGB[A]

where R, G, B and A are hexadecimal integers from 00–FF that control the red, green, blue and alpha-transparency channels.

color
Title background.
color
Title foreground.
color
Filter background.
color
Filter foreground
color
Normal background.
color
Normal foreground.
color
Highlighted background.
color
Highlighted foreground.
color
Selected background.
color
Selected foreground.
color
Scrollbar background.
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
Highlight the previous item.
cursor-down⟩, ⟨tab⟩, C-n, M-h, M-k
Highlight the next item.
, M-v, M-u
Show the previous page of items, preserving the offset of the currently highlighted item, if possible.
, C-v, M-d
Show the next page of items, preserving the offset of the currently highlighted item, if possible.
, S-PageUp
Highlight the first item in the list.
, S-PageDown
Highlight the last item in the list.
tab
Copy the highlighted item to the filter.
escape⟩, C-g
Terminate bemenu without printing items.
carriage-return
Select the highlighted item and continue highlighting.
S-carriage-return⟩, C-m
Print selected items and the currently highlighted one, and exit. Items are printed in the order they were selected, with the currently highlighted item printed last.
S-carriage-return⟩, Insert
Print the filter text to standard output and exit.
, ⟨cursor-left
Move cursor left.
, ⟨cursor-right
Move cursor right.
, Home
Move cursor to the start.
, End
Move cursor to the end.
backspaceC-h
Remove character before the cursor.
delete
Remove character at the cursor.
, S-delete
Remove all characters before the cursor.
Remove all characters after the cursor.
Clear the filter.
Paste the clipboard.
[0–9]
Print selected items and exit with a custom error code. See EXIT STATUS.

An alternative way to pass command line arguments to bemenu.
Force a backend to be used. If empty, one of the GUI backends (Wayland, X11) will be selected automatically. The accepted values are curses, wayland and x11.
Force a backend by loading its shared object from the set value.
Override the backend search path to the set value. Defaults to /usr/local/lib/bemenu.
Override the rendering scale factor for the GUI backends.

bemenu exits 0 on success, 1 if the user exited without selecting or an error, and if exiting with a custom error code, 10 plus the number specified.

dmenu(1), fork(2), ncurses(3), tty(4)

Pango Reference Manual, https://developer.gnome.org/pango/1.46/, August 20, 2020, Fonts — pango_font_description_from_string().

bemenu is written and maintained by Jari Vetoniemi <mailroxas@gmail.com>.
November 1, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.