From 420e9a847a6b3e6b6deb2012db2fef07cdd95f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Wed, 27 Nov 2019 17:49:43 +0100 Subject: [PATCH] Add compton configuration file --- etc/xdg/compton.conf | 68 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 etc/xdg/compton.conf diff --git a/etc/xdg/compton.conf b/etc/xdg/compton.conf new file mode 100644 index 00000000..c35df7d8 --- /dev/null +++ b/etc/xdg/compton.conf @@ -0,0 +1,68 @@ +# Please note that Compton is not supported by Kali Linux and may not work +# correctly for you. This file is provided as a set of sane defaults and is in +# no way endorsed by the Kali team. +# +# About Compton: https://github.com/chjj/compton +# Heavily based on Xubuntu's compton.conf from xubuntu-default-settings package +# Sample settings: https://github.com/chjj/compton/blob/master/compton.sample.conf + +# --- Backend (OpenGL used by default) +# Related Links +# https://github.com/chjj/compton/wiki/perf-guide +# https://github.com/chjj/compton/wiki/vsync-guide + +#backend = "glx"; +paint-on-overlay = true; +glx-no-stencil = true; +glx-no-rebind-pixmap = true; +unredir-if-possible = true; +#vsync = "opengl-swc"; + + +# --- Shadows (Disable with shadow = false;) +# The shadow exclude options are helpful if you have shadows enabled. +# Due to the way compton draws its shadows, certain applications (Such as +# shaped windows, custom popups, non-standard toolkits) will have visual glitches. + +shadow = true; # Enabled client-side shadows on windows. +no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows. +no-dnd-shadow = true; # Don't draw shadows on DND windows. +clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental). +shadow-radius = 10; # The blur radius for shadows. (default 10) +shadow-offset-x = -15; # The left offset for shadows. (default -15) +shadow-offset-y = -12; # The top offset for shadows. (default -12) +shadow-opacity = 0.4; +shadow-exclude = [ + "! name~=''", # "Unknown" windows, including xfwm4 alt-tab + "n:e:Notification", + "n:e:Plank", + "n:e:Docky", + "g:e:Synapse", + "g:e:Kupfer", + "g:e:Conky", + "class_g ?= 'Notify-osd'", + "class_g ?= 'Cairo-dock'", + "class_g ?= 'Xfce4-notifyd'", + "class_g ?= 'Xfce4-power-manager'", + "class_g ?= 'Xfwm4'", # For the "new" xfwm4 alt-tab + "_GTK_FRAME_EXTENTS@:c" # GTK+ 3 CSD windows https://github.com/chjj/compton/issues/189 +]; + + +# --- Fading (Disable with fading = false;) + +fading = true; # Fade windows during opacity changes. +fade-delta = 5; # The time between steps in a fade in milliseconds. (default 5). +fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.03). +fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03). + + +# --- Additional Settings +detect-client-opacity = true; + + +# --- Window type settings +wintypes: +{ + tooltip = { fade = true; shadow = false; opacity = 0.9; focus = true; }; +};