summaryrefslogtreecommitdiff
path: root/compton.conf
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-02 08:10:10 +0200
committerMax Christian Pohle2017-05-02 08:10:10 +0200
commit5011ed6adc06ba6e3a55953e25a36c9105bed171 (patch)
tree0a20d0c0bb0c1ee68e9c75dd4fa4bd5f743a5791 /compton.conf
parent9a6771b513520222e6c967dbadd982021f71235e (diff)
downloadi3-5011ed6adc06ba6e3a55953e25a36c9105bed171.tar.bz2
i3-5011ed6adc06ba6e3a55953e25a36c9105bed171.zip
White version with several usability improvements
Diffstat (limited to 'compton.conf')
-rw-r--r--compton.conf129
1 files changed, 51 insertions, 78 deletions
diff --git a/compton.conf b/compton.conf
index 242f000..756ccbd 100644
--- a/compton.conf
+++ b/compton.conf
@@ -1,91 +1,64 @@
1backend = "xrender";
2#backend = "glx";
3paint-on-overlay = true;
4glx-no-stencil = true;
5# glx-no-rebind-pixmap = true; # does not work! definitelly!
6# vsync = "opengl-swc";
7vsync = "drm";
8# vsync-use-glfinish = true
9
10# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method.
11# The other options are smaller performance tweaks that work well in most cases.
12# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide
13
14
1# Shadow 15# Shadow
2shadow = true; # Enabled client-side shadows on windows. 16#shadow = true; # Enabled client-side shadows on windows.
3no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. 17shadow = false; # Enabled client-side shadows on windows.
4no-dnd-shadow = true; # Don't draw shadows on DND windows. 18#no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
5clear-shadow = true; # Zero the part of the shadow's mask behind the 19#no-dnd-shadow = true; # Don't draw shadows on DND windows.
6 # window. Fix some weirdness with ARGB windows. 20# clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental).
7shadow-radius = 7; # The blur radius for shadows. (default 12) 21shadow-radius = 7; # The blur radius for shadows. (default 12)
8shadow-offset-x = -7; # The left offset for shadows. (default -15) 22shadow-offset-x = -7; # The left offset for shadows. (default -15)
9shadow-offset-y = -7; # The top offset for shadows. (default -15) 23shadow-offset-y = -7; # The top offset for shadows. (default -15)
10shadow-opacity = 0.7; # The translucency for shadows. (default .75) 24shadow-exclude = [
11# shadow-red = 0.0; # Red color value of shadow. (0.0 - 1.0, defaults to 0) 25 "! name~=''",
12# shadow-green = 0.0; # Green color value of shadow. (0.0 - 1.0, defaults to 0) 26 "n:e:Notification",
13# shadow-blue = 0.0; # Blue color value of shadow. (0.0 - 1.0, defaults to 0) 27 "n:e:Plank",
14shadow-exclude = [ "n:e:Notification" ]; # Exclude conditions for shadows. 28 "n:e:Docky",
15# shadow-exclude = "n:e:Notification"; 29 "g:e:Synapse",
16shadow-ignore-shaped = true; # Avoid drawing shadow on all shaped windows 30 "g:e:Kupfer",
17 # (see also: --detect-rounded-corners) 31 "g:e:Conky",
32 "n:w:*Firefox*",
33 "n:w:*Chrome*",
34 "n:w:*Chromium*",
35 "class_g ?= 'Notify-osd'",
36 "class_g ?= 'Cairo-dock'",
37 "class_g ?= 'Xfce4-notifyd'",
38 "class_g ?= 'Xfce4-power-manager'",
39 "x = 0 && y = 0 && override_redirect = true"
40];
18 41
19# Opacity 42# 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
20menu-opacity = 0.9; # The opacity for menus. (default 1.0) 43# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
21inactive-opacity = 0.9; # Default opacity of inactive windows. (0.0 - 1.0) 44# 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.
22# active-opacity = 0.8; # Default opacity for active windows. (0.0 - 1.0)
23# frame-opacity = 0.8; # Opacity of window titlebars and borders. (0.1 - 1.0)
24# inactive-opacity-override = true; # Let inactive opacity set by 'inactive-opacity' overrides
25 # value of _NET_WM_OPACITY. Bad choice.
26alpha-step = 0.06; # XRender backend: Step size for alpha pictures. Increasing
27 # it may result in less X resource usage,
28 # Yet fading may look bad.
29# inactive-dim = 0.2; # Dim inactive windows. (0.0 - 1.0)
30# inactive-dim-fixed = true; # Do not let dimness adjust based on window opacity.
31# blur-background = true; # Blur background of transparent windows.
32 # Bad performance with X Render backend.
33 # GLX backend is preferred.
34# blur-background-frame = true; # Blur background of opaque windows with transparent
35 # frames as well.
36blur-background-fixed = false; # Do not let blur radius adjust based on window opacity.
37blur-background-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];
38 # Exclude conditions for background blur.
39 45
40# Fading 46# Fading
41fading = true; # Fade windows during opacity changes. 47# fading = true; # Fade windows during opacity changes.
42# fade-delta = 30; # The time between steps in a fade in milliseconds. (default 10). 48fade-delta = 8; # The time between steps in a fade in milliseconds. (default 10).
43fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028). 49fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
44fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03). 50fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
45# no-fading-openclose = true; # Avoid fade windows in/out when opening/closing. 51#no-fading-openclose = true; # Fade windows in/out when opening/closing
46fade-exclude = [ ]; # Exclude conditions for fading.
47
48# Other
49backend = "xrender" # Backend to use: "xrender" or "glx". GLX backend is typically
50 # much faster but depends on a sane driver.
51mark-wmwin-focused = true; # Try to detect WM windows and mark them as active.
52mark-ovredir-focused = true; # Mark all non-WM but override-redirect windows active (e.g. menus).
53use-ewmh-active-win = false; # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused
54 # instead of using FocusIn/Out events. Usually more reliable but
55 # depends on a EWMH-compliant WM.
56detect-rounded-corners = true; # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
57detect-client-opacity = true; # Detect _NET_WM_OPACITY on client windows, useful for window
58 # managers not passing _NET_WM_OPACITY of client windows to frame
59 # windows.
60refresh-rate = 0; # For --sw-opti: Specify refresh rate of the screen. 0 for auto.
61vsync = "none"; # "none", "drm", "opengl", "opengl-oml", "opengl-swc", "opengl-mswc"
62 # See man page for more details.
63dbe = false; # Enable DBE painting mode. Rarely needed.
64paint-on-overlay = true; # Painting on X Composite overlay window. Recommended.
65sw-opti = false; # Limit compton to repaint at most once every 1 / refresh_rate.
66 # Incompatible with certain VSync methods.
67unredir-if-possible = false; # Unredirect all windows if a full-screen opaque window is
68 # detected, to maximize performance for full-screen windows.
69focus-exclude = [ ]; # A list of conditions of windows that should always be considered
70 # focused.
71detect-transient = true; # Use WM_TRANSIENT_FOR to group windows, and consider windows in
72 # the same group focused at the same time.
73detect-client-leader = true; # Use WM_CLIENT_LEADER to group windows.
74invert-color-include = [ ]; # Conditions for windows to be painted with inverted color.
75 52
76# GLX backend # GLX backend fine-tune options. See man page for more info. 53detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
77# glx-no-stencil = true; # Recommended.
78glx-copy-from-front = false; # Useful with --glx-swap-method,
79# glx-use-copysubbuffermesa = true; # Recommended if it works. Breaks VSync.
80# glx-no-rebind-pixmap = true; # Recommended if it works.
81glx-swap-method = "undefined"; # See man page.
82 54
83# Window type settings 55# Window type settings
84wintypes: 56wintypes:
85{ 57{
86 tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; }; 58 tooltip = { fade = true; shadow = true; };
87 # fade: Fade the particular type of windows.
88 # shadow: Give those windows shadow
89 # opacity: Default opacity for the type of windows.
90 # focus: Whether to always consider windows of this type focused.
91}; 59};
60
61#opacity-rule = ["90:class_g = 'URxvt'", "90:class_g = ''" ];
62
63
64# opacity-rule = ["90:class_g = 'xfce4-terminal'", "90:class_g = 'Xfce4-terminal'", "90:class_g = 'termite'", "90:class_g = 'i3bar'", "90:class_g = 'i3-frame'" ];
..