wmifs: Add support for wmgeneral's -geometry command line option.
Also take the opportunity to correct the manpage; the -d option should be -display.
This commit is contained in:
parent
a51ad11229
commit
c16a5a9d8d
|
@ -33,9 +33,12 @@ Show summary of options.
|
|||
.B \-v
|
||||
Show version of the program.
|
||||
.TP
|
||||
.B \-d <display name>
|
||||
.B \-display <display name>
|
||||
Use an alternate X display.
|
||||
.TP
|
||||
.B \-geometry +x+y
|
||||
Set window position.
|
||||
.TP
|
||||
.B \-i <interface name>
|
||||
Interface that should come up initially when executing wmifs. If you
|
||||
use "auto" as interface name, the first active ("up") interface will be
|
||||
|
|
|
@ -319,6 +319,12 @@ int main(int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
break;
|
||||
case 'g':
|
||||
if (strcmp(arg+1, "geometry")) {
|
||||
usage();
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
case 'i':
|
||||
active_interface = argv[i+1];
|
||||
i++;
|
||||
|
@ -1003,6 +1009,7 @@ void usage(void)
|
|||
fprintf(stderr, "usage:\n");
|
||||
fprintf(stderr, "\t-c <color>\t\tset color\n");
|
||||
fprintf(stderr, "\t-display <display name>\tset display\n");
|
||||
fprintf(stderr, "\t-geometry +x+y\t\tset window position\n");
|
||||
fprintf(stderr, "\t-h\t\t\tthis help screen\n");
|
||||
fprintf(stderr, "\t-i <interface name>\tdefault (as it appears in /proc/net/route)\n");
|
||||
fprintf(stderr, "\t-I <interval>\t\tsampling interval, in seconds (default: 0.05)\n");
|
||||
|
|
Loading…
Reference in a new issue