You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add stoppaint_force option, controlled via D-Bus, to stop painting
completely, which may look better than unredirecting the screen,
sometimes. (#41)
- Add x2, y2 matching targets.
- Update documentation.
Copy file name to clipboardexpand all lines: man/compton.1.asciidoc
+50-20
Original file line number
Diff line number
Diff line change
@@ -98,11 +98,17 @@ OPTIONS
98
98
*--inactive-opacity-override*::
99
99
Let inactive opacity set by *-i* overrides the windows' '_NET_WM_OPACITY' values.
100
100
101
-
*--inactive-dim* value::
101
+
*--active-opacity*'OPACITY'::
102
+
Default opacity for active windows. (0.0 - 1.0)
103
+
104
+
*--inactive-dim*'VALUE'::
102
105
Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
103
106
104
107
*--mark-wmwin-focused*::
105
-
Try to detect WM windows and mark them as active.
108
+
Try to detect WM windows (a non-override-redirect window with no child that has `WM_STATE`) and mark them as active.
109
+
110
+
*--mark-ovredir-focused*::
111
+
Mark override-redirect windows that doesn't have a child window with `WM_STATE` focused.
106
112
107
113
*--no-fading-openclose*::
108
114
Do not fade on window open/close.
@@ -124,17 +130,20 @@ OPTIONS
124
130
+
125
131
--
126
132
* 'none': No VSync
127
-
* 'drm': VSync with 'DRM_IOCTL_WAIT_VBLANK'. May only work on some drivers. Experimental.
128
-
* 'opengl': Try to VSync with 'SGI_video_sync' OpenGL extension. Only work on some drivers. Experimental.
129
-
* 'opengl-oml': Try to VSync with 'OML_sync_control' OpenGL extension. Only work on some drivers. Experimental.
133
+
* 'drm': VSync with 'DRM_IOCTL_WAIT_VBLANK'. May only work on some drivers.
134
+
* 'opengl': Try to VSync with 'SGI_video_sync' OpenGL extension. Only work on some drivers.
135
+
* 'opengl-oml': Try to VSync with 'OML_sync_control' OpenGL extension. Only work on some drivers.
130
136
* 'opengl-swc': Try to VSync with 'SGI_swap_control' OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn't have the effect of *--sw-opti* unlike other methods. Experimental.
131
137
* 'opengl-mswc': Try to VSync with 'MESA_swap_control' OpenGL extension. Basically the same as 'opengl-swc' above, except the extension we use.
132
138
133
139
(Note some VSync methods may not be enabled at compile time.)
134
140
--
135
141
142
+
*--vsync-aggressive*::
143
+
Attempt to send painting request before VBlank and do XFlush() during VBlank. Reported to work pretty terribly. This switch may be lifted out at any moment.
144
+
136
145
*--alpha-step*'VALUE'::
137
-
Step for pregenerating alpha pictures. (0.01 - 1.0, defaults to 0.03)
146
+
X Render backend: Step for pregenerating alpha pictures. (0.01 - 1.0, defaults to 0.03)
138
147
139
148
*--dbe*::
140
149
Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. Reported to have no effect, though.
@@ -143,13 +152,16 @@ OPTIONS
143
152
Painting on X Composite overlay window instead of on root window.
144
153
145
154
*--sw-opti*::
146
-
Limit compton to repaint at most once every 1 / 'refresh_rate' second to boost performance. Experimental. This should not be used with *--vsync* as *--vsync* essentially does *--sw-opti*'s job already, unless you wish to specify a lower refresh rate than the actual value.
155
+
Limit compton to repaint at most once every 1 / 'refresh_rate' second to boost performance. This should not be used with *--vsync*drm/opengl/opengl-oml as they essentially does *--sw-opti*'s job already, unless you wish to specify a lower refresh rate than the actual value.
147
156
148
157
*--use-ewmh-active-win*::
149
-
Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, provided that the WM supports it. Experimental.
158
+
Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, provided that the WM supports it.
159
+
160
+
*--respect-prop-shadow*::
161
+
Respect '_COMPTON_SHADOW'. This a prototype-level feature, which you must not rely on.
150
162
151
163
*--unredir-if-possible*::
152
-
Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows. Known to cause flickering when redirecting/unredirecting windows. *--paint-on-overlay* may make the flickering less obvious. Experimental.
164
+
Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows. Known to cause flickering when redirecting/unredirecting windows. *--paint-on-overlay* may make the flickering less obvious.
153
165
154
166
*--shadow-exclude*'CONDITION'::
155
167
Specify a list of conditions of windows that should have no shadow.
@@ -178,7 +190,7 @@ OPTIONS
178
190
*--blur-background-fixed*::
179
191
Use fixed blur strength rather than adjusting according to window opacity.
180
192
181
-
*--blur-kern*matrix::
193
+
*--blur-kern*'MATRIX'::
182
194
Specify the blur convolution kernel, with the following format:
May also be one of the predefined kernels: `3x3box` (default), `5x5box`, `7x7box`, `3x3gaussian`, `5x5gaussian`, `7x7gaussian`, `9x9gaussian`, `11x11gaussian`. All Guassian kernels are generated with sigma = 0.84089642 . You may use the accompanied `compton-convgen.py` to generate blur kernels.
197
209
198
-
*--resize-damage* integer::
210
+
*--blur-background-exclude*'CONDITION'::
211
+
Exclude conditions for background blur.
212
+
213
+
*--resize-damage*'INTEGER'::
199
214
Resize damaged region by a specific number of pixels. A positive value enlarges it while a negative one shrinks it. If the value is positive, those additional pixels will not be actually painted to screen, only used in blur calculation, and such. (Due to technical limitations, with *--dbe* or *--glx-swap-method*, those pixels will still be incorrectly painted to screen.) Primarily used to fix the line corruption issues of blur, in which case you should use the blur radius value here (e.g. with a 3x3 kernel, you should use *--resize-damage* 1, with a 5x5 one you use *--resize-damage* 2, and so on). May or may not work with `--glx-no-stencil`. Shrinking doesn't function correctly.
200
215
201
-
*--invert-color-include*condition::
216
+
*--invert-color-include*'CONDITION'::
202
217
Specify a list of conditions of windows that should be painted with inverted color. Resource-hogging, and is not well tested.
203
218
204
-
*--backend* backend::
205
-
Specify the backend to use: 'xrender` or 'glx'. GLX (OpenGL) backend generally has much superior performance as far as you have a graphic card/chip and driver.
219
+
*--opacity-rule*'OPACITY':'CONDITION'::
220
+
Specify a list of opacity rules, in the format `PERCENT:PATTERN`, like `50:name *= "Firefox"`. compton-trans is recommended over this. Note we do not distinguish 100% and unset, and we don't make any guarantee about possible conflicts with other programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
221
+
222
+
*--shadow-exclude-reg*'GEOMETRY'::
223
+
Specify a X geometry that describes the region in which shadow should not be painted in, such as a dock window region. Use `--shadow-exclude-reg x10+0-0`, for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
224
+
225
+
*--backend*'BACKEND'::
226
+
Specify the backend to use: `xrender` or `glx`. GLX (OpenGL) backend generally has much superior performance as far as you have a graphic card/chip and driver.
206
227
207
228
*--glx-no-stencil*::
208
-
GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. Might cause incorrect opacity when rendering transparent content and cannot work with *--blur-background*. My tests show a 15% performance boost.
229
+
GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. Might cause incorrect opacity when rendering transparent content (but never practically happened) and may not work with *--blur-background*. My tests show a 15% performance boost. Recommended.
209
230
210
231
*--glx-copy-from-front*::
211
-
GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, but a 20% increase when only 1/4 is. My tests on nouveau show terrible slowdown.
232
+
GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, but a 20% increase when only 1/4 is. My tests on nouveau show terrible slowdown. Useful with `--glx-swap-method`, as well.
212
233
213
234
*--glx-use-copysubbuffermesa*::
214
-
GLX backend: Use MESA_copy_sub_buffer to do partial screen update. My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. May break VSync and is not available on some drivers. Overrides *--glx-copy-from-front*.
235
+
GLX backend: Use 'MESA_copy_sub_buffer' to do partial screen update. My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. May break VSync and is not available on some drivers. Overrides *--glx-copy-from-front*.
215
236
216
237
*--glx-no-rebind-pixmap*::
217
-
GLX backend: Avoid rebinding pixmap on window damage. Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
238
+
GLX backend: Avoid rebinding pixmap on window damage. Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). Recommended if it works.
GLX backend: GLX buffer swap method we assume. Could be `undefined` (0), `copy` (1), `exchange` (2), 3-6, or `buffer-age` (-1). `undefined` is the slowest and the safest, and the default value. `copy` is fastest, but may fail on some drivers, 2-6 are gradually slower but safer (6 is still faster than 0). Usually, double buffer means 2, triple buffer means 3. `buffer-age` means auto-detect using 'GLX_EXT_buffer_age', supported by some drivers. Useless with *--glx-use-copysubbuffermesa*. Partially breaks `--resize-damage`. Defaults to `undefined`.
221
242
243
+
*--glx-use-gpushader4*::
244
+
GLX backend: Use 'GL_EXT_gpu_shader4' for some optimization on blur GLSL code. My tests on GTX 670 show no noticeable effect.
245
+
222
246
*--dbus*::
223
247
Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
224
248
249
+
*--benchmark*'CYCLES'::
250
+
Benchmark mode. Repeatedly paint until reaching the specified cycles.
251
+
252
+
*--benchmark-wid*'WINDOW_ID'::
253
+
Specify window ID to repaint in benchmark mode. If omitted or is 0, the whole screen is repainted.
254
+
225
255
FORMAT OF CONDITIONS
226
256
--------------------
227
257
Some options accept a condition string to match certain windows. A condition string is formed by one or more conditions, joined by logical operators.
@@ -240,7 +270,7 @@ With greater-than/less-than operators it looks like:
240
270
241
271
'NEGATION' (optional) is one or more exclamation marks;
242
272
243
-
'TARGET' is either a predefined target name, or the name of a window property to match. Supported predefined targets are `id`, `override_redirect`, `argb` (whether the window has an ARGB visual), `focused`, `wmwin` (whether the window looks like a WM window, i.e. has no child window with `WM_STATE` and is not override-redirected), `client` (ID of client window), `window_type` (window type in string), `leader` (ID of window leader), `name`, `class_g` (= `WM_CLASS[1]`), `class_i` (= `WM_CLASS[0]`), and `role`.
273
+
'TARGET' is either a predefined target name, or the name of a window property to match. Supported predefined targets are `id`, `x`, `y`, `x2` (x + widthb), `y2`, `width`, `height`, `widthb` (width + 2 * border), `heightb`, `override_redirect`, `argb` (whether the window has an ARGB visual), `focused`, `wmwin` (whether the window looks like a WM window, i.e. has no child window with `WM_STATE` and is not override-redirected), `client` (ID of client window), `window_type` (window type in string), `leader` (ID of window leader), `name`, `class_g` (= `WM_CLASS[1]`), `class_i` (= `WM_CLASS[0]`), and `role`.
244
274
245
275
'CLIENT/FRAME' is a single `@` if the window attribute should be be looked up on client window, nothing if on frame window;
0 commit comments