View difference between Paste ID: 2LYRq7AR and N2Ga2hPS
SHOW: | | - or go back to the newest paste.
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.
9
backend = "glx";
10
11
#################################
12
#
13
# GLX backend
14
#
15
#################################
16
17
glx-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.
24
glx-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;
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.
48-
glx-swap-method = 2;
48+
glx-swap-method = "undefined";
49
50
#################################
51
#
52
# Shadows
53
#
54
#################################
55
56
# Enabled client-side shadows on windows.
57
shadow = true;
58
# Don't draw shadows on DND windows.
59
no-dnd-shadow = true;
60
# Avoid drawing shadows on dock/panel windows.
61
no-dock-shadow = true;
62
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
63
clear-shadow = true;
64
# The blur radius for shadows. (default 12)
65-
shadow-radius = 12;
65+
shadow-radius = 5;
66
# The left offset for shadows. (default -15)
67-
shadow-offset-x = -17;
67+
shadow-offset-x = -5;
68
# The top offset for shadows. (default -15)
69-
shadow-offset-y = -17;
69+
shadow-offset-y = -5;
70
# The translucency for shadows. (default .75)
71-
shadow-opacity = 0.6;
71+
shadow-opacity = 0.5;
72
73
# Set if you want different colour shadows
74-
shadow-red = 0.67;
74+
# shadow-red = 0.0;
75-
shadow-green = 0.80;
75+
# shadow-green = 0.0;
76-
shadow-blue = 0.54;
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.
81
shadow-exclude = [
82
    "! name~=''",
83
    "name = 'Notification'",
84
    "name = 'Plank'",
85
    "name = 'Docky'",
86
    "name = 'Kupfer'",
87
    "name = 'xfce4-notifyd'",
88
    "name *= 'VLC'",
89
    "name *= 'compton'",
90
    "name *= 'Chromium'",
91
    "name *= 'Chrome'",
92
    "name *= 'Firefox'",
93
    "class_g = 'Marco'",
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
];
102
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
103
shadow-ignore-shaped = false;
104
105
#################################
106
#
107
# Opacity
108
#
109
#################################
110
111
menu-opacity = 1;
112
inactive-opacity = 1;
113
active-opacity = 1;
114
frame-opacity = 1;
115-
inactive-dim = 0.2;
115+
116
alpha-step = 0.06;
117
118
# Dim inactive windows. (0.0 - 1.0)
119
# inactive-dim = 0.2;
120
# Do not let dimness adjust based on window opacity.
121
# inactive-dim-fixed = true;
122
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
123
# blur-background = true;
124
# Blur background of opaque windows with transparent frames as well.
125
# blur-background-frame = true;
126
# Do not let blur radius adjust based on window opacity.
127
blur-background-fixed = false;
128
blur-background-exclude = [
129
    "window_type = 'dock'",
130
    "window_type = 'desktop'"
131
];
132
133
#################################
134
#
135
# Fading
136-
fading = false;
136+
137
#################################
138
139
# Fade windows during opacity changes.
140
fading = true;
141
# The time between steps in a fade in milliseconds. (default 10).
142
fade-delta = 4;
143
# Opacity change between steps while fading in. (default 0.028).
144
fade-in-step = 0.03;
145
# Opacity change between steps while fading out. (default 0.03).
146
fade-out-step = 0.03;
147-
#fade-exclude = [ ];
147+
148
# no-fading-openclose = true;
149
150
# Specify a list of conditions of windows that should not be faded.
151
fade-exclude = [ ];
152
153
#################################
154
#
155
# Other
156-
mark-wmwin-focused = false;
156+
157
#################################
158-
mark-ovredir-focused = false;
158+
159
# Try to detect WM windows and mark them as active.
160
mark-wmwin-focused = true;
161
# Mark all non-WM but override-redirect windows active (e.g. menus).
162
mark-ovredir-focused = true;
163
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
164
# Usually more reliable but depends on a EWMH-compliant WM.
165
use-ewmh-active-win = true;
166
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
167
detect-rounded-corners = true;
168
169
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
170
# This prevents opacity being ignored for some apps.
171
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
172
detect-client-opacity = true;
173
174
# Specify refresh rate of the screen.
175
# If not specified or 0, compton will try detecting this with X RandR extension.
176
refresh-rate = 0;
177
178
# Set VSync method. VSync methods currently available:
179
# none: No VSync
180
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
181
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
182-
vsync = "opengl-swc";
182+
183
# 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.
184
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
185
# (Note some VSync methods may not be enabled at compile time.)
186-
dbe = false;
186+
vsync = "opengl-mswc";
187
188
# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
189
# Reported to have no effect, though.
190
dbe = true;
191
192
# Painting on X Composite overlay window. Recommended.
193
paint-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.
198-
unredir-if-possible = false;
198+
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.
203
unredir-if-possible = true;
204
205
# Specify a list of conditions of windows that should always be considered focused.
206
focus-exclude = [ ];
207
208
# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
209
detect-transient = true;
210
211
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
212
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
213
detect-client-leader = true;
214
215
#################################
216
#
217-
    combo = { fade = true; shadow = false; opacity = 1.0; focus = true; };
217+
218-
    desktop = { fade = true; shadow = false; opacity = 1.0; focus = true; };
218+
219-
    dialog = { fade = true; shadow = true; opacity = 1.0; focus = true; };
219+
220-
    dnd = { fade = true; shadow = false; opacity = 1.0; focus = true; };
220+
221-
    dock = { fade = true; shadow = false; opacity = 1.0; focus = true; };
221+
222-
    dropdown_menu = { fade = true; shadow = false; opacity = 1.0; focus = true; };
222+
223-
    menu = { fade = true; shadow = true; opacity = 1.0; focus = true; };
223+
    tooltip =
224-
    normal = { fade = true; shadow = true; opacity = 1.0; focus = true; };
224+
    {
225-
    notify = { fade = true; shadow = false; opacity = 1.0; focus = true; };
225+
        # fade: Fade the particular type of windows.
226-
    popup_menu = { fade = true; shadow = false; opacity = 1.0; focus = true; };
226+
        fade = true;
227-
    splash = { fade = true; shadow = false; opacity = 1.0; focus = true; };
227+
        # shadow: Give those windows shadow
228-
    toolbar = { fade = true; shadow = false; opacity = 1.0; focus = true; };
228+
        shadow = false;
229-
    tooltip = { fade = true; shadow = false; opacity = 1.0; focus = true; };
229+
        # opacity: Default opacity for the type of windows.
230-
    unknown = { fade = true; shadow = false; opacity = 1.0; focus = true; };
230+
        opacity = 1.0;
231-
    utility = { fade = true; shadow = false; opacity = 1.0; focus = true; };
231+
        # focus: Whether to always consider windows of this type focused.
232
        focus = true;
233
    };
234
};