Skip to content

Instantly share code, notes, and snippets.

@kanehekili
Created May 7, 2021 19:49
Show Gist options
  • Save kanehekili/6b898179145a031705b149cbdefba6ac to your computer and use it in GitHub Desktop.
Save kanehekili/6b898179145a031705b149cbdefba6ac to your computer and use it in GitHub Desktop.
Picom (ex compton) config for thinkpad R61i (Intel Core2 Duo T5450)
backend = "glx";
glx-no-stencil = true;
use-damage = true
glx-no-rebind-pixmap = true;
xrender-sync-fence = true #seems to help against missing refresh
#vsync=true; #any vync breaks
glx-swap-method = "exchange";
#################################
#
# Shadows
#
#################################
# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
#no-dnd-shadow = true; Deprectated: Please use the wintype option `shadow` of `dnd` instead
# Avoid drawing shadows on dock/panel windows.
# DEPRECTAED: no-dock-shadow = true; Please use the wintype option `shadow` of `dock` instead.
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
# IS default now: clear-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 12;
# The left offset for shadows. (default -15)
shadow-offset-x = -5;
# The top offset for shadows. (default -15)
shadow-offset-y = -5;
# The translucency for shadows. (default .75)
shadow-opacity = 0.7;
shadow-exclude = [
#"! name~=''",
"class_g ?= 'Cairo-dock'",
"class_g ?= 'Xfce4-notifyd'",
"name *= 'cairo-dock-dialog'",
"name *= 'compton'",
"name *= 'picom'",
"_GTK_FRAME_EXTENTS@:c"
];
fading = true;
fade-delta = 100.0;
fade-in-step = 10.0;
fade-out-step = 10.0;
#################################
#
# Other
#
#################################
# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;
# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity = true;
# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 0;
#################################
#
# Window type settings
#
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = false;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.9;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
dock = {shadow = false;};
dnd = {shadow = false;};
popup_menu = { opacity = 1;};
dropdown_menu= { opacity = 1;};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment