compton.conf (8173B)
1 ################################ 2 # 3 # Backend 4 # 5 ################################# 6 7 # Backend to use: "xrender" or "glx". 8 # GLX backend is typically much faster but depends on a sane driver. 9 #backend = "xrender"; 10 backend = "glx"; 11 12 ################################# 13 # 14 # GLX backend 15 # 16 ################################# 17 18 glx-no-stencil = true; 19 20 # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. 21 # My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, 22 # but a 20% increase when only 1/4 is. 23 # My tests on nouveau show terrible slowdown. 24 # Useful with --glx-swap-method, as well. 25 glx-copy-from-front = false; 26 27 # GLX backend: Use MESA_copy_sub_buffer to do partial screen update. 28 # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. 29 # May break VSync and is not available on some drivers. 30 # Overrides --glx-copy-from-front. 31 # glx-use-copysubbuffermesa = true; 32 33 # GLX backend: Avoid rebinding pixmap on window damage. 34 # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). 35 # Recommended if it works. 36 # glx-no-rebind-pixmap = true; 37 38 39 # GLX backend: GLX buffer swap method we assume. 40 # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). 41 # undefined is the slowest and the safest, and the default value. 42 # copy is fastest, but may fail on some drivers, 43 # 2-6 are gradually slower but safer (6 is still faster than 0). 44 # Usually, double buffer means 2, triple buffer means 3. 45 # buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. 46 # Useless with --glx-use-copysubbuffermesa. 47 # Partially breaks --resize-damage. 48 # Defaults to undefined. 49 glx-swap-method = "undefined"; 50 51 ################################# 52 # 53 # Shadows 54 # 55 ################################# 56 57 # Enabled client-side shadows on windows. 58 shadow = true; 59 # Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows. 60 #clear-shadow = true; 61 # The blur radius for shadows. (default 12) 62 shadow-radius = 8; 63 # The left offset for shadows. (default -15) 64 shadow-offset-x = -5; 65 # The top offset for shadows. (default -15) 66 shadow-offset-y = -5; 67 # The translucency for shadows. (default .75) 68 shadow-opacity = 0.2; 69 70 # Set if you want different colour shadows 71 # shadow-red = 0.0; 72 # shadow-green = 0.0; 73 # shadow-blue = 0.0; 74 75 # The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches 76 # (most applications are fine, only apps that do weird things with xshapes or argb are affected). 77 # This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. 78 shadow-exclude = [ 79 "name = 'Notification'", 80 "name = 'dzen title'", 81 "name = 'Docky'" 82 ]; 83 # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) 84 shadow-ignore-shaped = false; 85 86 ################################# 87 # 88 # Opacity 89 # 90 ################################# 91 92 inactive-opacity = 1; 93 active-opacity = 1; 94 frame-opacity = 1; 95 inactive-opacity-override = false; 96 97 # Dim inactive windows. (0.0 - 1.0) 98 # inactive-dim = 0.2; 99 # Do not let dimness adjust based on window opacity. 100 # inactive-dim-fixed = true; 101 # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. 102 # blur-background = true; 103 # Blur background of opaque windows with transparent frames as well. 104 # blur-background-frame = true; 105 # Do not let blur radius adjust based on window opacity. 106 blur-background-fixed = false; 107 blur-background-exclude = [ 108 # "window_type = 'dock'", 109 "window_type = 'desktop'" 110 ]; 111 112 ################################# 113 # 114 # Fading 115 # 116 ################################# 117 118 # Fade windows during opacity changes. 119 fading = false; 120 # The time between steps in a fade in milliseconds. (default 10). 121 fade-delta = 5; 122 # Opacity change between steps while fading in. (default 0.028). 123 fade-in-step = 0.03; 124 # Opacity change between steps while fading out. (default 0.03). 125 fade-out-step = 0.03; 126 # Fade windows in/out when opening/closing 127 # no-fading-openclose = true; 128 129 # Specify a list of conditions of windows that should not be faded. 130 fade-exclude = [ ]; 131 132 ################################# 133 # 134 # Other 135 # 136 ################################# 137 138 # Try to detect WM windows and mark them as active. 139 mark-wmwin-focused = true; 140 # Mark all non-WM but override-redirect windows active (e.g. menus). 141 mark-ovredir-focused = true; 142 # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. 143 # Usually more reliable but depends on a EWMH-compliant WM. 144 use-ewmh-active-win = true; 145 # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. 146 detect-rounded-corners = true; 147 148 # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. 149 # This prevents opacity being ignored for some apps. 150 # For example without this enabled my xfce4-notifyd is 100% opacity no matter what. 151 detect-client-opacity = true; 152 153 # Specify refresh rate of the screen. 154 # If not specified or 0, compton will try detecting this with X RandR extension. 155 refresh-rate = 0; 156 157 # Set VSync method. VSync methods currently available: 158 # none: No VSync 159 # drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. 160 # opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers. 161 # opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers. 162 # 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. 163 # opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use. 164 # (Note some VSync methods may not be enabled at compile time.) 165 vsync = "none"; 166 167 # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. 168 # Reported to have no effect, though. 169 dbe = false; 170 # Painting on X Composite overlay window. Recommended. 171 #paint-on-overlay = true; 172 173 # Limit compton to repaint at most once every 1 / refresh_rate second to boost performance. 174 # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, 175 # unless you wish to specify a lower refresh rate than the actual value. 176 sw-opti = false; 177 178 # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. 179 # Known to cause flickering when redirecting/unredirecting windows. 180 # paint-on-overlay may make the flickering less obvious. 181 unredir-if-possible = true; 182 183 # Specify a list of conditions of windows that should always be considered focused. 184 focus-exclude = [ ]; 185 186 # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. 187 detect-transient = true; 188 # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. 189 # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. 190 detect-client-leader = true; 191 192 ################################# 193 # 194 # Window type settings 195 # 196 ################################# 197 198 wintypes: 199 { 200 tooltip = 201 { 202 # fade: Fade the particular type of windows. 203 fade = true; 204 # shadow: Give those windows shadow 205 shadow = false; 206 # opacity: Default opacity for the type of windows. 207 opacity = 0.85; 208 # focus: Whether to always consider windows of this type focused. 209 focus = true; 210 }; 211 212 dock = 213 { 214 shadow = false; 215 }; 216 217 dnd = 218 { 219 shadow = false; 220 }; 221 222 popup_menu = 223 { 224 opacity = 1; 225 }; 226 227 dropdown_menu = 228 { 229 opacity = 1; 230 }; 231 };