mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
Initial commit
This commit is contained in:
commit
2f1c189d53
13 changed files with 1825 additions and 0 deletions
26
docs/meson.build
Normal file
26
docs/meson.build
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
scdoc_dep = dependency('scdoc', version: '>=1.9.2', native: true)
|
||||
|
||||
if scdoc_dep.found()
|
||||
scdoc = find_program(
|
||||
scdoc_dep.get_pkgconfig_variable('scdoc'),
|
||||
native: true,
|
||||
)
|
||||
mandir = get_option('mandir')
|
||||
|
||||
docs = [
|
||||
'wmenu.1',
|
||||
]
|
||||
|
||||
foreach path : docs
|
||||
custom_target(
|
||||
path,
|
||||
output: path,
|
||||
input: '@0@.scd'.format(path),
|
||||
capture: true,
|
||||
feed: true,
|
||||
command: [scdoc],
|
||||
install: true,
|
||||
install_dir: '@0@/man1'.format(mandir)
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
86
docs/wmenu.1.scd
Normal file
86
docs/wmenu.1.scd
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
wmenu(1)
|
||||
|
||||
# NAME
|
||||
|
||||
wmenu - dynamic menu for Wayland
|
||||
|
||||
# SYNOPSIS
|
||||
|
||||
*wmenu* [-biv] \
|
||||
[-f _font_] \
|
||||
[-l _lines_] \
|
||||
[-o _output_] \
|
||||
[-p _prompt_] \
|
||||
[-N _color_] [-n _color_] \
|
||||
[-M _color_] [-m _color_] \
|
||||
[-S _color_] [-s _color_]
|
||||
|
||||
# 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.
|
||||
|
||||
# OPTIONS
|
||||
|
||||
*-b*
|
||||
wmenu appears at the bottom of the screen.
|
||||
|
||||
*-i*
|
||||
wmenu matches menu items case insensitively.
|
||||
|
||||
*-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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue