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