mew

dmenu for wayland
git clone https://git.awy.one/mew
Log | Files | Refs | README | LICENSE

mew.1 (2971B) - View raw


  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.TH MEW 1 mew\-VERSION
.SH NAME
mew \- menu for wayland
.SH SYNOPSIS
.B mew
.RB [ \-beivP ]
.RB [ \-l
.IR lines ]
.RB [ \-o
.IR output ]
.RB [ \-p
.IR prompt ]
.RB [ \-f
.IR font ]
.RB [ \-nb
.IR color ]
.RB [ \-nf
.IR color ]
.RB [ \-sb
.IR color ]
.RB [ \-sf
.IR color ]
.P
.BR mew-run " ..."
.SH DESCRIPTION
.B mew
is an simple dynamic menu for Wayland that 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 mew terminates.  Entering text will narrow the items to those
matching the tokens in the input.
.P
.B mew-run
is a script that lists programs in the user's $PATH and runs the result with
.BR mew\ -e .
.SH OPTIONS
.TP
.B \-b
appear at the bottom of the screen.
.TP
.B \-c
mew appears centered on the screen.
.TP
.B \-e
execute input or selection with
.BR /bin/sh ,
accompanied by a xdg activation token in it's environment, subsequently
passing focus to the application ran.
.TP
.B \-i
matches menu items case insensitively.
.TP
.B \-P
mew will not directly display the keyboard input, but instead replace it with asterisks. All data from stdin will be ignored.
.TP
.BI \-l " lines"
lists item vertically, with the given number of lines.
.TP
.BI \-o " output"
mew is displayed on the output name supplied.
.TP
.BI \-p " prompt"
defines the prompt to be displayed to the left of the input field.
.TP
.BI \-f " font"
defines the font.
.TP
.BI \-nb " color"
defines the normal background color of the format:
.IR #RRGGBB[FF]
.TP
.BI \-nf " color"
defines the normal foreground color of the format:
.IR #RRGGBB[FF]
.TP
.BI \-sb " color"
defines the selected background color of the format:
.IR #RRGGBB[FF]
.TP
.BI \-sf " color"
defines the selected foreground color of the format:
.IR #RRGGBB[FF]
.TP
.B \-v
prints version information to stdout, then exits.
.SH USAGE
mew is completely controlled by the keyboard.  Items are selected using the
arrow keys, page up, page down, home, and end.
.TP
.B Tab
Copy the selected item to the input field.
.TP
.B Return
Confirm selection.  Prints the selected item to stdout and exits, returning
success.
.TP
.B Ctrl-Return
Confirm selection.  Prints the selected item to stdout and continues.
.TP
.B Shift\-Return
Confirm input.  Prints the input text to stdout and exits, returning success.
.TP
.B Escape
Exit without selecting an item, returning failure.
.TP
.B Ctrl-Left
Move cursor to the start of the current word
.TP
.B Ctrl-Right
Move cursor to the end of the current word
.TP
.B C\-a
Home
.TP
.B C\-b
Left
.TP
.B C\-c
Escape
.TP
.B C\-d
Delete
.TP
.B C\-e
End
.TP
.B C\-f
Right
.TP
.B C\-g
Escape
.TP
.B C\-h
Backspace
.TP
.B C\-i
Tab
.TP
.B C\-j
Return
.TP
.B C\-J
Shift-Return
.TP
.B C\-k
Delete line right
.TP
.B C\-m
Return
.TP
.B C\-M
Shift-Return
.TP
.B C\-n
Down
.TP
.B C\-p
Up
.TP
.B C\-u
Delete line left
.TP
.B C\-w
Delete word left
.TP
.B C\-y
Paste from Wayland clipboard
.TP
.B C\-Y
Paste from Wayland clipboard