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