-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqalcmenu.1
73 lines (63 loc) · 1.88 KB
/
qalcmenu.1
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
.TH qalcmenu "1" "" "" "User Commands"
.SH NAME
qalcmenu \- A
.BR qalc (1)
frontend for menus like
.BR rofi (1),
.BR bemenu (1),
and
.BR dmenu (1).
.SH SYNOPSIS
.B qalcmenu
[\fI\,OPTION\/\fR]...
[\fI\,QUERY\/\fR]...
[-- [\fI\,MENU_OPTION\/\fR]...]
.br
.B =
[\fI\,OPTION\/\fR]...
[\fI\,QUERY\/\fR]...
[-- [\fI\,MENU_OPTION\/\fR]...]
.SH DESCRIPTION
.PP
Passes \fI\,QUERY\/\fR and user input to
.BR qalc (1)
for computation, and gives back result in menu prompt.
.TP
\fB\-m\fR, \fB\-\-menu\fR=\fI\,MENU\/\fR
Select menu to use. Defaults to rofi, bemenu, or dmenu (in this order of
precedence), depending on which is available. The menu should accept
newline-delimited options from standard input and should print out the user
input, which should either be a computation for
.BR qalc (1)
or one of the options from the standard input.
.TP
\fB\-g\fR, \fB\-\-gui\fR=\fI\,PROG\/\fR
Select GUI program to use when selecting "Open in GUI". Defaults to
qalculate-gtk or qalculate-qt (in this order of precedence), depending on which
is available. The GUI program should accept the initial expression as the first
argument.
.TP
\fB\-n\fR, \fB\-\-no\-opts\fR
Disables default options for menu program, which are
\fB-dmenu -p {}\fR for rofi,
\fB-p {} -cl 3 -W 0.2\fR for bemenu,
and \fB-p {}\fR for all else.
See \fBMENU OPTIONS\fR for more information.
.TP
\fB\-h\fR, \fB\-\-help\fR
Display short help and exit.
.SH MENU OPTIONS
.PP
The options that are passed to the menu are the default options (unless
\fB\-\-no\-opts\fR is specified) and the options specified in
\fI\,MENU_OPTIONS\/\fR, in that order. Any instances of the text \fB{}\fR is
replaced with the prompt, which is "=" if there is no query or of the form
"= \fIANSWER\fR", where \fIANSWER\fR is the response from
.BR qalc (1).
.SH AUTHOR
Written by MithicSpirit <rpc01234 at gmail dot com>.
.SH "SEE ALSO"
.BR qalc (1),
.BR rofi (1),
.BR bemenu (1),
.BR dmenu (1).