all repos — dotfiles @ 853dcd099404982d334341e55daa9ab14eb8effb

my *nix dotfiles

config/compton.conf (view raw)

  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.
 61no-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.
 65shadow-radius = 4;
 66shadow-opacity = 0.6;
 67shadow-offset-x = -6;
 68shadow-offset-y = -2;clear-shadow = true;
 69# The blur radius for shadows. (default 12)
 70
 71# Set if you want different colour shadows
 72# shadow-red = 0.0;
 73# shadow-green = 0.0;
 74# shadow-blue = 0.0;
 75
 76# 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
 77# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
 78# 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.
 79shadow-exclude = [
 80    "! name~=''",
 81    "name = 'Notification'",
 82    "name = 'Plank'",
 83    "name = 'Docky'",
 84    "name = 'Kupfer'",
 85    "name = 'xfce4-notifyd'",
 86    "name *= 'VLC'",
 87    "name *= 'compton'",
 88    "name *= 'Chromium'",
 89    "name *= 'Chrome'",
 90    "class_g = 'Conky'",
 91    "class_g = 'Kupfer'",
 92    "class_g = 'Synapse'",
 93    "class_g ?= 'Notify-osd'",
 94    "class_g ?= 'Cairo-dock'",
 95    "class_g ?= 'Xfce4-notifyd'",
 96    "class_g ?= 'Xfce4-power-manager'",
 97    "_GTK_FRAME_EXTENTS@:c"
 98];
 99# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
100shadow-ignore-shaped = false;
101
102#################################
103#
104# Opacity
105#
106#################################
107
108menu-opacity = 1;
109inactive-opacity = 1;
110active-opacity = 1;
111frame-opacity = 1;
112inactive-opacity-override = false;
113alpha-step = 0.06;
114
115# Dim inactive windows. (0.0 - 1.0)
116#inactive-dim = 0.2;
117# Do not let dimness adjust based on window opacity.
118# inactive-dim-fixed = true;
119# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
120 blur-background = true;
121# Blur background of opaque windows with transparent frames as well.
122# blur-background-frame = true;
123# Do not let blur radius adjust based on window opacity.
124blur-background-fixed = false;
125blur-background-exclude = [
126    "window_type = 'dock'",
127    "window_type = 'desktop'"
128];
129
130#################################
131#
132# Fading
133#
134#################################
135
136# Fade windows during opacity changes.
137fading = true;
138# The time between steps in a fade in milliseconds. (default 10).
139fade-delta = 2;
140# Opacity change between steps while fading in. (default 0.028).
141fade-in-step = 0.03;
142# Opacity change between steps while fading out. (default 0.03).
143fade-out-step = 0.03;
144# Fade windows in/out when opening/closing
145# no-fading-openclose = true;
146
147# Specify a list of conditions of windows that should not be faded.
148fade-exclude = [ ];
149
150#################################
151#
152# Other
153#
154#################################
155
156# Try to detect WM windows and mark them as active.
157mark-wmwin-focused = true;
158# Mark all non-WM but override-redirect windows active (e.g. menus).
159mark-ovredir-focused = true;
160# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
161# Usually more reliable but depends on a EWMH-compliant WM.
162use-ewmh-active-win = true;
163# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
164detect-rounded-corners = true;
165
166# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
167# This prevents opacity being ignored for some apps.
168# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
169detect-client-opacity = true;
170
171# Specify refresh rate of the screen.
172# If not specified or 0, compton will try detecting this with X RandR extension.
173refresh-rate = 0;
174
175# Set VSync method. VSync methods currently available:
176# none: No VSync
177# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
178# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
179# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
180# 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.
181# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
182# (Note some VSync methods may not be enabled at compile time.)
183vsync = "opengl-swc";
184
185# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
186# Reported to have no effect, though.
187dbe = false;
188# Painting on X Composite overlay window. Recommended.
189paint-on-overlay = true;
190
191# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
192# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
193# unless you wish to specify a lower refresh rate than the actual value.
194sw-opti = true;
195
196# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
197# Known to cause flickering when redirecting/unredirecting windows.
198# paint-on-overlay may make the flickering less obvious.
199unredir-if-possible = true;
200
201# Specify a list of conditions of windows that should always be considered focused.
202focus-exclude = [ ];
203
204# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
205detect-transient = true;
206# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
207# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
208detect-client-leader = true;
209
210#################################
211#
212# Window type settings
213#
214#################################
215
216wintypes:
217{
218    tooltip =
219    {
220        # fade: Fade the particular type of windows.
221        fade = true;
222        # shadow: Give those windows shadow
223        shadow = false;
224        # opacity: Default opacity for the type of windows.
225        opacity = 0.85;
226        # focus: Whether to always consider windows of this type focused.
227        focus = true;
228    };
229};