From 6b1e14dab3ee570a086fa2c52581b789702a64d2 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 11 Jul 2018 22:12:51 -0400 Subject: [PATCH] wmmisc: Add support for wmgeneral's -geometry command line argument. --- wmmisc/src/dockapp_main.c | 4 +++- wmmisc/wmmisc.1 | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wmmisc/src/dockapp_main.c b/wmmisc/src/dockapp_main.c index bc014d5..fccc677 100644 --- a/wmmisc/src/dockapp_main.c +++ b/wmmisc/src/dockapp_main.c @@ -44,7 +44,8 @@ dockapp_show_help( const char* wm_name ) printf( "the system's fork count and load average.\n\n" ); printf( " -h display this help and exit\n" ); printf( " -v output version information and exit\n" ); - printf( " -display DISPLAY set display\n\n"); + printf( " -display DISPLAY set display\n"); + printf( " -geometry +x+y set position\n\n"); printf( "Report bugs to <" PACKAGE_BUGREPORT ">.\n" ); } @@ -101,6 +102,7 @@ main( int argc, char** argv ) int opt = 0; const struct option longopts[] = { {"display", required_argument, NULL, 0}, + {"geometry", required_argument, NULL, 0}, {0, 0, 0, 0} }; diff --git a/wmmisc/wmmisc.1 b/wmmisc/wmmisc.1 index ea281c0..d19d318 100644 --- a/wmmisc/wmmisc.1 +++ b/wmmisc/wmmisc.1 @@ -40,6 +40,9 @@ Display help and exit .TP .B \-display DISPLAY Set display +.TP +.B \-geometry +x+y +Set position .SH BUGS Report bugs and suggestion to the current \fBwmmisc\fR maintainer: Jesse S. .