. . .
at main 291 lines 9.1 kB view raw
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. 12backend = "glx"; 13 14################################# 15# 16# GLX backend 17# 18################################# 19 20glx-no-stencil = false; 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. 26glx-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"; #deprecated ! 50#use-damage = true 51 52################################# 53# 54# Shadows 55# 56################################# 57 58# Enabled client-side shadows on windows. 59shadow = false; 60# The blur radius for shadows. (default 12) 61shadow-radius = 5; 62# The left offset for shadows. (default -15) 63shadow-offset-x = 1; 64# The top offset for shadows. (default -15) 65shadow-offset-y = 1; 66# The translucency for shadows. (default .75) 67shadow-opacity = 0.3; 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. 77shadow-exclude = [ 78 "! name~=''", 79 "name = 'Notification'", 80 "name = 'Plank'", 81 "name = 'Docky'", 82 "name = 'Kupfer'", 83 "name = 'xfce4-notifyd'", 84 "name *= 'VLC'", 85 "name *= 'compton'", 86 "name *= 'picom'", 87 "name *= 'Chromium'", 88 "name *= 'Chrome'", 89 "name *= 'polybar'", 90 "name *= 'rofi'", 91 "name *= 'vulkan window'", 92 "name *= 'OpenGL example'", 93 "class_g = 'Firefox' && argb", 94 "class_g = 'Conky'", 95 "class_g = 'Kupfer'", 96 "class_g = 'Synapse'", 97 "class_g ?= 'Notify-osd'", 98 "class_g ?= 'Cairo-dock'", 99 "class_g ?= 'Xfce4-notifyd'", 100 "class_g ?= 'Xfce4-power-manager'", 101 "class_g ?= 'Dmenu'", 102 "class_g ?= 'Dunst'", 103# disables shadows on i3 frames 104 "class_g ?= 'i3-frame'", 105 "_GTK_FRAME_EXTENTS@:c", 106 "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" 107]; 108# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) 109shadow-ignore-shaped = false; 110 111################################# 112# 113# Opacity 114# 115################################# 116 117inactive-opacity = 1; 118active-opacity = 1; 119frame-opacity = 1; 120inactive-opacity-override = false; 121 122opacity-rule = [ 123 "90:class_g = 'URxvt' && focused", 124 "90:class_g = 'Alacritty' && focused", 125 "60:class_g = 'URxvt' && !focused", 126 "70:class_g = 'Alacritty' && !focused", 127 #"90:focused", 128 "100:class_g = 'Rofi'", 129 "70:!focused" 130]; 131 132# Dim inactive windows. (0.0 - 1.0) 133# inactive-dim = 0.2; 134# Do not let dimness adjust based on window opacity. 135# inactive-dim-fixed = true; 136# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. 137blur-background = true; 138# Blur background of opaque windows with transparent frames as well. 139# blur-background-frame = true; 140 141 142 143# Do not let blur radius adjust based on window opacity. 144blur-background-fixed = false; 145blur-background-exclude = [ 146 "window_type = 'dock'", 147 "window_type = 'desktop'", 148 "class_g = 'Rofi'", 149 "name *= 'OpenGL example'", 150 "name *= 'Triangle'" 151]; 152 153################################# 154# 155# Fading 156# 157################################# 158 159# Fade windows during opacity changes. 160fading = false; 161# The time between steps in a fade in milliseconds. (default 10). 162fade-delta = 1; 163# Opacity change between steps while fading in. (default 0.028). 164fade-in-step = 0.01; 165# Opacity change between steps while fading out. (default 0.03). 166fade-out-step = 0.01; 167# Fade windows in/out when opening/closing 168no-fading-openclose = true; 169 170# Specify a list of conditions of windows that should not be faded. 171fade-exclude = [ ]; 172 173################################# 174# 175# Other 176# 177################################# 178 179# Try to detect WM windows and mark them as active. 180mark-wmwin-focused = true; 181# Mark all non-WM but override-redirect windows active (e.g. menus). 182mark-ovredir-focused = true; 183# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. 184# Usually more reliable but depends on a EWMH-compliant WM. 185use-ewmh-active-win = true; 186# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. 187detect-rounded-corners = true; 188 189# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. 190# This prevents opacity being ignored for some apps. 191# For example without this enabled my xfce4-notifyd is 100% opacity no matter what. 192detect-client-opacity = true; 193 194# Specify refresh rate of the screen. 195# If not specified or 0, picom will try detecting this with X RandR extension. 196# DEPRECATED 197#refresh-rate = 0; 198 199# Vertical synchronization: match the refresh rate of the monitor 200vsync = false; 201 202# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. 203# Reported to have no effect, though. 204dbe = false; 205 206# Limit picom to repaint at most once every 1 / refresh_rate second to boost performance. 207# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, 208# unless you wish to specify a lower refresh rate than the actual value. 209#sw-opti = true; 210 211# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. 212# Known to cause flickering when redirecting/unredirecting windows. 213unredir-if-possible = true; 214 215# Specify a list of conditions of windows that should always be considered focused. 216focus-exclude = [ "class_g = 'Cairo-clock'" ]; 217 218# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. 219detect-transient = true; 220# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. 221# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. 222detect-client-leader = true; 223 224################################# 225# 226# Window type settings 227# 228################################# 229 230wintypes : 231{ 232 tooltip : 233 { 234 fade = true; 235 shadow = false; 236 opacity = 0.85; 237 focus = true; 238 }; 239 fullscreen : 240 { 241 fade = true; 242 shadow = false; 243 opacity = 1; 244 focus = true; 245 }; 246 notification : 247 { 248 }; 249}; 250 251###################### 252# 253# XSync 254# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d 255# 256###################### 257 258# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users. 259xrender-sync-fence = true; 260 261#opacity-rule = [ 262#"99:name *?= 'Call'", 263#"99:class_g = 'Chromium'", 264#"99:name *?= 'Conky'", 265#"99:class_g = 'Darktable'", 266#"50:class_g = 'Dmenu'", 267#"99:name *?= 'Event'", 268#"99:class_g = 'Firefox'", 269#"99:class_g = 'GIMP'", 270#"99:name *?= 'Image'", 271#"99:class_g = 'Lazpaint'", 272#"99:class_g = 'Midori'", 273#"99:name *?= 'Minitube'", 274#"99:class_g = 'Mousepad'", 275#"99:name *?= 'MuseScore'", 276#"90:name *?= 'Page Info'", 277#"99:name *?= 'Pale Moon'", 278#"90:name *?= 'Panel'", 279#"99:class_g = 'Pinta'", 280#"90:name *?= 'Restart'", 281#"99:name *?= 'sudo'", 282#"99:name *?= 'Screenshot'", 283#"99:class_g = 'Viewnior'", 284#"99:class_g = 'VirtualBox'", 285#"99:name *?= 'VLC'", 286#"99:name *?= 'Write'", 287#"93:class_g = 'URxvt' && !_NET_WM_STATE@:32a", 288#"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", 289#"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" 290#]; 291