[Pkg-wmaker-commits] [wmifs] 87/118: wmifs: Add support for wmgeneral's -geometry command line option.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 02:37:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmifs.

commit 2a80de524bff571166be8d5df7632d06fc4eb489
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed May 27 17:33:21 2015 -0500

    wmifs: Add support for wmgeneral's -geometry command line option.
    
    Also take the opportunity to correct the manpage; the -d option should be
    -display.
---
 wmifs.1 | 5 ++++-
 wmifs.c | 7 +++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/wmifs.1 b/wmifs.1
index 42f4b1b..3583a86 100644
--- a/wmifs.1
+++ b/wmifs.1
@@ -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
diff --git a/wmifs.c b/wmifs.c
index 7b128da..f6ee3a5 100644
--- a/wmifs.c
+++ b/wmifs.c
@@ -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");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmifs.git



More information about the Pkg-wmaker-commits mailing list