git clone dmenu dmenu Log gph
Found at: gopher.r-36.net:70/scm/dmenu/commit/0e96ae6f4842b4ef4c79eaea821658e24bc03d5e.gph
tprepared dmenu-1.8, shortened command line options (-font is -fn, -selbg is -sb, -selfg is -sf, -normbg is -nb, -normfg is -nf now) - dmenu - Dmenu fork with xft fonts.
git clone git://r-36.net/dmenu
---
commit 0e96ae6f4842b4ef4c79eaea821658e24bc03d5e
parent 989649b5a5d6a23c18d137946cec16e8096b4783
Date: Tue, 19 Dec 2006 11:39:07 +0100
prepared dmenu-1.8, shortened command line options (-font is -fn, -selbg is -sb, -selfg is -sf, -normbg is -nb, -normfg is -nf now)
Diffstat:
dmenu.1 | 30 +++++++++++++++---------------
main.c | 22 +++++++++++-----------
2 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/dmenu.1 b/dmenu.1
t@@ -3,13 +3,13 @@
dmenu \- dynamic menu
.SH SYNOPSIS
.B dmenu
-.RB [ \-bottom ]
-.RB [ \-font ""]
-.RB [ \-normbg ""]
-.RB [ \-normfg ""]
-.RB [ \-selbg ""]
-.RB [ \-selfg ""]
+.RB [ \-b ]
+.RB [ \-fn " "]
+.RB [ \-nb ""]
+.RB [ \-nf ""]
.RB [ \-p ""]
+.RB [ \-sb ""]
+.RB [ \-sf ""]
.RB [ \-t ""]
.RB [ \-v ]
.SH DESCRIPTION
t@@ -20,27 +20,27 @@ It manages huge amounts (up to 10.000 and more) of user defined menu items
efficiently.
.SS Options
.TP
-.B \-bottom
+.B \-b
makes dmenu appear at the screen bottom (by default it appears at the screen top).
.TP
-.B \-font
+.B \-font
defines the font.
.TP
-.B \-normbg
+.B \-nb
defines the normal background color (#RGB, #RRGGBB, and color names are supported).
.TP
-.B \-normfg
+.B \-nf
defines the normal foreground color (#RGB, #RRGGBB, and color names are supported).
.TP
-.B \-selbg
+.B \-p
+defines a prompt to be displayed before the input area.
+.TP
+.B \-sb
defines the selected background color (#RGB, #RRGGBB, and color names are supported).
.TP
-.B \-selfg
+.B \-sf
defines the selected foreground color (#RGB, #RRGGBB, and color names are supported).
.TP
-.B \-p
-defines a prompt to be displayed before the input area.
-.TP
.B \-t
defines the seconds to wait for standard input, before exiting (default is 3).
.TP
t@@ -348,27 +348,27 @@ main(int argc, char *argv[]) {
timeout.tv_sec = 3;
/* command line args */
for(i = 1; i < argc; i++)
- if(!strncmp(argv[i], "-bottom", 8)) {
+ if(!strncmp(argv[i], "-b", 3)) {
bottom = True;
}
- else if(!strncmp(argv[i], "-font", 6)) {
+ else if(!strncmp(argv[i], "-fn", 4)) {
if(++i < argc) font = argv[i];
}
- else if(!strncmp(argv[i], "-normbg", 8)) {
+ else if(!strncmp(argv[i], "-nb", 4)) {
if(++i < argc) normbg = argv[i];
}
- else if(!strncmp(argv[i], "-normfg", 8)) {
+ else if(!strncmp(argv[i], "-nf", 4)) {
if(++i < argc) normfg = argv[i];
}
- else if(!strncmp(argv[i], "-selbg", 7)) {
+ else if(!strncmp(argv[i], "-p", 3)) {
+ if(++i < argc) prompt = argv[i];
+ }
+ else if(!strncmp(argv[i], "-sb", 4)) {
if(++i < argc) selbg = argv[i];
}
- else if(!strncmp(argv[i], "-selfg", 7)) {
+ else if(!strncmp(argv[i], "-sf", 4)) {
if(++i < argc) selfg = argv[i];
}
- else if(!strncmp(argv[i], "-p", 3)) {
- if(++i < argc) prompt = argv[i];
- }
else if(!strncmp(argv[i], "-t", 3)) {
if(++i < argc) timeout.tv_sec = atoi(argv[i]);
}
t@@ -377,8 +377,8 @@ main(int argc, char *argv[]) {
exit(EXIT_SUCCESS);
}
else
- eprint("usage: dmenu [-bottom] [-font] [-{norm,sel}{bg,fg} ]\n"
- " [-p] [-t ] [-v]\n", stdout);
+ eprint("usage: dmenu [-b] [-fn ] [-nb] [-nf ] [-p ]\n"
+ " [-sb] [-sf ] [-t ] [-v]\n", stdout);
setlocale(LC_CTYPE, "");
dpy = XOpenDisplay(0);
if(!dpy)
.