Reorganize usage info

This commit is contained in:
Aaahh Ahh 2017-12-27 17:47:26 -05:00
parent 76b9d5e189
commit b5c5f60d82
2 changed files with 21 additions and 10 deletions

View file

@ -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

View file

@ -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");
}