mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-21 01:25:42 +02:00
70 lines
2.1 KiB
Text
70 lines
2.1 KiB
Text
backend = "egl";
|
|
vsync = true;
|
|
no-frame-pacing = true; # see https://github.com/yshui/picom/issues/1345
|
|
# These two are recommended if they work.
|
|
glx-no-stencil = true;
|
|
glx-no-rebind-pixmap = true;
|
|
|
|
mark-ovredir-focused = true;
|
|
use-ewmh-active-win = true;
|
|
|
|
# Opacity rules (first rule match)
|
|
# Cannot use override-redirect:
|
|
# https://github.com/yshui/picom/issues/625
|
|
opacity-rule = [
|
|
"0:_NET_WM_STATE@[*]:32a = '_NET_WM_STATE_HIDDEN'",
|
|
# GTK frame extents are used for client-side shadows, we shouldn't have that as i3 does not support them.
|
|
"100:_GTK_FRAME_EXTENTS@:c",
|
|
"100:fullscreen",
|
|
"100:name = 'Zoom Meeting'",
|
|
"100:name = 'zoom_linux_float_video_window'",
|
|
"100:class_i = 'jitsi meet'",
|
|
"100:class_g = 'Rofi'",
|
|
"100:class_g = 'mpv'",
|
|
"100:class_g = 'Xss-dimmer'",
|
|
"100:class_g = 'scummvm'",
|
|
"100:window_type = 'dock'",
|
|
"100:window_type = 'utility'",
|
|
"95:window_type = 'combo'",
|
|
"95:window_type *= 'menu'",
|
|
"85:!focused"
|
|
];
|
|
|
|
# Shadow and fading
|
|
fade-in-step = 0.08;
|
|
fade-out-step = 0.08;
|
|
shadow-opacity = 0.8;
|
|
shadow-radius = @SHADOW_RADIUS@;
|
|
shadow-offset-x = -@SHADOW_OFFSET@;
|
|
shadow-offset-y = -@SHADOW_OFFSET@;
|
|
wintypes:
|
|
{
|
|
normal = { shadow = true; };
|
|
dock = { shadow = true; clip-shadow-above = true; };
|
|
combo = { fade = true; };
|
|
dropdown_menu = { fade = true; };
|
|
menu = { fade = true; };
|
|
popup_menu = { fade = true; };
|
|
tooltip = { fade = true; };
|
|
notification = { fade = true; shadow = true; };
|
|
splash = { fade = true; shadow = true; };
|
|
dialog = { fade = true; shadow = true; };
|
|
};
|
|
shadow-exclude = [
|
|
"_NET_WM_STATE@[*]:32a = '_NET_WM_STATE_HIDDEN'",
|
|
# GTK frame extents are used for client-side shadows, we shouldn't have that.
|
|
"_GTK_FRAME_EXTENTS@:c",
|
|
"class_i = 'xss-dimmer'",
|
|
"class_i = 'i3-frame'",
|
|
"class_g = 'Rofi'",
|
|
# Zoom
|
|
"name = 'cpt_frame_window'",
|
|
"name = 'cpt_frame_xcb_window'",
|
|
"name = 'as_toolbar'",
|
|
# Other sharing indicators
|
|
"name ~= 'is sharing your screen.$'", # Chrome
|
|
"name = 'Firefox — Sharing Indicator'", # Firefox
|
|
"name = 'Screen Sharing Tracker'" # Jitsi
|
|
];
|
|
# crop-shadow-to-monitor = true;
|
|
fade-exclude = [ ];
|