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