picom.conf (8079B)
1 # Thank you code_nomad: http://9m.no/ꪯ鵞 2 # and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton 3 4 ################################# 5 # 6 # Backend 7 # 8 ################################# 9 10 # Backend to use: "xrender" or "glx". 11 # GLX backend is typically much faster but depends on a sane driver. 12 backend = "glx"; 13 14 ################################# 15 # 16 # GLX backend 17 # 18 ################################# 19 20 glx-no-stencil = true; 21 22 # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. 23 # My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, 24 # but a 20% increase when only 1/4 is. 25 # My tests on nouveau show terrible slowdown. 26 glx-copy-from-front = false; 27 28 # GLX backend: Use MESA_copy_sub_buffer to do partial screen update. 29 # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. 30 # May break VSync and is not available on some drivers. 31 # Overrides --glx-copy-from-front. 32 # glx-use-copysubbuffermesa = true; 33 34 # GLX backend: Avoid rebinding pixmap on window damage. 35 # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). 36 # Recommended if it works. 37 glx-no-rebind-pixmap = true; 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 round-borders = 15; 51 52 ################################# 53 # 54 # Shadows 55 # 56 ################################# 57 58 # Enabled client-side shadows on windows. 59 shadow = true; 60 # The blur radius for shadows. (default 12) 61 shadow-radius = 14; 62 # The left offset for shadows. (default -15) 63 shadow-offset-x = -7; 64 # The top offset for shadows. (default -15) 65 shadow-offset-y = -7; 66 # The translucency for shadows. (default .75) 67 shadow-opacity = .5; 68 69 # Set if you want different colour shadows 70 # shadow-red = 0.0; 71 # shadow-green = 0.0; 72 # shadow-blue = 0.0; 73 74 # The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches 75 # (most applications are fine, only apps that do weird things with xshapes or argb are affected). 76 # 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. 77 shadow-exclude = [ 78 "! name~=''", 79 "name = 'Notification'", 80 "name = 'Plank'", 81 "name *= 'compton'", 82 "name *= 'picom'", 83 "name *= 'conky'", 84 "class_g ?= 'dmenu'", 85 "_GTK_FRAME_EXTENTS@:c", 86 "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" 87 ]; 88 89 # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) 90 shadow-ignore-shaped = false; 91 92 ################################# 93 # 94 # Opacity 95 # 96 ################################# 97 98 inactive-opacity = 1; 99 active-opacity = 1; 100 frame-opacity = 1; 101 inactive-opacity-override = false; 102 opacity-rule = [ 103 "80:class_g = 'copyq'", 104 "90:name = 'alttab'", 105 # no opacity on sticky windows 106 "99:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" 107 ]; 108 109 # Dim inactive windows. (0.0 - 1.0) 110 inactive-dim = 0.05; 111 112 # Do not let dimness adjust based on window opacity. 113 # inactive-dim-fixed = true; 114 # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. 115 blur-background = true; 116 # Blur background of opaque windows with transparent frames as well. 117 #blur-background-frame = true; 118 # Do not let blur radius adjust based on window opacity. 119 blur-background-fixed = false; 120 blur: { 121 method = "dual_kawase"; 122 strength = 5; 123 background = true; 124 background-frame = false; 125 background-fixed = false; 126 } 127 blur-background-exclude = [ 128 "window_type = 'dock'", 129 "window_type = 'desktop'" 130 ]; 131 132 ################################# 133 # 134 # Fading 135 # 136 ################################# 137 138 # Fade windows during opacity changes. 139 fading = true; 140 # The time between steps in a fade in milliseconds. (default 10). 141 #fade-delta = 4; 142 #fade-delta = 10; 143 # Opacity change between steps while fading in. (default 0.028). 144 #fade-in-step = 0.03; 145 fade-in-step = 0.056; 146 # Opacity change between steps while fading out. (default 0.03). 147 fade-out-step = 0.06; 148 # Fade windows in/out when opening/closing 149 # no-fading-openclose = true; 150 151 # Specify a list of conditions of windows that should not be faded. 152 fade-exclude = [ 153 "class_g = 'Conky'" 154 ]; 155 156 ################################# 157 # 158 # Other 159 # 160 ################################# 161 162 # Try to detect WM windows and mark them as active. 163 mark-wmwin-focused = true; 164 # Mark all non-WM but override-redirect windows active (e.g. menus). 165 mark-ovredir-focused = true; 166 # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. 167 # Usually more reliable but depends on a EWMH-compliant WM. 168 use-ewmh-active-win = true; 169 # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. 170 detect-rounded-corners = false; 171 172 # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. 173 # This prevents opacity being ignored for some apps. 174 # For example without this enabled my xfce4-notifyd is 100% opacity no matter what. 175 detect-client-opacity = true; 176 177 # Vertical synchronization: match the refresh rate of the monitor 178 vsync = true; 179 180 # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. 181 # Reported to have no effect, though. 182 dbe = false; 183 184 # Limit picom to repaint at most once every 1 / refresh_rate second to boost performance. 185 # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, 186 # unless you wish to specify a lower refresh rate than the actual value. 187 #sw-opti = true; 188 189 # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. 190 # Known to cause flickering when redirecting/unredirecting windows. 191 unredir-if-possible = false; 192 193 # Specify a list of conditions of windows that should always be considered focused. 194 focus-exclude = [ 195 "ANTIDIM_FLAG@:8c", 196 "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" 197 ]; 198 199 # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. 200 detect-transient = true; 201 # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. 202 # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. 203 detect-client-leader = true; 204 205 ################################# 206 # 207 # Window type settings 208 # 209 ################################# 210 211 wintypes: 212 { 213 tooltip = 214 { 215 # fade: Fade the particular type of windows. 216 fade = true; 217 # shadow: Give those windows shadow 218 shadow = false; 219 # opacity: Default opacity for the type of windows. 220 opacity = 0.85; 221 # focus: Whether to always consider windows of this type focused. 222 focus = true; 223 }; 224 }; 225 226 ###################### 227 # 228 # XSync 229 # See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d 230 # 231 ###################### 232 233 # Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users. 234 xrender-sync-fence = true; 235 236 animations = true; 237 animation-stiffness = 300.0; 238 animation-dampening = 25.0; 239 animation-clamping = true; 240 animation-mass = 1; 241 #animation-window-mass = 1.0; 242 #animation-delta = 10; 243 animation-for-unmap-window = "zoom"; 244 animation-for-open-window = "zoom"; 245 #animation-for-menu-window = "slide-up"; 246 #animation-for-transient-window = "slide-up";