From 8c9c2a9d297a9e6d56011da5989e1425fcd44555 Mon Sep 17 00:00:00 2001 From: foo-dogsquared Date: Mon, 23 Dec 2019 11:31:44 +0800 Subject: [PATCH] Rename Compton to Picom --- compton/compton.conf => picom/picom.conf | 26 +++++++++++++++--------- 1 file changed, 16 insertions(+), 10 deletions(-) rename compton/compton.conf => picom/picom.conf (89%) diff --git a/compton/compton.conf b/picom/picom.conf similarity index 89% rename from compton/compton.conf rename to picom/picom.conf index f0073c2..95f949f 100644 --- a/compton/compton.conf +++ b/picom/picom.conf @@ -70,7 +70,7 @@ shadow-opacity = 0.5; # shadow-green = 0.0; # shadow-blue = 0.0; -# 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 +# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches # (most applications are fine, only apps that do weird things with xshapes or argb are affected). # 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. shadow-exclude = [ @@ -82,6 +82,7 @@ shadow-exclude = [ "name = 'xfce4-notifyd'", "name *= 'VLC'", "name *= 'compton'", + "name *= 'picom'", "name *= 'Chromium'", "name *= 'Chrome'", "class_g = 'Firefox' && argb", @@ -104,18 +105,23 @@ shadow-ignore-shaped = false; # ################################# -inactive-opacity = 1; +inactive-opacity = 0.5; active-opacity = 1; frame-opacity = 1; -inactive-opacity-override = false; +inactive-opacity-override = true; +opacity-rule = [ + "90:class_g = 'alacritty' && focused", + "60:class_g = 'alacritty' && !focused" +]; + # Dim inactive windows. (0.0 - 1.0) inactive-dim = 0.5; - # Do not let dimness adjust based on window opacity. -# inactive-dim-fixed = true; +inactive-dim-fixed = true; # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. -# blur-background = true; +blur-background = true; + # Blur background of opaque windows with transparent frames as well. # blur-background-frame = true; # Do not let blur radius adjust based on window opacity. @@ -140,7 +146,7 @@ fade-in-step = 0.03; # Opacity change between steps while fading out. (default 0.03). fade-out-step = 0.03; # Fade windows in/out when opening/closing -no-fading-openclose = true; +# no-fading-openclose = true; # Specify a list of conditions of windows that should not be faded. fade-exclude = [ ]; @@ -167,7 +173,7 @@ detect-rounded-corners = true; detect-client-opacity = true; # Specify refresh rate of the screen. -# If not specified or 0, compton will try detecting this with X RandR extension. +# If not specified or 0, picom will try detecting this with X RandR extension. refresh-rate = 0; # Vertical synchronization: match the refresh rate of the monitor @@ -177,7 +183,7 @@ vsync = true; # Reported to have no effect, though. dbe = false; -# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance. +# Limit picom to repaint at most once every 1 / refresh_rate second to boost performance. # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, # unless you wish to specify a lower refresh rate than the actual value. #sw-opti = true; @@ -219,7 +225,7 @@ wintypes: ###################### # # XSync -# See: https://github.com/yshui/compton/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d +# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d # ######################