aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaahh Ahh <woohoomoo2u@gmail.com>2017-12-27 17:47:26 -0500
committerAaahh Ahh <woohoomoo2u@gmail.com>2017-12-27 17:49:39 -0500
commitb5c5f60d825263b8bcbcd0be54de7074320c3f7e (patch)
treef913f0a68eb0b1800fd480d1c496a01e928fa124
parent76b9d5e1894d0ea61a435f5ffe3edb10383a24b7 (diff)
Reorganize usage info
-rw-r--r--README.md15
-rw-r--r--xwinwrap.c16
2 files changed, 21 insertions, 10 deletions
diff --git a/README.md b/README.md
index 8cb59bf..4438312 100644
--- a/README.md
+++ b/README.md
@@ -24,11 +24,15 @@ make clean
### Usage
```
-Usage: xwinwrap [-g {w}x{h}+{x}+{y}] [-ni] [-argb] [-fs] [-s] [-st] [-sp] [-a] [-b] [-nf] [-o OPACITY] [-sh SHAPE] [-ov]-- COMMAND ARG1...
+Usage: xwinwrap [-g {w}x{h}+{x}+{y}] [-ni] [-argb] [-fdt]
+ [-fs] [-un] [-s] [-st] [-sp] [-a] [-b] [-nf] [-o OPACITY]
+ [-sh SHAPE] [-ov] [-d] [-debug] -- COMMAND ARG1...
Options:
- -g - Specify Geometry (w=width, h=height, x=x-coord, y=y-coord. ex: -g 640x480+100+100)
+ -g - Specify Geometry (w=width, h=height, x=x-coord,
+ y=y-coord. ex: -g 640x480+100+100)
-ni - Ignore Input
-argb - RGB
+ -fdt - Force WID window a desktop type window
-fs - Full Screen
-un - Undecorated
-s - Sticky
@@ -38,8 +42,11 @@ Options:
-b - Below
-nf - No Focus
-o - Opacity value between 0 to 1 (ex: -o 0.20)
- -sh - Shape of window (choose between rectangle, circle or triangle. Default is rectangle)
- -ov - Set override_redirect flag (For seamless desktop background integration in non-fullscreenmode)
+ -sh - Shape of window (choose between rectangle, circle or
+ triangle. Default is rectangle)
+ -ov - Set override_redirect flag (For seamless desktop
+ background integration in non-fullscreenmode)
+ -d - Daemonize
-debug - Enable debug messages
```
Example
diff --git a/xwinwrap.c b/xwinwrap.c
index 6429a31..d5dbb2e 100644
--- a/xwinwrap.c
+++ b/xwinwrap.c
@@ -177,13 +177,15 @@ static void sigHandler (int sig)
static void usage (void)
{
fprintf(stderr, "%s \n", NAME);
- fprintf (stderr, "\nUsage: %s [-g {w}x{h}+{x}+{y}] [-ni] [-argb] [-fdt] [-fs] [-s] [-st] [-sp] [-a] [-d] "
- "[-b] [-nf] [-o OPACITY] [-sh SHAPE] [-ov]-- COMMAND ARG1...\n", NAME);
+ fprintf (stderr, "\nUsage: %s [-g {w}x{h}+{x}+{y}] [-ni] [-argb] [-fdt]\n \
+ [-fs] [-un] [-s] [-st] [-sp] [-a] [-b] [-nf] [-o OPACITY]\n \
+ [-sh SHAPE] [-ov] [-d] [-debug] -- COMMAND ARG1...\n", NAME);
fprintf (stderr, "Options:\n \
- -g - Specify Geometry (w=width, h=height, x=x-coord, y=y-coord. ex: -g 640x480+100+100)\n \
+ -g - Specify Geometry (w=width, h=height, x=x-coord,\n \
+ y=y-coord. ex: -g 640x480+100+100)\n \
-ni - Ignore Input\n \
-argb - RGB\n \
- -fdt - force WID window a desktop type window\n \
+ -fdt - Force WID window a desktop type window\n \
-fs - Full Screen\n \
-un - Undecorated\n \
-s - Sticky\n \
@@ -193,8 +195,10 @@ static void usage (void)
-b - Below\n \
-nf - No Focus\n \
-o - Opacity value between 0 to 1 (ex: -o 0.20)\n \
- -sh - Shape of window (choose between rectangle, circle or triangle. Default is rectangle)\n \
- -ov - Set override_redirect flag (For seamless desktop background integration in non-fullscreenmode)\n \
+ -sh - Shape of window (choose between rectangle, circle or\n \
+ triangle. Default is rectangle)\n \
+ -ov - Set override_redirect flag (For seamless desktop\n \
+ background integration in non-fullscreenmode)\n \
-d - Daemonize\n \
-debug - Enable debug messages\n");
}