From 1ce58afb1dfd19eb9b213470712300e4b5ccda7d Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 22 Oct 2012 11:56:44 -0500 Subject: [PATCH] more man page changes --- man/compton-trans.1 | 12 +++++++++ man/compton.1 | 65 ++++++++++++++++++++++++++++++++------------- src/compton.c | 2 +- 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/man/compton-trans.1 b/man/compton-trans.1 index 78684a8..97b4d34 100644 --- a/man/compton-trans.1 +++ b/man/compton-trans.1 @@ -1,16 +1,20 @@ .ds q \N'34' .TH compton\-trans 1 + .SH NAME compton\-trans \- an opacity setter tool + .SH SYNOPSIS .nf .B compton-trans [-wncs] [window] -o [opacity] .fi + .SH DESCRIPTION .B compton-trans is a bash script that sets _NET_WM_WINDOW_OPACITY only using standard command-line utilities for X11, including xprop(1) and xwininfo(1). It is similar to other utilities like transset(1) or transset-df(1). + .SH OPTIONS .TP .BI \-w\ window\-id @@ -31,6 +35,7 @@ Specify the new opacity value for the window. This value can be anywhere from 1-100. If it is prefixed with a plus or minus (+/-), this will increment or decrement from the target window's current opacity instead. + .SH EXAMPLES .TP Set window id to opacity of 75%. @@ -47,7 +52,14 @@ compton-trans -s -o 75 .TP Increment current window 5% opacity. compton-trans -c -o +5 + .SH BUGS Please report any you find to https://github.com/chjj/compton. + .SH AUTHORS Christopher Jeffrey (https://github.com/chjj) + +.SH SEE ALSO +.BR compton(1), +.BR xprop(1), +.BR xwininfo(1) diff --git a/man/compton.1 b/man/compton.1 index cdaa234..356b82e 100644 --- a/man/compton.1 +++ b/man/compton.1 @@ -22,6 +22,11 @@ written by Keith Packard). It includes many improvements over the original xcompmgr, including window frame opacity, inactive window transparency, and shadows on argb windows. +.SH EXAMPLE + +$ compton -cC -i 0.6 -e 0.6 -f +$ compton --config ~/compton.conf + .SH OPTIONS .TP .BI \-d\ display @@ -33,19 +38,19 @@ The blur radius for shadows. (default 12) .BI \-o\ opacity The translucency for shadows. (default .75) .TP -.BI \-l\ left-offset +.BI \-l\ left\-offset The left offset for shadows. (default -15) .TP -.BI \-t\ top-offset +.BI \-t\ top\-offset The top offset for shadows. (default -15) .TP -.BI \-I\ fade-in-step +.BI \-I\ fade\-in\-step Opacity change between steps while fading in. (default 0.028) .TP -.BI \-O\ fade-out-step +.BI \-O\ fade\-out\-step Opacity change between steps while fading out. (default 0.03) .TP -.BI \-D\ fade-delta-time +.BI \-D\ fade\-delta\-time The time between steps in a fade in milliseconds. (default 10) .TP .BI \-m\ opacity @@ -77,45 +82,45 @@ Opacity of window titlebars and borders. (0.1 - 1.0) Don't draw shadows on DND windows .TP .BI \-b -Daemonize process. +Daemonize/background process. .TP .BI \-S Enable synchronous operation (for debugging). .TP -.BI \--config\ path +.BI \-\-config\ path Look for configuration file at the path. .TP -.BI \--shadow-red\ value +.BI \-\-shadow\-red\ value Red color value of shadow (0.0 - 1.0, defaults to 0). .TP -.BI \--shadow-green\ value +.BI \-\-shadow\-green\ value Green color value of shadow (0.0 - 1.0, defaults to 0). .TP -.BI \--shadow-blue\ value +.BI \-\-shadow\-blue\ value Blue color value of shadow (0.0 - 1.0, defaults to 0). .TP -.BI \--inactive-opacity-override +.BI \-\-inactive\-opacity\-override Inactive opacity set by -i overrides value of _NET_WM_OPACITY. .TP -.BI \--inactive-dim\ value +.BI \-\-inactive\-dim\ value Dim inactive windows. (0.0 - 1.0, defaults to 0) .TP -.BI \--mark-wmwin-focused +.BI \-\-mark\-wmwin\-focused Try to detect WM windows and mark them as active. .TP -.BI \--shadow-exclude\ condition +.BI \-\-shadow\-exclude\ condition Exclude conditions for shadows. .TP -.BI \--mark-ovredir-focused +.BI \--mark\-ovredir\-focused Mark over-redirect windows as active. .TP -.BI \--no-fading-openclose +.BI \-\-no\-fading\-openclose Do not fade on window open/close. .TP -.BI \--shadow-ignore-shaped +.BI \-\-shadow\-ignore\-shaped Do not paint shadows on shaped windows. .TP -.BI \--detect-rounded-corners +.BI \-\-detect\-rounded\-corners Try to detect windows with rounded corners and don't consider them shaped windows. .TP @@ -135,6 +140,28 @@ flag is "i" (ignore case). is the actual pattern string. +.SH CONFIGURATION +(A more robust sample configuration file exists in the compton +repository.) + +.B Example + +.B ~/compton.conf: + + # Shadows + shadow = true; + + # Opacity + inactive-opacity = 0.8; + frame-opacity = 0.7; + + # Fades + fading = true; + +.B Run with: + + $ compton --config ~/compton.conf + .SH BUGS Please report any you find to https://github.com/chjj/compton. @@ -146,4 +173,4 @@ Compton by Christopher Jeffrey, based on Dana Jansens' original work, with numerous contributions from Richard Grenville. .SH SEE ALSO -.BR compton-trans (1) +.BR compton-trans(1) diff --git a/src/compton.c b/src/compton.c index fe522f4..3fa5996 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2983,7 +2983,7 @@ usage(void) { "-G\n" " Don't draw shadows on DND windows\n" "-b\n" - " Daemonize process.\n" + " Daemonize/background process.\n" "-S\n" " Enable synchronous operation (for debugging).\n" "--config path\n"